mercurial/subrepo.py
changeset 46950 279df499511e
parent 46930 0afe96e374a7
child 47012 d55b71393907
--- a/mercurial/subrepo.py	Wed Apr 14 17:29:27 2021 +0200
+++ b/mercurial/subrepo.py	Wed Apr 14 17:41:02 2021 +0200
@@ -882,7 +882,8 @@
             opts = copy.copy(opts)
             opts.pop(b'rev', None)
             opts.pop(b'branch', None)
-        return hg.incoming(ui, self._repo, _abssource(self._repo, False), opts)
+        subpath = subrepoutil.repo_rel_or_abs_source(self._repo)
+        return hg.incoming(ui, self._repo, source, opts, subpath=subpath)
 
     @annotatesubrepoerror
     def files(self):