Mercurial > public > mercurial-scm > hg
diff mercurial/subrepo.py @ 13105:2245fcd0e160 stable
subrepo: initialize subrepo relative default paths relative to their root
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Fri, 10 Dec 2010 01:30:16 +0100 |
parents | d0e21c5fde41 |
children | 594ed85b6a3f 4a13ca2c21ce |
line wrap: on
line diff
--- a/mercurial/subrepo.py Tue Dec 07 20:03:04 2010 +1100 +++ b/mercurial/subrepo.py Fri Dec 10 01:30:16 2010 +0100 @@ -333,6 +333,8 @@ def addpathconfig(key, value): if value: + if not os.path.isabs(value): + value = os.path.relpath(os.path.abspath(value), root) fp.write('%s = %s\n' % (key, value)) self._repo.ui.setconfig('paths', key, value)