Mercurial > hg
comparison tests/test-subrepo-svn.t @ 12365:22f3353bcc36
tests: cleanup exit code handling in unified tests
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 21 Sep 2010 16:00:02 -0500 |
parents | 4134686b83e1 |
children | c01dc9087d9a |
comparison
equal
deleted
inserted
replaced
12364:e128fa4615f2 | 12365:22f3353bcc36 |
---|---|
8 $ escapedwd=`pwd | fix_path` | 8 $ escapedwd=`pwd | fix_path` |
9 | 9 |
10 SVN wants all paths to start with a slash. Unfortunately, Windows ones | 10 SVN wants all paths to start with a slash. Unfortunately, Windows ones |
11 don't. Handle that. | 11 don't. Handle that. |
12 | 12 |
13 $ expr "$escapedwd" : "\/" > /dev/null | 13 $ expr "$escapedwd" : / > /dev/null || escapedwd="/$escapedwd" |
14 $ if [ $? -ne 0 ]; then | |
15 > escapedwd="/$escapedwd" | |
16 > fi | |
17 $ escapedwd=`python -c "import urllib, sys; sys.stdout.write(urllib.quote(sys.argv[1]))" "$escapedwd"` | 14 $ escapedwd=`python -c "import urllib, sys; sys.stdout.write(urllib.quote(sys.argv[1]))" "$escapedwd"` |
18 $ filterpath="s|$escapedwd|/root|" | 15 $ filterpath="s|$escapedwd|/root|" |
19 $ filteroutofdate='s/ in transaction.*/ is out of date/;s/Out of date: /File /' | 16 $ filteroutofdate='s/ in transaction.*/ is out of date/;s/Out of date: /File /' |
20 | 17 |
21 create subversion repo | 18 create subversion repo |