equal
deleted
inserted
replaced
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 |