# HG changeset patch # User Matt Mackall # Date 1419281345 21600 # Node ID 3d4aa20b775d697a7160154833966ac18959983e # Parent 11a160547d7f34ef986235f701282425242eb755 branches: deprecate -a diff -r 11a160547d7f -r 3d4aa20b775d 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.