[F010] Push

This functionality aims to surround : hg push and to adapt it for <ant> tags.

Shell command


hg push [-f] [-r REV]... [-e CMD] [--remotecmd CMD] [DEST]

push changes to the specified destination

    Push changes from the local repository to the given destination.

    This is the symmetrical operation for pull. It moves changes from the
    current repository to a different one. If the destination is local this is
    identical to a pull in that directory from the current one.

    By default, push will refuse to run if it detects the result would
    increase the number of remote heads. This generally indicates the user
    forgot to pull and merge before pushing.

    If -r/--rev is used, the named revision and all its ancestors will be
    pushed to the remote repository.

    Please see 'hg help urls' for important details about "ssh://" URLs. If
    DESTINATION is omitted, a default path will be used.

options:

 -f --force      force push
 -r --rev        a specific revision up to which you would like to push
 -e --ssh        specify ssh command to use
    --remotecmd  specify hg command to run on the remote side

use "hg -v help push" to show global options
                  

Parameters

Attribute Description Value Required
dir the local directory no : uses current directory by default
destination the local or remote destination - http://url
- https://url
- file://path | path
- ssh://url
NEED HELP FOR SSH
no : hg uses hgrc configuration by default
force force push true/false, yes/no, on/off no
revision a specific revision up to which you would like to push no
ssh specify ssh command to use no
remotecmd specify hg command to run on the remote side no
Nested element Description Required
dirset resource collections no
arg command line argument value no
auth authentification no : hg uses hgrc configuration by default

Examples


# using ant4hg authentification :
<hg cmd="push" dir="/my/local/dir/" destination="http://mercurial.intuxication.org/hg/ant4hg-tests">
  <auth user="ant4hg" password="******" />
</hg>

# using hgrc configuration :
<hg cmd="push" dir="my/local/repository"/>

# hgrc : 
[paths]
default=http://mercurial.intuxication.org/hg/ant4hg-tests
default-push=http://mercurial.intuxication.org/hg/ant4hg-tests  

[auth]
ant4hg.prefix = http://mercurial.intuxication.org
ant4hg.username = ant4hg
ant4hg.password = ******
ant4hg.schemes = http