equal
deleted
inserted
replaced
221 if source.isabs(): |
221 if source.isabs(): |
222 return str(source) |
222 return str(source) |
223 source.path = posixpath.normpath(source.path) |
223 source.path = posixpath.normpath(source.path) |
224 parent = _abssource(repo._subparent, push, abort=False) |
224 parent = _abssource(repo._subparent, push, abort=False) |
225 if parent: |
225 if parent: |
226 parent = util.url(parent) |
226 parent = util.url(util.pconvert(parent)) |
227 parent.path = posixpath.join(parent.path or '', source.path) |
227 parent.path = posixpath.join(parent.path or '', source.path) |
228 parent.path = posixpath.normpath(parent.path) |
228 parent.path = posixpath.normpath(parent.path) |
229 return str(parent) |
229 return str(parent) |
230 else: # recursion reached top repo |
230 else: # recursion reached top repo |
231 if util.safehasattr(repo, '_subtoppath'): |
231 if util.safehasattr(repo, '_subtoppath'): |