Mercurial > hg
comparison tests/test-encode @ 1258:1945754e466b
Add file encoding/decoding support
author | mpm@selenic.com |
---|---|
date | Thu, 15 Sep 2005 02:59:16 -0500 |
parents | |
children | 7544700fd931 |
comparison
equal
deleted
inserted
replaced
1256:8054fdb0b145 | 1258:1945754e466b |
---|---|
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 | |
16 hg ci -m "test" -d "0 0" | |
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 | |
25 hg debugdata .hg/data/a.gz.d 0 | |
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 |