Show More
@@ -951,6 +951,10 b' def clone(ui, source, dest=None, **opts)' | |||
|
951 | 951 | hardlinking. |
|
952 | 952 | |
|
953 | 953 | See pull for valid source format details. |
|
954 | ||
|
955 | It is possible to specify an ssh:// URL as the destination, but no | |
|
956 | .hg/hgrc will be created on the remote side. Look at the help text | |
|
957 | for the pull command for important details about ssh:// URLs. | |
|
954 | 958 | """ |
|
955 | 959 | if dest is None: |
|
956 | 960 | dest = os.path.basename(os.path.normpath(source)) |
@@ -1960,6 +1964,10 b' def init(ui, dest="."):' | |||
|
1960 | 1964 | directory does not exist, it is created. |
|
1961 | 1965 | |
|
1962 | 1966 | If no directory is given, the current directory is used. |
|
1967 | ||
|
1968 | It is possible to specify an ssh:// URL as the destination. | |
|
1969 | Look at the help text for the pull command for important details | |
|
1970 | about ssh:// URLs. | |
|
1963 | 1971 | """ |
|
1964 | 1972 | hg.repository(ui, dest, create=1) |
|
1965 | 1973 | |
@@ -2236,7 +2244,8 b' def pull(ui, repo, source="default", **o' | |||
|
2236 | 2244 | - SSH requires an accessible shell account on the destination machine |
|
2237 | 2245 | and a copy of hg in the remote path or specified with as remotecmd. |
|
2238 | 2246 | - path is relative to the remote user's home directory by default. |
|
2239 |
Use a slash at the start of a path to specify an absolute path |
|
|
2247 | Use an extra slash at the start of a path to specify an absolute path: | |
|
2248 | ssh://example.com//tmp/repository | |
|
2240 | 2249 | - Mercurial doesn't use its own compression via SSH; the right thing |
|
2241 | 2250 | to do is to configure it in your ~/.ssh/ssh_config, e.g.: |
|
2242 | 2251 | Host *.mylocalnetwork.example.com |
@@ -2284,6 +2293,9 b' def push(ui, repo, dest=None, **opts):' | |||
|
2284 | 2293 | |
|
2285 | 2294 | Look at the help text for the pull command for important details |
|
2286 | 2295 | about ssh:// URLs. |
|
2296 | ||
|
2297 | Pushing to http:// and https:// URLs is possible, too, if this | |
|
2298 | feature is enabled on the remote Mercurial server. | |
|
2287 | 2299 | """ |
|
2288 | 2300 | dest = ui.expandpath(dest or 'default-push', dest or 'default') |
|
2289 | 2301 |
General Comments 0
You need to be logged in to leave comments.
Login now