mercurial/unionrepo.py
changeset 33182 634997248c97
parent 31724 f1e0446e804c
child 34219 21fc747e1bc5
equal deleted inserted replaced
33181:640a0760e666 33182:634997248c97
   230         return pycompat.getcwd() # always outside the repo
   230         return pycompat.getcwd() # always outside the repo
   231 
   231 
   232 def instance(ui, path, create):
   232 def instance(ui, path, create):
   233     if create:
   233     if create:
   234         raise error.Abort(_('cannot create new union repository'))
   234         raise error.Abort(_('cannot create new union repository'))
   235     parentpath = ui.config("bundle", "mainreporoot", "")
   235     parentpath = ui.config("bundle", "mainreporoot")
   236     if not parentpath:
   236     if not parentpath:
   237         # try to find the correct path to the working directory repo
   237         # try to find the correct path to the working directory repo
   238         parentpath = cmdutil.findrepo(pycompat.getcwd())
   238         parentpath = cmdutil.findrepo(pycompat.getcwd())
   239         if parentpath is None:
   239         if parentpath is None:
   240             parentpath = ''
   240             parentpath = ''