Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 1281:84df9951532a
Add --pull option to clone.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Tue, 20 Sep 2005 11:20:48 -0700 |
parents | b0633406c07a |
children | 1546c2aa6b30 |
line wrap: on
line diff
--- a/mercurial/commands.py Mon Sep 19 18:24:37 2005 -0700 +++ b/mercurial/commands.py Tue Sep 20 11:20:48 2005 -0700 @@ -629,7 +629,7 @@ other = hg.repository(ui, source) copy = False - if other.dev() != -1: + if not opts['pull'] and other.dev() != -1: abspath = os.path.abspath(source) copy = True @@ -1782,6 +1782,7 @@ (clone, [('U', 'noupdate', None, 'skip update after cloning'), ('e', 'ssh', "", 'ssh command'), + ('', 'pull', None, 'use pull protocol to copy metadata'), ('', 'remotecmd', "", 'remote hg command')], 'hg clone [OPTION]... SOURCE [DEST]'), "^commit|ci":