comparison mercurial/unionrepo.py @ 33182:634997248c97

configitems: register the 'bundle.mainreporoot' config
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 30 Jun 2017 03:31:26 +0200
parents f1e0446e804c
children 21fc747e1bc5
comparison
equal deleted inserted replaced
33181:640a0760e666 33182:634997248c97
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 = ''