Show More
@@ -14,7 +14,7 b' were part of the actual repository.' | |||
|
14 | 14 | from node import nullid |
|
15 | 15 | from i18n import _ |
|
16 | 16 | import os, tempfile, shutil |
|
17 | import changegroup, util, mdiff, discovery | |
|
17 | import changegroup, util, mdiff, discovery, cmdutil | |
|
18 | 18 | import localrepo, changelog, manifest, filelog, revlog, error |
|
19 | 19 | |
|
20 | 20 | class bundlerevlog(revlog.revlog): |
@@ -274,6 +274,11 b' def instance(ui, path, create):' | |||
|
274 | 274 | if create: |
|
275 | 275 | raise util.Abort(_('cannot create new bundle repository')) |
|
276 | 276 | parentpath = ui.config("bundle", "mainreporoot", "") |
|
277 | if not parentpath: | |
|
278 | # try to find the correct path to the working directory repo | |
|
279 | parentpath = cmdutil.findrepo(os.getcwd()) | |
|
280 | if parentpath is None: | |
|
281 | parentpath = '' | |
|
277 | 282 | if parentpath: |
|
278 | 283 | # Try to make the full path relative so we get a nice, short URL. |
|
279 | 284 | # In particular, we don't want temp dir names in test outputs. |
General Comments 0
You need to be logged in to leave comments.
Login now