Show More
@@ -0,0 +1,17 b'' | |||
|
1 | import sys | |
|
2 | ||
|
3 | from mercurial import ( | |
|
4 | pycompat, | |
|
5 | util, | |
|
6 | ) | |
|
7 | ||
|
8 | def main(argv): | |
|
9 | enc = util.urlreq.quote(pycompat.sysbytes(argv[1])) | |
|
10 | if pycompat.iswindows: | |
|
11 | fmt = 'file:///%s' | |
|
12 | else: | |
|
13 | fmt = 'file://%s' | |
|
14 | print(fmt % pycompat.sysstr(enc)) | |
|
15 | ||
|
16 | if __name__ == '__main__': | |
|
17 | main(sys.argv) |
@@ -11,11 +11,7 b'' | |||
|
11 | 11 | > EOF |
|
12 | 12 | |
|
13 | 13 | $ SVNREPOPATH=`pwd`/svn-repo |
|
14 | #if windows | |
|
15 | $ SVNREPOURL=file:///`"$PYTHON" -c "import urllib, sys; sys.stdout.write(urllib.quote(sys.argv[1]))" "$SVNREPOPATH"` | |
|
16 | #else | |
|
17 | $ SVNREPOURL=file://`"$PYTHON" -c "import urllib, sys; sys.stdout.write(urllib.quote(sys.argv[1]))" "$SVNREPOPATH"` | |
|
18 | #endif | |
|
14 | $ SVNREPOURL="`$PYTHON $TESTDIR/svnurlof.py \"$SVNREPOPATH\"`" | |
|
19 | 15 |
|
|
20 | 16 | $ svnadmin create "$SVNREPOPATH" |
|
21 | 17 | $ cat > "$SVNREPOPATH"/hooks/pre-revprop-change <<EOF |
@@ -8,11 +8,7 b'' | |||
|
8 | 8 | $ svnadmin create svn-repo |
|
9 | 9 | $ svnadmin load -q svn-repo < "$TESTDIR/svn/move.svndump" |
|
10 | 10 | $ SVNREPOPATH=`pwd`/svn-repo |
|
11 | #if windows | |
|
12 | $ SVNREPOURL=file:///`"$PYTHON" -c "import urllib, sys; sys.stdout.write(urllib.quote(sys.argv[1]))" "$SVNREPOPATH"` | |
|
13 | #else | |
|
14 | $ SVNREPOURL=file://`"$PYTHON" -c "import urllib, sys; sys.stdout.write(urllib.quote(sys.argv[1]))" "$SVNREPOPATH"` | |
|
15 | #endif | |
|
11 | $ SVNREPOURL="`$PYTHON $TESTDIR/svnurlof.py \"$SVNREPOPATH\"`" | |
|
16 | 12 |
|
|
17 | 13 | Convert trunk and branches |
|
18 | 14 |
@@ -13,11 +13,7 b'' | |||
|
13 | 13 | |
|
14 | 14 | $ svnadmin create svn-repo |
|
15 | 15 | $ SVNREPOPATH=`pwd`/svn-repo |
|
16 | #if windows | |
|
17 | $ SVNREPOURL=file:///`"$PYTHON" -c "import urllib, sys; sys.stdout.write(urllib.quote(sys.argv[1]))" "$SVNREPOPATH"` | |
|
18 | #else | |
|
19 | $ SVNREPOURL=file://`"$PYTHON" -c "import urllib, sys; sys.stdout.write(urllib.quote(sys.argv[1]))" "$SVNREPOPATH"` | |
|
20 | #endif | |
|
16 | $ SVNREPOURL="`$PYTHON $TESTDIR/svnurlof.py \"$SVNREPOPATH\"`" | |
|
21 | 17 |
$ |
|
22 | 18 | $ VALIDREVISIONID=svn:a2147622-4a9f-4db4-a8d3-13562ff547b2/proj%20B/mytrunk/mytrunk@1 |
|
23 | 19 |
@@ -23,18 +23,7 b' handle svn subrepos safely' | |||
|
23 | 23 | $ svnadmin create svn-repo-2499 |
|
24 | 24 | |
|
25 | 25 | $ SVNREPOPATH=`pwd`/svn-repo-2499/project |
|
26 | ||
|
27 | #if py3 | |
|
28 | $ pathquoted=`"$PYTHON" -c "import sys, urllib.parse; sys.stdout.write(urllib.parse.quote(sys.argv[1]))" "$SVNREPOPATH"` | |
|
29 | #else | |
|
30 | $ pathquoted=`"$PYTHON" -c "import sys, urllib; sys.stdout.write(urllib.quote(sys.argv[1]))" "$SVNREPOPATH"` | |
|
31 | #endif | |
|
32 | ||
|
33 | #if windows | |
|
34 | $ SVNREPOURL=file:///$pathquoted | |
|
35 | #else | |
|
36 | $ SVNREPOURL=file://$pathquoted | |
|
37 | #endif | |
|
26 | $ SVNREPOURL="`$PYTHON $TESTDIR/svnurlof.py \"$SVNREPOPATH\"`" | |
|
38 | 27 |
|
|
39 | 28 |
$ |
|
40 | 29 | $ svn import -qm 'init project' svn-project-2499 "$SVNREPOURL" |
@@ -1,11 +1,7 b'' | |||
|
1 | 1 | #require svn15 |
|
2 | 2 | |
|
3 | 3 | $ SVNREPOPATH=`pwd`/svn-repo |
|
4 | #if windows | |
|
5 | $ SVNREPOURL=file:///`"$PYTHON" -c "import urllib, sys; sys.stdout.write(urllib.quote(sys.argv[1]))" "$SVNREPOPATH"` | |
|
6 | #else | |
|
7 | $ SVNREPOURL=file://`"$PYTHON" -c "import urllib, sys; sys.stdout.write(urllib.quote(sys.argv[1]))" "$SVNREPOPATH"` | |
|
8 | #endif | |
|
4 | $ SVNREPOURL="`$PYTHON $TESTDIR/svnurlof.py \"$SVNREPOPATH\"`" | |
|
9 | 5 |
|
|
10 | 6 | $ filter_svn_output () { |
|
11 | 7 | > egrep -v 'Committing|Transmitting|Updating|(^$)' || true |
General Comments 0
You need to be logged in to leave comments.
Login now