##// END OF EJS Templates
subrepo: fix repo relative path calculation for root directories (issue3033)
Matt Mackall -
r15191:fccd350a stable
parent child Browse files
Show More
@@ -183,7 +183,8 b' def reporelpath(repo):'
183 parent = repo
183 parent = repo
184 while hasattr(parent, '_subparent'):
184 while hasattr(parent, '_subparent'):
185 parent = parent._subparent
185 parent = parent._subparent
186 return repo.root[len(parent.root)+1:]
186 p = parent.root.rstrip(os.sep)
187 return repo.root[len(p) + 1:]
187
188
188 def subrelpath(sub):
189 def subrelpath(sub):
189 """return path to this subrepo as seen from outermost repo"""
190 """return path to this subrepo as seen from outermost repo"""
General Comments 0
You need to be logged in to leave comments. Login now