changeset 51608:3e0f86f09f26 stable

subrepo: propagate non-default path on outgoing There was already a fix made in 5dbff89cf107 for pull and push commands. I did the same for the outgoing command. The problem I identified is that when the parent repository has multiple paths, the outgoing command was not respecting the parent path used and was always using the default path for subrepositories.
author Felipe Resende <felipe@fcresende.dev.br>
date Sun, 31 Mar 2024 17:57:46 -0300
parents 13c004b54cbe
children fc317bd5b637
files mercurial/hg.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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):