mercurial/hg.py
branchstable
changeset 51608 3e0f86f09f26
parent 50929 18c8c18993f0
child 51609 fc317bd5b637
--- a/mercurial/hg.py	Thu Apr 04 14:15:32 2024 +0100
+++ b/mercurial/hg.py	Sun Mar 31 17:57:46 2024 -0300
@@ -1425,6 +1425,7 @@
     others = []
     for path in urlutil.get_push_paths(repo, ui, dests):
         dest = path.loc
+        repo._subtoppath = dest
         if subpath is not None:
             subpath = urlutil.url(subpath)
             if subpath.isabs():
@@ -1528,6 +1529,7 @@
     finally:
         for oth in others:
             oth.close()
+        del repo._subtoppath
 
 
 def verify(repo, level=None):