Submitter | Pierre-Yves David |
---|---|
Date | Sept. 21, 2015, 10:16 p.m. |
Message ID | <9f0f1c86741d9fbc71e4.1442873796@marginatus.alto.octopoid.net> |
Download | mbox | patch |
Permalink | /patch/10558/ |
State | Superseded |
Headers | show |
Comments
Patch
diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -4783,11 +4783,11 @@ def merge(ui, repo, node=None, **opts): elif len(bmheads) <= 1: raise util.Abort(_("no matching bookmark to merge - " "please merge with an explicit rev or bookmark"), hint=_("run 'hg heads' to see all heads")) - if not node and not repo._activebookmark: + elif not node: branch = repo[None].branch() bheads = repo.branchheads(branch) nbhs = [bh for bh in bheads if not repo[bh].bookmarks()] if len(nbhs) > 2: