branch | stable |
changeset 18510 | f254ab6207ae |
parent 18364 | 6252b4f1c4b4 |
child 18520 | 751135cca13c |
--- a/mercurial/subrepo.py Tue Jan 22 14:33:17 2013 +0100 +++ b/mercurial/subrepo.py Tue Nov 27 20:56:27 2012 -0500 @@ -264,6 +264,9 @@ return repo.ui.config('paths', 'default-push') if repo.ui.config('paths', 'default'): return repo.ui.config('paths', 'default') + if repo.sharedpath != repo.path: + # chop off the .hg component to get the default path form + return os.path.dirname(repo.sharedpath) if abort: raise util.Abort(_("default path for subrepository not found"))