equal
deleted
inserted
replaced
2 |
2 |
3 mkdir test |
3 mkdir test |
4 cd test |
4 cd test |
5 hg init |
5 hg init |
6 echo foo>foo |
6 echo foo>foo |
7 hg addremove |
7 hg commit -Am 1 -d '1 0' |
8 hg commit -m 1 |
|
9 echo bar>bar |
8 echo bar>bar |
10 hg addremove |
9 hg commit -Am 2 -d '2 0' |
11 hg commit -m 2 |
|
12 mkdir baz |
10 mkdir baz |
13 echo bletch>baz/bletch |
11 echo bletch>baz/bletch |
14 hg addremove |
12 hg commit -Am 3 -d '1000000000 0' |
15 hg commit -m 3 |
|
16 echo "[web]" >> .hg/hgrc |
13 echo "[web]" >> .hg/hgrc |
17 echo "name = test-archive" >> .hg/hgrc |
14 echo "name = test-archive" >> .hg/hgrc |
18 echo "allow_archive = gz bz2, zip" >> .hg/hgrc |
15 echo "allow_archive = gz bz2, zip" >> .hg/hgrc |
19 hg serve -p 20059 -d --pid-file=hg.pid |
16 hg serve -p 20059 -d --pid-file=hg.pid |
20 cat hg.pid >> $DAEMON_PIDS |
17 cat hg.pid >> $DAEMON_PIDS |
40 bunzip2 -dc test.tar.bz2 | tar tf - |
37 bunzip2 -dc test.tar.bz2 | tar tf - |
41 |
38 |
42 hg archive -t tgz -p %b-%h test-%h.tar.gz |
39 hg archive -t tgz -p %b-%h test-%h.tar.gz |
43 gzip -dc test-$QTIP.tar.gz | tar tf - | sed "s/$QTIP/TIP/" |
40 gzip -dc test-$QTIP.tar.gz | tar tf - | sed "s/$QTIP/TIP/" |
44 |
41 |
|
42 cat > md5check.py <<EOF |
|
43 import md5, sys |
|
44 print md5.md5(file(sys.argv[1], 'rb').read()).hexdigest() |
|
45 EOF |
|
46 |
|
47 hg archive -t tgz tip.tar.gz |
|
48 python md5check.py tip.tar.gz |
|
49 sleep 1 |
|
50 hg archive -t tgz tip.tar.gz |
|
51 python md5check.py tip.tar.gz |
|
52 |
45 hg archive -t zip -p /illegal test.zip |
53 hg archive -t zip -p /illegal test.zip |
46 hg archive -t zip -p very/../bad test.zip |
54 hg archive -t zip -p very/../bad test.zip |
47 |
55 |
48 hg archive -t zip -r 2 test.zip |
56 hg archive -t zip -r 2 test.zip |
49 unzip -t test.zip |
57 unzip -t test.zip |