--- a/mercurial/localrepo.py Thu Nov 21 17:25:24 2019 -0500
+++ b/mercurial/localrepo.py Wed Nov 20 19:07:02 2019 +0100
@@ -2086,11 +2086,10 @@
tracktags(tr2)
repo = reporef()
- r = repo.ui.configsuboptions(
- b'experimental', b'single-head-per-branch'
- )
- singlehead, singleheadsub = r
+ singleheadopt = (b'experimental', b'single-head-per-branch')
+ singlehead = repo.ui.configbool(*singleheadopt)
if singlehead:
+ singleheadsub = repo.ui.configsuboptions(*singleheadopt)[1]
accountclosed = singleheadsub.get(
b"account-closed-heads", False
)