Mercurial > hg
comparison tests/test-convert-baz @ 6078:ebc23d34102f
convert: added gnu arch (baz) tests
author | Aleix Conchillo Flaque <aleix@member.fsf.org> |
---|---|
date | Tue, 12 Feb 2008 10:38:34 +0100 |
parents | |
children | a672df805855 |
comparison
equal
deleted
inserted
replaced
6073:89c70d496175 | 6078:ebc23d34102f |
---|---|
1 #!/bin/sh | |
2 | |
3 "$TESTDIR/hghave" baz || exit 80 | |
4 | |
5 echo "[extensions]" >> $HGRCPATH | |
6 echo "convert=" >> $HGRCPATH | |
7 echo 'hgext.graphlog =' >> $HGRCPATH | |
8 | |
9 echo % create baz archive | |
10 baz make-archive baz@mercurial--convert hg-test-convert-baz | |
11 | |
12 echo % initialize baz repo | |
13 mkdir baz-repo | |
14 cd baz-repo/ | |
15 baz init-tree baz@mercurial--convert/baz--test--0 | |
16 baz import | |
17 | |
18 echo % create initial files | |
19 echo 'this is a file' > a | |
20 baz add a | |
21 mkdir src | |
22 baz add src | |
23 cd src | |
24 dd count=1 if=/dev/zero of=b > /dev/null 2> /dev/null | |
25 baz add b | |
26 baz commit -s "added a file, src and src/b (binary)" | |
27 | |
28 echo % create link file and modify a | |
29 ln -s ../a a-link | |
30 baz add a-link | |
31 echo 'this a modification to a' >> ../a | |
32 baz commit -s "added link to a and modify a" | |
33 | |
34 echo % create second link and modify b | |
35 ln -s ../a a-link-2 | |
36 baz add a-link-2 | |
37 dd count=1 seek=1 if=/dev/zero of=b > /dev/null 2> /dev/null | |
38 baz commit -s "added second link and modify b" | |
39 | |
40 echo % b file to link and a-link-2 to regular file | |
41 rm -f a-link-2 | |
42 echo 'this is now a regular file' > a-link-2 | |
43 ln -sf ../a b | |
44 baz commit -s "file to link and link to file test" | |
45 | |
46 echo % move a-link-2 file and src directory | |
47 cd .. | |
48 baz mv src/a-link-2 c | |
49 baz mv src test | |
50 baz commit -s "move and rename a-link-2 file and src directory" | |
51 | |
52 cd .. | |
53 | |
54 echo % converting baz repo to Mercurial | |
55 hg convert baz-repo baz-repo-hg | |
56 | |
57 baz register-archive -d baz@mercurial--convert | |
58 | |
59 glog() | |
60 { | |
61 hg glog --template '#rev# "#desc|firstline#" files: #files#\n' "$@" | |
62 } | |
63 | |
64 echo % show graph log | |
65 glog -R baz-repo-hg | |
66 hg -R baz-repo-hg manifest --debug |