Mercurial > public > mercurial-scm > hg
comparison mercurial/bundlerepo.py @ 25830:5418dd5be8ac
bundlerepo: mark internal-only config variable
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 25 Jun 2015 17:43:24 -0500 |
parents | 86c0b5c09ee6 |
children | 5aaf51c14fea |
comparison
equal
deleted
inserted
replaced
25829:38cf0908bf98 | 25830:5418dd5be8ac |
---|---|
344 | 344 |
345 | 345 |
346 def instance(ui, path, create): | 346 def instance(ui, path, create): |
347 if create: | 347 if create: |
348 raise util.Abort(_('cannot create new bundle repository')) | 348 raise util.Abort(_('cannot create new bundle repository')) |
349 # internal config: bundle.mainreporoot | |
349 parentpath = ui.config("bundle", "mainreporoot", "") | 350 parentpath = ui.config("bundle", "mainreporoot", "") |
350 if not parentpath: | 351 if not parentpath: |
351 # try to find the correct path to the working directory repo | 352 # try to find the correct path to the working directory repo |
352 parentpath = cmdutil.findrepo(os.getcwd()) | 353 parentpath = cmdutil.findrepo(os.getcwd()) |
353 if parentpath is None: | 354 if parentpath is None: |