# HG changeset patch
# User Gregory Szorc <gregory.szorc@gmail.com>
# Date 1536716705 25200
#      Tue Sep 11 18:45:05 2018 -0700
# Node ID 2d2bbf3f3e090352814390aba28160e5ff358460
# Parent  84d6e9a2b104147f4637a5021b33651e7eb5924d
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

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')