mercurial/hg.py
changeset 50189 6065a8936b00
parent 49845 e0c0545e2e55
child 50191 99faa396e186
--- a/mercurial/hg.py	Thu Feb 23 03:28:44 2023 +0100
+++ b/mercurial/hg.py	Thu Feb 23 04:35:16 2023 +0100
@@ -986,7 +986,9 @@
             local = destpeer.local()
             if local:
                 if narrow:
-                    with local.wlock(), local.lock():
+                    with local.wlock(), local.lock(), local.transaction(
+                        b'narrow-clone'
+                    ):
                         local.setnarrowpats(storeincludepats, storeexcludepats)
                         narrowspec.copytoworkingcopy(local)