##// END OF EJS Templates
mergecmd: simplify conditional...
Pierre-Yves David -
r26302:5ba3358e default
parent child Browse files
Show More
@@ -4785,7 +4785,7 b' def merge(ui, repo, node=None, **opts):'
4785 "please merge with an explicit rev or bookmark"),
4785 "please merge with an explicit rev or bookmark"),
4786 hint=_("run 'hg heads' to see all heads"))
4786 hint=_("run 'hg heads' to see all heads"))
4787
4787
4788 if not node and not repo._activebookmark:
4788 elif not node:
4789 branch = repo[None].branch()
4789 branch = repo[None].branch()
4790 bheads = repo.branchheads(branch)
4790 bheads = repo.branchheads(branch)
4791 nbhs = [bh for bh in bheads if not repo[bh].bookmarks()]
4791 nbhs = [bh for bh in bheads if not repo[bh].bookmarks()]
General Comments 0
You need to be logged in to leave comments. Login now