D4553: bundlerepo: pass create=True

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Thu Sep 13 02:02:12 UTC 2018


indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  I don't want to know how this came to be. Maybe a holdover from the
  days before Python had a bool type?

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D4553

AFFECTED FILES
  mercurial/bundlerepo.py

CHANGE DETAILS

diff --git a/mercurial/bundlerepo.py b/mercurial/bundlerepo.py
--- a/mercurial/bundlerepo.py
+++ b/mercurial/bundlerepo.py
@@ -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')
 



To: indygreg, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list