# HG changeset patch # User Martin Geisler # Date 2011-06-14 14:33:46 # Node ID bd1acea552ff2e79f62273625f6ee5f44a60b9cd # Parent 6e631c24c6d9ba94c482c0b3ca6946aa4fcb8300 hg: rename opts argument to peeropts in clone This should make it clearer that the options are used with remoteui only and are not used otherwise in hg.clone. diff --git a/mercurial/hg.py b/mercurial/hg.py --- a/mercurial/hg.py +++ b/mercurial/hg.py @@ -174,8 +174,8 @@ def share(ui, source, dest=None, update= continue _update(r, uprev) -def clone(ui, opts, source, dest=None, pull=False, rev=None, update=True, - stream=False, branch=None): +def clone(ui, peeropts, source, dest=None, pull=False, rev=None, + update=True, stream=False, branch=None): """Make a copy of an existing repository. Create a copy of an existing repository in a new directory. The @@ -214,7 +214,7 @@ def clone(ui, opts, source, dest=None, p if isinstance(source, str): origsource = ui.expandpath(source) source, branch = parseurl(origsource, branch) - srcrepo = repository(remoteui(ui, opts), source) + srcrepo = repository(remoteui(ui, peeropts), source) else: srcrepo = source branch = (None, branch or []) @@ -308,12 +308,13 @@ def clone(ui, opts, source, dest=None, p # we need to re-init the repo after manually copying the data # into it - destrepo = repository(remoteui(ui, opts), dest) + destrepo = repository(remoteui(ui, peeropts), dest) srcrepo.hook('outgoing', source='clone', node=node.hex(node.nullid)) else: try: - destrepo = repository(remoteui(ui, opts), dest, create=True) + destrepo = repository(remoteui(ui, peeropts), dest, + create=True) except OSError, inst: if inst.errno == errno.EEXIST: dircleanup.close()