comparison mercurial/commands.py @ 9970:36760956f6d3 stable

commands: mark "ssh://" as inline literals in help texts
author Martin Geisler <mg@lazybytes.net>
date Tue, 01 Dec 2009 00:15:45 +0100
parents 5b149c88d9e8
children f603299ffa7a ddc899096b7b 8b5ca9b9b435
comparison
equal deleted inserted replaced
9967:0c3eeee91c9a 9970:36760956f6d3
590 The location of the source is added to the new repository's 590 The location of the source is added to the new repository's
591 .hg/hgrc file, as the default to be used for future pulls. 591 .hg/hgrc file, as the default to be used for future pulls.
592 592
593 See 'hg help urls' for valid source format details. 593 See 'hg help urls' for valid source format details.
594 594
595 It is possible to specify an ssh:// URL as the destination, but no 595 It is possible to specify an ``ssh://`` URL as the destination, but no
596 .hg/hgrc and working directory will be created on the remote side. 596 .hg/hgrc and working directory will be created on the remote side.
597 Please see 'hg help urls' for important details about ssh:// URLs. 597 Please see 'hg help urls' for important details about ``ssh://`` URLs.
598 598
599 If the -U/--noupdate option is specified, the new clone will contain 599 If the -U/--noupdate option is specified, the new clone will contain
600 only a repository (.hg) and no working copy (the working copy parent 600 only a repository (.hg) and no working copy (the working copy parent
601 will be the null changeset). Otherwise, clone will initially check 601 will be the null changeset). Otherwise, clone will initially check
602 out (in order of precedence): 602 out (in order of precedence):
1937 Initialize a new repository in the given directory. If the given 1937 Initialize a new repository in the given directory. If the given
1938 directory does not exist, it will be created. 1938 directory does not exist, it will be created.
1939 1939
1940 If no directory is given, the current directory is used. 1940 If no directory is given, the current directory is used.
1941 1941
1942 It is possible to specify an ssh:// URL as the destination. 1942 It is possible to specify an ``ssh://`` URL as the destination.
1943 See 'hg help urls' for more information. 1943 See 'hg help urls' for more information.
1944 """ 1944 """
1945 hg.repository(cmdutil.remoteui(ui, opts), dest, create=1) 1945 hg.repository(cmdutil.remoteui(ui, opts), dest, create=1)
1946 1946
1947 def locate(ui, repo, *pats, **opts): 1947 def locate(ui, repo, *pats, **opts):
2335 user forgot to pull and merge before pushing. 2335 user forgot to pull and merge before pushing.
2336 2336
2337 If -r/--rev is used, the named revision and all its ancestors will 2337 If -r/--rev is used, the named revision and all its ancestors will
2338 be pushed to the remote repository. 2338 be pushed to the remote repository.
2339 2339
2340 Please see 'hg help urls' for important details about ssh:// 2340 Please see 'hg help urls' for important details about ``ssh://``
2341 URLs. If DESTINATION is omitted, a default path will be used. 2341 URLs. If DESTINATION is omitted, a default path will be used.
2342 """ 2342 """
2343 dest, revs, checkout = hg.parseurl( 2343 dest, revs, checkout = hg.parseurl(
2344 ui.expandpath(dest or 'default-push', dest or 'default'), opts.get('rev')) 2344 ui.expandpath(dest or 'default-push', dest or 'default'), opts.get('rev'))
2345 other = hg.repository(cmdutil.remoteui(repo, opts), dest) 2345 other = hg.repository(cmdutil.remoteui(repo, opts), dest)