[PATCH 1 of 2] discovery: remove erroneous comment in prepush()

Adrian Buehlmann adrian at cadifra.com
Thu Nov 11 10:55:55 CST 2010


# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1289486547 -3600
# Node ID 6101a7c2efd2c03762d65eb8219fcca83be36195
# Parent  609edbc7853f9323ec5eb4db2e52986969d962a7
discovery: remove erroneous comment in prepush()

New named branches *can* be created without -f/--force by specifying
--new-branch

diff --git a/mercurial/discovery.py b/mercurial/discovery.py
--- a/mercurial/discovery.py
+++ b/mercurial/discovery.py
@@ -220,8 +220,6 @@ def prepush(repo, remote, force, revs, n
             # - a local outgoing head descended from update
             # - a remote head that's known locally and not
             #   ancestral to an outgoing head
-            #
-            # New named branches cannot be created without --force.
 
             # 1. Create set of branches involved in the push.
             branches = set(repo[n].branch() for n in outg)


More information about the Mercurial-devel mailing list