Mercurial > hg
comparison mercurial/bundlerepo.py @ 39602:2d2bbf3f3e09
bundlerepo: pass create=True
I don't want to know how this came to be. Maybe a holdover from the
days before Python had a bool type?
Differential Revision: https://phab.mercurial-scm.org/D4553
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Tue, 11 Sep 2018 18:45:05 -0700 |
parents | 089fc0db0954 |
children | a8d2faeca49e |
comparison
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 |