mercurial/unionrepo.py
changeset 37717 0664be4f0c1f
parent 37497 1541e1a8e87d
child 38176 df5f6881cebd
equal deleted inserted replaced
37716:dfc51a482031 37717:0664be4f0c1f
   229         return unionpeer(self)
   229         return unionpeer(self)
   230 
   230 
   231     def getcwd(self):
   231     def getcwd(self):
   232         return pycompat.getcwd() # always outside the repo
   232         return pycompat.getcwd() # always outside the repo
   233 
   233 
   234 def instance(ui, path, create):
   234 def instance(ui, path, create, intents=None):
   235     if create:
   235     if create:
   236         raise error.Abort(_('cannot create new union repository'))
   236         raise error.Abort(_('cannot create new union repository'))
   237     parentpath = ui.config("bundle", "mainreporoot")
   237     parentpath = ui.config("bundle", "mainreporoot")
   238     if not parentpath:
   238     if not parentpath:
   239         # try to find the correct path to the working directory repo
   239         # try to find the correct path to the working directory repo