contrib/hg-ssh
changeset 1640 9a5b778f7e2d
parent 1537 583b3696d24d
child 5188 831ebc408ffb
equal deleted inserted replaced
1639:dbfc04a55607 1640:9a5b778f7e2d
     1 #!/usr/bin/env python
     1 #!/usr/bin/env python
     2 #
     2 #
     3 # Copyright 2005 by Intevation GmbH <intevation@intevation.de>
     3 # Copyright 2005, 2006 by Intevation GmbH <intevation@intevation.de>
     4 # Author(s):
     4 # Author(s):
     5 # Thomas Arendsen Hein <thomas@intevation.de>
     5 # Thomas Arendsen Hein <thomas@intevation.de>
     6 #
     6 #
     7 # This software may be used and distributed according to the terms
     7 # This software may be used and distributed according to the terms
     8 # of the GNU General Public License, incorporated herein by reference.
     8 # of the GNU General Public License, incorporated herein by reference.
    18 This allows pull/push over ssh to to the repositories given as arguments.
    18 This allows pull/push over ssh to to the repositories given as arguments.
    19 
    19 
    20 If all your repositories are subdirectories of a common directory, you can
    20 If all your repositories are subdirectories of a common directory, you can
    21 allow shorter paths with:
    21 allow shorter paths with:
    22 command="cd path/to/my/repositories && hg-ssh repo1 subdir/repo2"
    22 command="cd path/to/my/repositories && hg-ssh repo1 subdir/repo2"
       
    23 
       
    24 You can use pattern matching of your normal shell, e.g.:
       
    25 command="cd repos && hg-ssh user/thomas/* projects/{mercurial,foo}"
    23 """
    26 """
    24 
    27 
    25 from mercurial import commands
    28 from mercurial import commands
    26 
    29 
    27 import sys, os
    30 import sys, os