comparison mercurial/commands.py @ 7981:20df260ae301

commands: clarify push help text
author Martin Geisler <mg@daimi.au.dk>
date Sat, 04 Apr 2009 18:03:03 +0200
parents 3d8252430e17
children cab4a521a3fd
comparison
equal deleted inserted replaced
7980:3d8252430e17 7981:20df260ae301
2192 def push(ui, repo, dest=None, **opts): 2192 def push(ui, repo, dest=None, **opts):
2193 """push changes to the specified destination 2193 """push changes to the specified destination
2194 2194
2195 Push changes from the local repository to the given destination. 2195 Push changes from the local repository to the given destination.
2196 2196
2197 This is the symmetrical operation for pull. It helps to move 2197 This is the symmetrical operation for pull. It moves changes from
2198 changes from the current repository to a different one. If the 2198 the current repository to a different one. If the destination is
2199 destination is local this is identical to a pull in that directory 2199 local this is identical to a pull in that directory from the
2200 from the current one. 2200 current one.
2201 2201
2202 By default, push will refuse to run if it detects the result would 2202 By default, push will refuse to run if it detects the result would
2203 increase the number of remote heads. This generally indicates the 2203 increase the number of remote heads. This generally indicates the
2204 the client has forgotten to pull and merge before pushing. 2204 the client has forgotten to pull and merge before pushing.
2205 2205
2206 If -r is used, the named changeset and all its ancestors will be pushed 2206 If -r is used, the named revision and all its ancestors will be
2207 to the remote repository. 2207 pushed to the remote repository.
2208 2208
2209 Look at the help text for URLs for important details about ssh:// URLs. 2209 Look at the help text for URLs for important details about ssh:// URLs.
2210 If DESTINATION is omitted, a default path will be used. 2210 If DESTINATION is omitted, a default path will be used.
2211 See 'hg help urls' for more information. 2211 See 'hg help urls' for more information.
2212 """ 2212 """