Mercurial > hg
comparison mercurial/commands.py @ 9972:f603299ffa7a
Merge with stable
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Tue, 01 Dec 2009 00:43:54 +0100 |
parents | 0347eb4d2236 36760956f6d3 |
children | 46c6bac41dc6 |
comparison
equal
deleted
inserted
replaced
9969:361bee1ec172 | 9972:f603299ffa7a |
---|---|
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): |
2328 user forgot to pull and merge before pushing. | 2328 user forgot to pull and merge before pushing. |
2329 | 2329 |
2330 If -r/--rev is used, the named revision and all its ancestors will | 2330 If -r/--rev is used, the named revision and all its ancestors will |
2331 be pushed to the remote repository. | 2331 be pushed to the remote repository. |
2332 | 2332 |
2333 Please see 'hg help urls' for important details about ssh:// | 2333 Please see 'hg help urls' for important details about ``ssh://`` |
2334 URLs. If DESTINATION is omitted, a default path will be used. | 2334 URLs. If DESTINATION is omitted, a default path will be used. |
2335 """ | 2335 """ |
2336 dest, revs, checkout = hg.parseurl( | 2336 dest, revs, checkout = hg.parseurl( |
2337 ui.expandpath(dest or 'default-push', dest or 'default'), opts.get('rev')) | 2337 ui.expandpath(dest or 'default-push', dest or 'default'), opts.get('rev')) |
2338 other = hg.repository(cmdutil.remoteui(repo, opts), dest) | 2338 other = hg.repository(cmdutil.remoteui(repo, opts), dest) |