equal
deleted
inserted
replaced
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 = '' |