changeset 50191 | 99faa396e186 |
parent 50189 | 6065a8936b00 |
child 50437 | 3a2df812e1c7 |
--- a/mercurial/hg.py Thu Feb 23 04:36:19 2023 +0100 +++ b/mercurial/hg.py Thu Feb 23 04:42:17 2023 +0100 @@ -457,7 +457,9 @@ template = b'[paths]\ndefault = %s\n' destrepo.vfs.write(b'hgrc', util.tonativeeol(template % default)) if requirements.NARROW_REQUIREMENT in sourcerepo.requirements: - with destrepo.wlock(): + with destrepo.wlock(), destrepo.lock(), destrepo.transaction( + b"narrow-share" + ): narrowspec.copytoworkingcopy(destrepo)