mercurial/subrepo.py
changeset 13126 e76701bf4480
parent 13120 8568bbdfbafe
parent 13122 4a13ca2c21ce
child 13137 7397a53219c9
--- a/mercurial/subrepo.py	Tue Dec 07 16:08:16 2010 +0100
+++ b/mercurial/subrepo.py	Mon Dec 13 11:52:52 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)