Mercurial > hg
changeset 14363:82f3b0f3f0a5
localrepo, sshrepo: use Boolean create argument in __init__
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Wed, 18 May 2011 19:30:17 +0200 |
parents | 8c740a850ad7 |
children | a3b9f1bddab1 |
files | mercurial/commands.py mercurial/localrepo.py mercurial/sshrepo.py |
diffstat | 3 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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