Mercurial > hg
comparison tests/test-convert-tla @ 6079:ea34059b89de
convert: added GNU Arch (tla) tests and related fixes
author | Aleix Conchillo Flaque <aleix@member.fsf.org> |
---|---|
date | Tue, 12 Feb 2008 11:35:06 +0100 |
parents | |
children | a672df805855 |
comparison
equal
deleted
inserted
replaced
6078:ebc23d34102f | 6079:ea34059b89de |
---|---|
1 #!/bin/sh | |
2 | |
3 "$TESTDIR/hghave" tla || exit 80 | |
4 | |
5 echo "[extensions]" >> $HGRCPATH | |
6 echo "convert=" >> $HGRCPATH | |
7 echo 'hgext.graphlog =' >> $HGRCPATH | |
8 | |
9 echo % create tla archive | |
10 tla make-archive tla@mercurial--convert `pwd`/hg-test-convert-tla | |
11 | |
12 echo % initialize tla repo | |
13 mkdir tla-repo | |
14 cd tla-repo/ | |
15 tla init-tree tla@mercurial--convert/tla--test--0 | |
16 tla import | |
17 | |
18 echo % create initial files | |
19 echo 'this is a file' > a | |
20 tla add a | |
21 mkdir src | |
22 tla add src | |
23 cd src | |
24 dd count=1 if=/dev/zero of=b > /dev/null 2> /dev/null | |
25 tla add b | |
26 tla 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 tla add a-link | |
31 echo 'this a modification to a' >> ../a | |
32 tla 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 tla add a-link-2 | |
37 dd count=1 seek=1 if=/dev/zero of=b > /dev/null 2> /dev/null | |
38 tla 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 tla commit -s "file to link and link to file test" | |
45 | |
46 echo % move a-link-2 file and src directory | |
47 cd .. | |
48 tla mv src/a-link-2 c | |
49 tla mv src test | |
50 tla commit -s "move and rename a-link-2 file and src directory" | |
51 | |
52 cd .. | |
53 | |
54 echo % converting tla repo to Mercurial | |
55 hg convert tla-repo tla-repo-hg | |
56 | |
57 tla register-archive -d tla@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 tla-repo-hg | |
66 hg -R tla-repo-hg manifest --debug |