# HG changeset patch # User Ryan McElroy <rmcel...@fb.com> # Date 1519040197 28800 # Mon Feb 19 03:36:37 2018 -0800 # Node ID 6b80188783ee2626030113a9b2319f2fd14a8119 # Parent 905b79d62df82d8ca16ecac175e6236fe959f4ed Back out "remotenames: push anonymous head if --force is given"
Original commit changeset: 905b79d62df8 There are already two ways to do this: * set remotenames.forcecompat = True * set remotenames.pushanonheads = True The backed out revision violated the expectation of someone who does not have forcecompat = true. It also did not have any tests. diff --git a/remotenames.py b/remotenames.py --- a/remotenames.py +++ b/remotenames.py @@ -853,7 +853,7 @@ def expushdiscoverybookmarks(pushop): if not pushop.to: ret = exchange._pushdiscoverybookmarks(pushop) - if not pushop.allowanon and not pushop.force: + if not pushop.allowanon: # check to make sure we don't push an anonymous head if pushop.revs: revs = set(pushop.revs) _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel