changeset 35185 | 66ecde8a704d |
parent 35163 | ee64e677c3cf |
child 35207 | d210723b73e5 |
--- a/mercurial/localrepo.py Thu Nov 16 03:52:38 2017 +0100 +++ b/mercurial/localrepo.py Thu Nov 16 03:52:42 2017 +0100 @@ -1247,6 +1247,8 @@ # gating. tracktags(tr2) repo = reporef() + if repo.ui.configbool('experimental', 'single-head-per-branch'): + scmutil.enforcesinglehead(repo, tr2, desc) if hook.hashook(repo.ui, 'pretxnclose-bookmark'): for name, (old, new) in sorted(tr.changes['bookmarks'].items()): args = tr.hookargs.copy()