56 node, archive = sys.argv[1:] |
56 node, archive = sys.argv[1:] |
57 f = urllib2.urlopen('http://127.0.0.1:%s/?cmd=archive;node=%s;type=%s' |
57 f = urllib2.urlopen('http://127.0.0.1:%s/?cmd=archive;node=%s;type=%s' |
58 % (os.environ['HGPORT'], node, archive)) |
58 % (os.environ['HGPORT'], node, archive)) |
59 sys.stdout.write(f.read()) |
59 sys.stdout.write(f.read()) |
60 EOF |
60 EOF |
61 http_proxy= python getarchive.py "$TIP" gz | gunzip | tar tf - | sed "s/$QTIP/TIP/" |
61 http_proxy= python getarchive.py "$TIP" gz | gunzip | tar tf - 2>/dev/null | sed "s/$QTIP/TIP/" |
62 http_proxy= python getarchive.py "$TIP" bz2 | bunzip2 | tar tf - | sed "s/$QTIP/TIP/" |
62 http_proxy= python getarchive.py "$TIP" bz2 | bunzip2 | tar tf - 2>/dev/null | sed "s/$QTIP/TIP/" |
63 http_proxy= python getarchive.py "$TIP" zip > archive.zip |
63 http_proxy= python getarchive.py "$TIP" zip > archive.zip |
64 unzip -t archive.zip | sed "s/$QTIP/TIP/" |
64 unzip -t archive.zip | sed "s/$QTIP/TIP/" |
65 |
65 |
66 "$TESTDIR/killdaemons.py" |
66 "$TESTDIR/killdaemons.py" |
67 |
67 |
68 hg archive -t tar test.tar |
68 hg archive -t tar test.tar |
69 tar tf test.tar |
69 tar tf test.tar |
70 |
70 |
71 hg archive -t tbz2 -X baz test.tar.bz2 |
71 hg archive -t tbz2 -X baz test.tar.bz2 |
72 bunzip2 -dc test.tar.bz2 | tar tf - |
72 bunzip2 -dc test.tar.bz2 | tar tf - 2>/dev/null |
73 |
73 |
74 hg archive -t tgz -p %b-%h test-%h.tar.gz |
74 hg archive -t tgz -p %b-%h test-%h.tar.gz |
75 gzip -dc test-$QTIP.tar.gz | tar tf - | sed "s/$QTIP/TIP/" |
75 gzip -dc test-$QTIP.tar.gz | tar tf - 2>/dev/null | sed "s/$QTIP/TIP/" |
76 |
76 |
77 cat > md5comp.py <<EOF |
77 cat > md5comp.py <<EOF |
78 from mercurial.util import md5 |
78 from mercurial.util import md5 |
79 import sys |
79 import sys |
80 f1, f2 = sys.argv[1:3] |
80 f1, f2 = sys.argv[1:3] |
96 hg archive -t zip -p very/../bad test.zip |
96 hg archive -t zip -p very/../bad test.zip |
97 |
97 |
98 hg archive --config ui.archivemeta=false -t zip -r 2 test.zip |
98 hg archive --config ui.archivemeta=false -t zip -r 2 test.zip |
99 unzip -t test.zip |
99 unzip -t test.zip |
100 |
100 |
101 hg archive -t tar - | tar tf - | sed "s/$QTIP/TIP/" |
101 hg archive -t tar - | tar tf - 2>/dev/null | sed "s/$QTIP/TIP/" |
102 |
102 |
103 hg archive -r 0 -t tar rev-%r.tar |
103 hg archive -r 0 -t tar rev-%r.tar |
104 if [ -f rev-0.tar ]; then |
104 if [ -f rev-0.tar ]; then |
105 echo 'rev-0.tar created' |
105 echo 'rev-0.tar created' |
106 fi |
106 fi |