comparison mercurial/commands.py @ 6625:4d3a60d5c490

improve help text for clone -U
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Fri, 23 May 2008 13:59:23 +0200
parents 4f3e0dfa24a9
children a2b13cac0922 0397f592372f
comparison
equal deleted inserted replaced
6624:1916e629a29d 6625:4d3a60d5c490
517 (Emacs and most Linux Kernel tools do so). 517 (Emacs and most Linux Kernel tools do so).
518 518
519 If you use the -r option to clone up to a specific revision, no 519 If you use the -r option to clone up to a specific revision, no
520 subsequent revisions will be present in the cloned repository. 520 subsequent revisions will be present in the cloned repository.
521 This option implies --pull, even on local repositories. 521 This option implies --pull, even on local repositories.
522
523 If the -U option is used, the new clone will contain only a repository
524 (.hg) and no working copy (the working copy parent is the null revision).
522 525
523 See pull for valid source format details. 526 See pull for valid source format details.
524 527
525 It is possible to specify an ssh:// URL as the destination, but no 528 It is possible to specify an ssh:// URL as the destination, but no
526 .hg/hgrc and working directory will be created on the remote side. 529 .hg/hgrc and working directory will be created on the remote side.
2953 ('', 'decode', None, _('apply any matching decode filter')), 2956 ('', 'decode', None, _('apply any matching decode filter')),
2954 ] + walkopts, 2957 ] + walkopts,
2955 _('hg cat [OPTION]... FILE...')), 2958 _('hg cat [OPTION]... FILE...')),
2956 "^clone": 2959 "^clone":
2957 (clone, 2960 (clone,
2958 [('U', 'noupdate', None, _('do not update the new working directory')), 2961 [('U', 'noupdate', None,
2962 _('the clone will only contain a repository (no working copy)')),
2959 ('r', 'rev', [], 2963 ('r', 'rev', [],
2960 _('a changeset you would like to have after cloning')), 2964 _('a changeset you would like to have after cloning')),
2961 ('', 'pull', None, _('use pull protocol to copy metadata')), 2965 ('', 'pull', None, _('use pull protocol to copy metadata')),
2962 ('', 'uncompressed', None, 2966 ('', 'uncompressed', None,
2963 _('use uncompressed transfer (fast over LAN)')), 2967 _('use uncompressed transfer (fast over LAN)')),