Submitter | Pierre-Yves David |
---|---|
Date | Feb. 12, 2016, 2:29 p.m. |
Message ID | <ac9aa93761f3949cb060.1455287348@marginatus.alto.octopoid.net> |
Download | mbox | patch |
Permalink | /patch/13132/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/destutil.py b/mercurial/destutil.py --- a/mercurial/destutil.py +++ b/mercurial/destutil.py @@ -192,11 +192,11 @@ def _destmergebook(repo): def _destmergebranch(repo): """find merge destination based on branch heads""" node = None parent = repo.dirstate.p1() - branch = repo[None].branch() + branch = repo.dirstate.branch() bheads = repo.branchheads(branch) nbhs = [bh for bh in bheads if not repo[bh].bookmarks()] if parent not in bheads: if len(repo.heads()) <= 1: