mercurial/subrepo.py
changeset 24786 56e15db9109f
parent 24785 39f519be5e65
child 24858 a99931201d1b
--- a/mercurial/subrepo.py	Wed Apr 15 11:23:26 2015 -0400
+++ b/mercurial/subrepo.py	Wed Apr 15 11:49:44 2015 -0400
@@ -959,6 +959,13 @@
         """
         return self._repo.wvfs
 
+    @propertycache
+    def _relpath(self):
+        """return path to this subrepository as seen from outermost repository
+        """
+        # Keep consistent dir separators by avoiding vfs.join(self._path)
+        return reporelpath(self._repo)
+
 class svnsubrepo(abstractsubrepo):
     def __init__(self, ctx, path, state):
         super(svnsubrepo, self).__init__(ctx, path)