diff mercurial/subrepo.py @ 12852:5dbff89cf107 stable

subrepo: propagate non-default pull/push path to relative subrepos (issue1852)
author Mads Kiilerich <mads@kiilerich.com>
date Wed, 27 Oct 2010 00:28:40 +0200
parents 8f71e5074e3c
children 9bb180abc4d0
line wrap: on
line diff
--- a/mercurial/subrepo.py	Tue Oct 26 14:41:58 2010 +0300
+++ b/mercurial/subrepo.py	Wed Oct 27 00:28:40 2010 +0200
@@ -187,6 +187,8 @@
             else: # plain file system path
                 return posixpath.normpath(os.path.join(parent, repo._subsource))
     else: # recursion reached top repo
+        if hasattr(repo, '_subtoppath'):
+            return repo._subtoppath
         if push and repo.ui.config('paths', 'default-push'):
             return repo.ui.config('paths', 'default-push')
         if repo.ui.config('paths', 'default'):