branches: deprecate -a
authorMatt Mackall <mpm@selenic.com>
Mon, 22 Dec 2014 14:49:05 -0600
changeset 23620 3d4aa20b775d
parent 23616 11a160547d7f
child 23621 bb679344c88d
branches: deprecate -a
mercurial/commands.py
--- a/mercurial/commands.py	Thu Dec 18 09:37:14 2014 -0800
+++ b/mercurial/commands.py	Mon Dec 22 14:49:05 2014 -0600
@@ -1040,7 +1040,7 @@
     branch.
 
     Unless -f/--force is specified, branch will not let you set a
-    branch name that already exists, even if it's inactive.
+    branch name that already exists.
 
     Use -C/--clean to reset the working directory branch to that of
     the parent of the working directory, negating a previous branch
@@ -1080,7 +1080,8 @@
         wlock.release()
 
 @command('branches',
-    [('a', 'active', False, _('show only branches that have unmerged heads')),
+    [('a', 'active', False,
+      _('show only branches that have unmerged heads (DEPRECATED)')),
      ('c', 'closed', False, _('show normal and closed branches')),
     ] + formatteropts,
     _('[-ac]'))
@@ -1091,9 +1092,6 @@
     inactive. If -c/--closed is specified, also list branches which have
     been marked closed (see :hg:`commit --close-branch`).
 
-    If -a/--active is specified, only show active branches. A branch
-    is considered active if it contains repository heads.
-
     Use the command :hg:`update` to switch to an existing branch.
 
     Returns 0.