mercurial/commands.py
changeset 11218 ffd59c71b8ee
parent 11211 e43c23d189a5
parent 11217 1b8aa9ffa7dc
child 11219 39a7f69a0a9a
equal deleted inserted replaced
11216:1abd9442727c 11218:ffd59c71b8ee
  2528     return postincoming(ui, repo, modheads, opts.get('update'), checkout)
  2528     return postincoming(ui, repo, modheads, opts.get('update'), checkout)
  2529 
  2529 
  2530 def push(ui, repo, dest=None, **opts):
  2530 def push(ui, repo, dest=None, **opts):
  2531     """push changes to the specified destination
  2531     """push changes to the specified destination
  2532 
  2532 
  2533     Push changes from the local repository to the specified destination.
  2533     Push changesets from the local repository to the specified
  2534 
  2534     destination.
  2535     This is the symmetrical operation for pull. It moves changes from
  2535 
  2536     the current repository to a different one. If the destination is
  2536     This operation is symmetrical to pull: it is identical to a pull
  2537     local this is identical to a pull in that directory from the
  2537     in the destination repository from the current one.
  2538     current one.
  2538 
  2539 
  2539     By default, push will not allow creation of new heads at the
  2540     By default, push will refuse to run if it detects the result would
  2540     destination, since multiple heads would make it unclear which head
  2541     increase the number of remote heads. This generally indicates the
  2541     to use. In this situation, it is recommended to pull and merge
  2542     user forgot to pull and merge before pushing.
  2542     before pushing.
  2543 
  2543 
  2544     If -r/--rev is used, the named revision and all its ancestors will
  2544     Use -f/--force to override the default behavior and push all
  2545     be pushed to the remote repository.
  2545     changesets on all branches.
       
  2546 
       
  2547     If -r/--rev is used, the specified revision and all its ancestors
       
  2548     will be pushed to the remote repository.
  2546 
  2549 
  2547     Please see :hg:`help urls` for important details about ``ssh://``
  2550     Please see :hg:`help urls` for important details about ``ssh://``
  2548     URLs. If DESTINATION is omitted, a default path will be used.
  2551     URLs. If DESTINATION is omitted, a default path will be used.
  2549 
  2552 
  2550     Returns 0 if push was successful, 1 if nothing to push.
  2553     Returns 0 if push was successful, 1 if nothing to push.