comparison mercurial/commands.py @ 6620:4f3e0dfa24a9

improve help text for push (explanation of -r)
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Thu, 22 May 2008 13:26:39 +0200
parents 65029a3aafc2
children 92ee960a928d 4d3a60d5c490
comparison
equal deleted inserted replaced
6611:f4c612da788d 6620:4f3e0dfa24a9
2066 destination is local this is identical to a pull in that directory 2066 destination is local this is identical to a pull in that directory
2067 from the current one. 2067 from the current one.
2068 2068
2069 By default, push will refuse to run if it detects the result would 2069 By default, push will refuse to run if it detects the result would
2070 increase the number of remote heads. This generally indicates the 2070 increase the number of remote heads. This generally indicates the
2071 the client has forgotten to sync and merge before pushing. 2071 the client has forgotten to pull and merge before pushing.
2072 2072
2073 Valid URLs are of the form: 2073 Valid URLs are of the form:
2074 2074
2075 local/filesystem/path (or file://local/filesystem/path) 2075 local/filesystem/path (or file://local/filesystem/path)
2076 ssh://[user@]host[:port]/[path] 2076 ssh://[user@]host[:port]/[path]
2077 http://[user@]host[:port]/[path] 2077 http://[user@]host[:port]/[path]
2078 https://[user@]host[:port]/[path] 2078 https://[user@]host[:port]/[path]
2079 2079
2080 An optional identifier after # indicates a particular branch, tag, 2080 An optional identifier after # indicates a particular branch, tag,
2081 or changeset to push. 2081 or changeset to push. If -r is used, the named changeset and all its
2082 ancestors will be pushed to the remote repository.
2082 2083
2083 Look at the help text for the pull command for important details 2084 Look at the help text for the pull command for important details
2084 about ssh:// URLs. 2085 about ssh:// URLs.
2085 2086
2086 Pushing to http:// and https:// URLs is only possible, if this 2087 Pushing to http:// and https:// URLs is only possible, if this