mercurial/subrepo.py
branchstable
changeset 13105 2245fcd0e160
parent 13017 d0e21c5fde41
child 13117 594ed85b6a3f
child 13122 4a13ca2c21ce
--- 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)