Mercurial > hg
annotate tests/helpers.sh @ 12489:d039c4285092
tests: unify test-ssh
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 26 Sep 2010 13:44:49 -0500 |
parents | 12e5149cafca |
children |
rev | line source |
---|---|
10774 | 1 #/bin/sh |
2 | |
3 hideport() { sed "s/localhost:$HGPORT/localhost:\$HGPORT/"; } | |
4 | |
11198
b345b1cc124f
rebase: use helpers.sh in tests
Matt Mackall <mpm@selenic.com>
parents:
10774
diff
changeset
|
5 repr() { python -c "import sys; print repr(sys.stdin.read()).replace('\\n', '\n')"; } |
b345b1cc124f
rebase: use helpers.sh in tests
Matt Mackall <mpm@selenic.com>
parents:
10774
diff
changeset
|
6 |
b345b1cc124f
rebase: use helpers.sh in tests
Matt Mackall <mpm@selenic.com>
parents:
10774
diff
changeset
|
7 hidehex() { python -c 'import sys, re; print re.replace("\b[0-9A-Fa-f]{12,40}", "X" * 12)'; } |
b345b1cc124f
rebase: use helpers.sh in tests
Matt Mackall <mpm@selenic.com>
parents:
10774
diff
changeset
|
8 |
b345b1cc124f
rebase: use helpers.sh in tests
Matt Mackall <mpm@selenic.com>
parents:
10774
diff
changeset
|
9 hidetmp() { sed "s/$HGTMP/\$HGTMP/"; } |
10774 | 10 |
11200
12e5149cafca
strip: improve full backup message
Matt Mackall <mpm@selenic.com>
parents:
11198
diff
changeset
|
11 hidebackup() { sed 's/\(saved backup bundle to \).*/\1/'; } |
10774 | 12 |
11198
b345b1cc124f
rebase: use helpers.sh in tests
Matt Mackall <mpm@selenic.com>
parents:
10774
diff
changeset
|
13 cleanrebase() { |
b345b1cc124f
rebase: use helpers.sh in tests
Matt Mackall <mpm@selenic.com>
parents:
10774
diff
changeset
|
14 sed -e 's/\(Rebase status stored to\).*/\1/' \ |
b345b1cc124f
rebase: use helpers.sh in tests
Matt Mackall <mpm@selenic.com>
parents:
10774
diff
changeset
|
15 -e 's/\(Rebase status restored from\).*/\1/' \ |
11200
12e5149cafca
strip: improve full backup message
Matt Mackall <mpm@selenic.com>
parents:
11198
diff
changeset
|
16 -e 's/\(saved backup bundle to \).*/\1/'; |
11198
b345b1cc124f
rebase: use helpers.sh in tests
Matt Mackall <mpm@selenic.com>
parents:
10774
diff
changeset
|
17 } |