[PATCH 3 of 4] Add option to heads to show only heads for current branch
Matt Mackall
mpm at selenic.com
Tue Jun 12 23:01:55 CDT 2007
On Tue, Jun 12, 2007 at 12:46:23PM -0700, Eric Hopper wrote:
> + for branch in branches:
> + if branch == '.':
> + realbranch = repo.changectx('.').branch()
> + else:
> + realbranch = branch
I think we want to simply do repo.changectx(branch).branch(). That is:
hg heads 3000 # find the branch that rev 3000 is on and report its
branch heads
> + ('b', 'branch', None, _("show even inactive heads for just the current branch")),
I still think we should show all heads by default. Can we use the same
flag as we use for hg branches?
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel
mailing list