diff -r b1639e98e8a1 -r f3245f22771c mercurial/commands.py --- a/mercurial/commands.py Wed Jun 13 23:06:34 2012 +0200 +++ b/mercurial/commands.py Wed Apr 10 13:12:24 2013 +0200 @@ -1299,10 +1299,6 @@ extra = {} if opts.get('close_branch'): - if repo['.'].node() not in repo.branchheads(): - # The topo heads set is included in the branch heads set of the - # current branch, so it's sufficient to test branchheads - raise util.Abort(_('can only close branch heads')) extra['close'] = 1 branch = repo[None].branch()