bundlerepo: pass create=True
authorGregory Szorc <gregory.szorc@gmail.com>
Tue, 11 Sep 2018 18:45:05 -0700
changeset 39602 2d2bbf3f3e09
parent 39601 84d6e9a2b104
child 39603 a8d2faeca49e
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
mercurial/bundlerepo.py
--- a/mercurial/bundlerepo.py	Tue Sep 11 18:41:14 2018 -0700
+++ b/mercurial/bundlerepo.py	Tue Sep 11 18:45:05 2018 -0700
@@ -270,7 +270,7 @@
             localrepo.localrepository.__init__(self, ui, repopath)
         except error.RepoError:
             self._tempparent = pycompat.mkdtemp()
-            localrepo.instance(ui, self._tempparent, 1)
+            localrepo.instance(ui, self._tempparent, create=True)
             localrepo.localrepository.__init__(self, ui, self._tempparent)
         self.ui.setconfig('phases', 'publish', False, 'bundlerepo')