mercurial/subrepo.py
changeset 24786 56e15db9109f
parent 24785 39f519be5e65
child 24858 a99931201d1b
equal deleted inserted replaced
24785:39f519be5e65 24786:56e15db9109f
   957     def wvfs(self):
   957     def wvfs(self):
   958         """return own wvfs for efficiency and consitency
   958         """return own wvfs for efficiency and consitency
   959         """
   959         """
   960         return self._repo.wvfs
   960         return self._repo.wvfs
   961 
   961 
       
   962     @propertycache
       
   963     def _relpath(self):
       
   964         """return path to this subrepository as seen from outermost repository
       
   965         """
       
   966         # Keep consistent dir separators by avoiding vfs.join(self._path)
       
   967         return reporelpath(self._repo)
       
   968 
   962 class svnsubrepo(abstractsubrepo):
   969 class svnsubrepo(abstractsubrepo):
   963     def __init__(self, ctx, path, state):
   970     def __init__(self, ctx, path, state):
   964         super(svnsubrepo, self).__init__(ctx, path)
   971         super(svnsubrepo, self).__init__(ctx, path)
   965         self._state = state
   972         self._state = state
   966         self._exe = util.findexe('svn')
   973         self._exe = util.findexe('svn')