Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 2613:479e26afa10f
clone: do not make streaming default. add --stream option instead.
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Fri, 14 Jul 2006 14:51:36 -0700 |
parents | 00fc88b0b256 |
children | 8ba1c31f6864 |
comparison
equal
deleted
inserted
replaced
2612:ffb895f16925 | 2613:479e26afa10f |
---|---|
957 for the pull command for important details about ssh:// URLs. | 957 for the pull command for important details about ssh:// URLs. |
958 """ | 958 """ |
959 ui.setconfig_remoteopts(**opts) | 959 ui.setconfig_remoteopts(**opts) |
960 hg.clone(ui, ui.expandpath(source), dest, | 960 hg.clone(ui, ui.expandpath(source), dest, |
961 pull=opts['pull'], | 961 pull=opts['pull'], |
962 stream=opts['stream'], | |
962 rev=opts['rev'], | 963 rev=opts['rev'], |
963 update=not opts['noupdate']) | 964 update=not opts['noupdate']) |
964 | 965 |
965 def commit(ui, repo, *pats, **opts): | 966 def commit(ui, repo, *pats, **opts): |
966 """commit the specified files or all outstanding changes | 967 """commit the specified files or all outstanding changes |
2848 (clone, | 2849 (clone, |
2849 [('U', 'noupdate', None, _('do not update the new working directory')), | 2850 [('U', 'noupdate', None, _('do not update the new working directory')), |
2850 ('r', 'rev', [], | 2851 ('r', 'rev', [], |
2851 _('a changeset you would like to have after cloning')), | 2852 _('a changeset you would like to have after cloning')), |
2852 ('', 'pull', None, _('use pull protocol to copy metadata')), | 2853 ('', 'pull', None, _('use pull protocol to copy metadata')), |
2854 ('', 'stream', None, _('use streaming protocol (fast over LAN)')), | |
2853 ('e', 'ssh', '', _('specify ssh command to use')), | 2855 ('e', 'ssh', '', _('specify ssh command to use')), |
2854 ('', 'remotecmd', '', | 2856 ('', 'remotecmd', '', |
2855 _('specify hg command to run on the remote side'))], | 2857 _('specify hg command to run on the remote side'))], |
2856 _('hg clone [OPTION]... SOURCE [DEST]')), | 2858 _('hg clone [OPTION]... SOURCE [DEST]')), |
2857 "^commit|ci": | 2859 "^commit|ci": |