mercurial/localrepo.py
changeset 46097 4d5e2fd53707
parent 46019 49b4ab1d9f5e
child 46115 c6ae1982b2a1
equal deleted inserted replaced
46096:93e09d370003 46097:4d5e2fd53707
  2252             if singlehead:
  2252             if singlehead:
  2253                 singleheadsub = repo.ui.configsuboptions(*singleheadopt)[1]
  2253                 singleheadsub = repo.ui.configsuboptions(*singleheadopt)[1]
  2254                 accountclosed = singleheadsub.get(
  2254                 accountclosed = singleheadsub.get(
  2255                     b"account-closed-heads", False
  2255                     b"account-closed-heads", False
  2256                 )
  2256                 )
  2257                 scmutil.enforcesinglehead(repo, tr2, desc, accountclosed)
  2257                 if singleheadsub.get(b"public-changes-only", False):
       
  2258                     filtername = b"immutable"
       
  2259                 else:
       
  2260                     filtername = b"visible"
       
  2261                 scmutil.enforcesinglehead(
       
  2262                     repo, tr2, desc, accountclosed, filtername
       
  2263                 )
  2258             if hook.hashook(repo.ui, b'pretxnclose-bookmark'):
  2264             if hook.hashook(repo.ui, b'pretxnclose-bookmark'):
  2259                 for name, (old, new) in sorted(
  2265                 for name, (old, new) in sorted(
  2260                     tr.changes[b'bookmarks'].items()
  2266                     tr.changes[b'bookmarks'].items()
  2261                 ):
  2267                 ):
  2262                     args = tr.hookargs.copy()
  2268                     args = tr.hookargs.copy()