mercurial/bundlerepo.py
changeset 39602 2d2bbf3f3e09
parent 39549 089fc0db0954
child 39603 a8d2faeca49e
equal deleted inserted replaced
39601:84d6e9a2b104 39602:2d2bbf3f3e09
   268         self._tempparent = None
   268         self._tempparent = None
   269         try:
   269         try:
   270             localrepo.localrepository.__init__(self, ui, repopath)
   270             localrepo.localrepository.__init__(self, ui, repopath)
   271         except error.RepoError:
   271         except error.RepoError:
   272             self._tempparent = pycompat.mkdtemp()
   272             self._tempparent = pycompat.mkdtemp()
   273             localrepo.instance(ui, self._tempparent, 1)
   273             localrepo.instance(ui, self._tempparent, create=True)
   274             localrepo.localrepository.__init__(self, ui, self._tempparent)
   274             localrepo.localrepository.__init__(self, ui, self._tempparent)
   275         self.ui.setconfig('phases', 'publish', False, 'bundlerepo')
   275         self.ui.setconfig('phases', 'publish', False, 'bundlerepo')
   276 
   276 
   277         if repopath:
   277         if repopath:
   278             self._url = 'bundle:' + util.expandpath(repopath) + '+' + bundlepath
   278             self._url = 'bundle:' + util.expandpath(repopath) + '+' + bundlepath