mercurial/subrepo.py
branchstable
changeset 18510 f254ab6207ae
parent 18364 6252b4f1c4b4
child 18520 751135cca13c
equal deleted inserted replaced
18509:21daee53c101 18510:f254ab6207ae
   262             return repo._subtoppath
   262             return repo._subtoppath
   263         if push and repo.ui.config('paths', 'default-push'):
   263         if push and repo.ui.config('paths', 'default-push'):
   264             return repo.ui.config('paths', 'default-push')
   264             return repo.ui.config('paths', 'default-push')
   265         if repo.ui.config('paths', 'default'):
   265         if repo.ui.config('paths', 'default'):
   266             return repo.ui.config('paths', 'default')
   266             return repo.ui.config('paths', 'default')
       
   267         if repo.sharedpath != repo.path:
       
   268             # chop off the .hg component to get the default path form
       
   269             return os.path.dirname(repo.sharedpath)
   267     if abort:
   270     if abort:
   268         raise util.Abort(_("default path for subrepository not found"))
   271         raise util.Abort(_("default path for subrepository not found"))
   269 
   272 
   270 def itersubrepos(ctx1, ctx2):
   273 def itersubrepos(ctx1, ctx2):
   271     """find subrepos in ctx1 or ctx2"""
   274     """find subrepos in ctx1 or ctx2"""