# HG changeset patch # User Martin Geisler # Date 1305739817 -7200 # Node ID 82f3b0f3f0a589c28aebff9190273cadac534a00 # Parent 8c740a850ad7ae378dc3d9f1374b190f144dba98 localrepo, sshrepo: use Boolean create argument in __init__ diff -r 8c740a850ad7 -r 82f3b0f3f0a5 mercurial/commands.py --- 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')), diff -r 8c740a850ad7 -r 82f3b0f3f0a5 mercurial/localrepo.py --- 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") diff -r 8c740a850ad7 -r 82f3b0f3f0a5 mercurial/sshrepo.py --- 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