Mercurial > hg > mercurial-crew-with-dirclash
annotate tests/test-empty-dir @ 1537:583b3696d24d
Added hg-ssh - a wrapper for ssh access to a limited set of mercurial repos
To be used in ~/.ssh/authorized_keys with the "command" option, see sshd(8):
command="hg-ssh path/to/repo1 /path/to/repo2 ~/repo3 ~user/repo4" ssh-dss ...
(probably together with these other useful options:
no-port-forwarding,no-X11-forwarding,no-agent-forwarding)
This allows pull/push over ssh to to the repositories given as arguments.
If all your repositories are subdirectories of a common directory, you can
allow shorter paths with:
command="cd path/to/my/repositories && hg-ssh repo1 subdir/repo2"
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Sun, 13 Nov 2005 02:06:02 +0100 |
parents | 0902ffece4b4 |
children | ba198d17eea9 |
rev | line source |
---|---|
578 | 1 #!/bin/sh |
2 | |
3 hg init | |
4 echo 123 > a | |
5 hg add a | |
749
7e4843b7efd2
Update tests to use commit -m and default -u
mpm@selenic.com
parents:
578
diff
changeset
|
6 hg commit -m "first" -d "0 0" a |
578 | 7 mkdir sub |
8 echo 321 > sub/b | |
9 hg add sub/b | |
749
7e4843b7efd2
Update tests to use commit -m and default -u
mpm@selenic.com
parents:
578
diff
changeset
|
10 hg commit -m "second" -d "0 0" sub/b |
578 | 11 cat sub/b |
12 hg co 0 | |
13 cat sub/b | |
14 ls sub | |
15 | |
16 true |