--- a/mercurial/commands.py Wed May 18 19:25:34 2011 +0200
+++ b/mercurial/commands.py Wed May 18 19:30:17 2011 +0200
@@ -3223,7 +3223,7 @@
Returns 0 on success.
"""
- hg.repository(hg.remoteui(ui, opts), ui.expandpath(dest), create=1)
+ hg.repository(hg.remoteui(ui, opts), ui.expandpath(dest), create=True)
@command('locate',
[('r', 'rev', '', _('search the repository as it is in REV'), _('REV')),
--- a/mercurial/localrepo.py Wed May 18 19:25:34 2011 +0200
+++ b/mercurial/localrepo.py Wed May 18 19:30:17 2011 +0200
@@ -25,7 +25,7 @@
supported = supportedformats | set(('store', 'fncache', 'shared',
'dotencode'))
- def __init__(self, baseui, path=None, create=0):
+ def __init__(self, baseui, path=None, create=False):
repo.repository.__init__(self)
self.root = os.path.realpath(util.expandpath(path))
self.path = os.path.join(self.root, ".hg")
--- a/mercurial/sshrepo.py Wed May 18 19:25:34 2011 +0200
+++ b/mercurial/sshrepo.py Wed May 18 19:30:17 2011 +0200
@@ -19,7 +19,7 @@
self.release()
class sshrepository(wireproto.wirerepository):
- def __init__(self, ui, path, create=0):
+ def __init__(self, ui, path, create=False):
self._url = path
self.ui = ui