Show More
@@ -951,6 +951,10 b' def clone(ui, source, dest=None, **opts)' | |||||
951 | hardlinking. |
|
951 | hardlinking. | |
952 |
|
952 | |||
953 | See pull for valid source format details. |
|
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 | if dest is None: |
|
959 | if dest is None: | |
956 | dest = os.path.basename(os.path.normpath(source)) |
|
960 | dest = os.path.basename(os.path.normpath(source)) | |
@@ -1960,6 +1964,10 b' def init(ui, dest="."):' | |||||
1960 | directory does not exist, it is created. |
|
1964 | directory does not exist, it is created. | |
1961 |
|
1965 | |||
1962 | If no directory is given, the current directory is used. |
|
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 | hg.repository(ui, dest, create=1) |
|
1972 | hg.repository(ui, dest, create=1) | |
1965 |
|
1973 | |||
@@ -2236,7 +2244,8 b' def pull(ui, repo, source="default", **o' | |||||
2236 | - SSH requires an accessible shell account on the destination machine |
|
2244 | - SSH requires an accessible shell account on the destination machine | |
2237 | and a copy of hg in the remote path or specified with as remotecmd. |
|
2245 | and a copy of hg in the remote path or specified with as remotecmd. | |
2238 | - path is relative to the remote user's home directory by default. |
|
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 | - Mercurial doesn't use its own compression via SSH; the right thing |
|
2249 | - Mercurial doesn't use its own compression via SSH; the right thing | |
2241 | to do is to configure it in your ~/.ssh/ssh_config, e.g.: |
|
2250 | to do is to configure it in your ~/.ssh/ssh_config, e.g.: | |
2242 | Host *.mylocalnetwork.example.com |
|
2251 | Host *.mylocalnetwork.example.com | |
@@ -2284,6 +2293,9 b' def push(ui, repo, dest=None, **opts):' | |||||
2284 |
|
2293 | |||
2285 | Look at the help text for the pull command for important details |
|
2294 | Look at the help text for the pull command for important details | |
2286 | about ssh:// URLs. |
|
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 | dest = ui.expandpath(dest or 'default-push', dest or 'default') |
|
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