mercurial/hg.py
changeset 52555 85c095c1f8bc
parent 52096 19ae7730636a
child 52644 e627cc25b6f3
--- a/mercurial/hg.py	Sun Dec 29 19:39:35 2024 -0300
+++ b/mercurial/hg.py	Sun Dec 22 08:17:53 2024 -0300
@@ -1527,7 +1527,13 @@
                     display_outgoing_revs(ui, repo, o, opts)
 
                 cmdutil.outgoinghooks(ui, repo, other, opts, o)
-                ret = min(ret, _outgoing_recurse(ui, repo, dests, opts))
+
+                # path.loc is used instead of dest because what we need to pass
+                # is the destination of the repository containing the
+                # subrepositories and not the destination of the current
+                # subrepository being processed. It will be used to discover
+                # subrepositories paths when using relative paths do map them
+                ret = min(ret, _outgoing_recurse(ui, repo, (path.loc,), opts))
             except:  # re-raises
                 raise
             finally: