equal
deleted
inserted
replaced
19 from .node import nullid |
19 from .node import nullid |
20 |
20 |
21 from . import ( |
21 from . import ( |
22 changelog, |
22 changelog, |
23 cmdutil, |
23 cmdutil, |
|
24 error, |
24 filelog, |
25 filelog, |
25 localrepo, |
26 localrepo, |
26 manifest, |
27 manifest, |
27 mdiff, |
28 mdiff, |
28 pathutil, |
29 pathutil, |
229 def getcwd(self): |
230 def getcwd(self): |
230 return os.getcwd() # always outside the repo |
231 return os.getcwd() # always outside the repo |
231 |
232 |
232 def instance(ui, path, create): |
233 def instance(ui, path, create): |
233 if create: |
234 if create: |
234 raise util.Abort(_('cannot create new union repository')) |
235 raise error.Abort(_('cannot create new union repository')) |
235 parentpath = ui.config("bundle", "mainreporoot", "") |
236 parentpath = ui.config("bundle", "mainreporoot", "") |
236 if not parentpath: |
237 if not parentpath: |
237 # try to find the correct path to the working directory repo |
238 # try to find the correct path to the working directory repo |
238 parentpath = cmdutil.findrepo(os.getcwd()) |
239 parentpath = cmdutil.findrepo(os.getcwd()) |
239 if parentpath is None: |
240 if parentpath is None: |