Mercurial > hg-stable
annotate tests/test-encode @ 6789:c1c202e2d45d
Force email package to be loaded in py2exe
With Python 2.5, the email package is not fully loaded by py2exe, due to
dynamic imports which are not found by modulefinder. This breaks the patchbomb
extension. This patch forces the whole email package to be included so that
the dynamic imports work as expected.
author | Paul Moore <p.f.moore@gmail.com> |
---|---|
date | Tue, 01 Jul 2008 20:17:11 +0100 |
parents | 3998c1b0828f |
children | a6477aa893b8 |
rev | line source |
---|---|
1258 | 1 #!/bin/sh |
2 | |
3 hg init | |
4 | |
5 cat > .hg/hgrc <<EOF | |
6 [encode] | |
7 *.gz = gunzip | |
8 | |
9 [decode] | |
10 *.gz = gzip | |
11 | |
12 EOF | |
13 | |
14 echo "this is a test" | gzip > a.gz | |
15 hg add a.gz | |
1933
7544700fd931
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1258
diff
changeset
|
16 hg ci -m "test" -d "1000000 0" |
1258 | 17 echo %% no changes |
18 hg status | |
19 touch a.gz | |
20 | |
21 echo %% no changes | |
22 hg status | |
23 | |
24 echo %% uncompressed contents in repo | |
3853
c0b449154a90
switch to the .hg/store layout, fix the tests
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
1933
diff
changeset
|
25 hg debugdata .hg/store/data/a.gz.d 0 |
1258 | 26 |
27 echo %% uncompress our working dir copy | |
28 gunzip < a.gz | |
29 | |
30 rm a.gz | |
31 hg co | |
32 | |
33 echo %% uncompress our new working dir copy | |
34 gunzip < a.gz | |
6093
f5b00b6e426a
Option --decode for hg cat to apply decode filters.
Jesse Glick <jesse.glick@sun.com>
parents:
3853
diff
changeset
|
35 |
f5b00b6e426a
Option --decode for hg cat to apply decode filters.
Jesse Glick <jesse.glick@sun.com>
parents:
3853
diff
changeset
|
36 echo %% check hg cat operation |
f5b00b6e426a
Option --decode for hg cat to apply decode filters.
Jesse Glick <jesse.glick@sun.com>
parents:
3853
diff
changeset
|
37 hg cat a.gz |
6094
3998c1b0828f
cat --decode: Drop short option, use opts.get() instead of opts[]
Thomas Arendsen Hein <thomas@intevation.de>
parents:
6093
diff
changeset
|
38 hg cat --decode a.gz | gunzip |
6093
f5b00b6e426a
Option --decode for hg cat to apply decode filters.
Jesse Glick <jesse.glick@sun.com>
parents:
3853
diff
changeset
|
39 mkdir subdir |
f5b00b6e426a
Option --decode for hg cat to apply decode filters.
Jesse Glick <jesse.glick@sun.com>
parents:
3853
diff
changeset
|
40 cd subdir |
f5b00b6e426a
Option --decode for hg cat to apply decode filters.
Jesse Glick <jesse.glick@sun.com>
parents:
3853
diff
changeset
|
41 hg -R .. cat ../a.gz |
6094
3998c1b0828f
cat --decode: Drop short option, use opts.get() instead of opts[]
Thomas Arendsen Hein <thomas@intevation.de>
parents:
6093
diff
changeset
|
42 hg -R .. cat --decode ../a.gz | gunzip |