[PATCH 3 of 3 branch --new] branch: deprecate creation of branches without --new

Mads Kiilerich mads at kiilerich.com
Wed Apr 15 16:14:52 CDT 2015


# HG changeset patch
# User Mads Kiilerich <madski at unity3d.com>
# Date 1429132330 14400
#      Wed Apr 15 17:12:10 2015 -0400
# Node ID 97c2568dfc479675b96b84ea3b6ae7ec55f5560c
# Parent  f832f9a6081a18eb3f54e1f2718ab753cff9d50c
branch: deprecate creation of branches without --new

--new is more explicit and not treacherous for git users.

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -1060,7 +1060,7 @@ def bookmark(ui, repo, *names, **opts):
      _('set branch name even if it shadows an existing branch')),
     ('C', 'clean', None, _('reset branch name to parent branch name')),
     ('n', 'new', '', _('mark working directory as creating new branch'))],
-    _('[-fC] [NAME]'))
+    _('[-fC]'))
 def branch(ui, repo, label=None, **opts):
     """set or show the current branch name
 


More information about the Mercurial-devel mailing list