Mercurial > hg
annotate tests/test-convert-baz.t @ 18944:a9c443b3b240
unionrepo: read-only operations on a union of two localrepos
unionrepo is just like bundlerepo without bundles.
The implementation is very similar to bundlerepo, but I don't see any obvious
way to generalize it.
Some most obvious use cases for this would be log and diff across local repos,
as a kind of preview of pulls, for instance:
$ hg -R union:repo1+repo2 heads
$ hg -R union:repo1+repo2 log -r REPO1REV -r REPO2REV
$ hg -R union:repo1+repo2 log -r '::REPO1REV-::REPO2REV'
$ hg -R union:repo1+repo2 log -r 'ancestor(REPO1REV,REPO2REV)'
$ hg -R union:repo1+repo2 diff -r REPO1REV -r REPO2REV
This is going to be used in RhodeCode, and Bitbucket already uses something
similar. Having a core implementation would be beneficial.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Fri, 18 Jan 2013 15:54:09 +0100 |
parents | 5efe9c6a34fe |
children | aa9385f983fa |
rev | line source |
---|---|
16972
5efe9c6a34fe
tests: add some missing #if's / hghave requirements
Mads Kiilerich <mads@kiilerich.com>
parents:
16673
diff
changeset
|
1 $ "$TESTDIR/hghave" baz symlink || exit 80 |
16673
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
2 |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
3 $ baz my-id "mercurial <mercurial@selenic.com>" |
6078
ebc23d34102f
convert: added gnu arch (baz) tests
Aleix Conchillo Flaque <aleix@member.fsf.org>
parents:
diff
changeset
|
4 |
16673
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
5 $ echo "[extensions]" >> $HGRCPATH |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
6 $ echo "convert=" >> $HGRCPATH |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
7 $ echo 'graphlog =' >> $HGRCPATH |
6084
a672df805855
Document and fix tla/baz conversion tests
Patrick Mezard <pmezard@gmail.com>
parents:
6078
diff
changeset
|
8 |
16673
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
9 create baz archive |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
10 $ baz make-archive baz@mercurial--convert hg-test-convert-baz |
6078
ebc23d34102f
convert: added gnu arch (baz) tests
Aleix Conchillo Flaque <aleix@member.fsf.org>
parents:
diff
changeset
|
11 |
16673
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
12 initialize baz repo |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
13 $ mkdir baz-repo |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
14 $ cd baz-repo/ |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
15 $ baz init-tree baz@mercurial--convert/baz--test--0 |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
16 $ baz import |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
17 * creating version baz@mercurial--convert/baz--test--0 |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
18 * imported baz@mercurial--convert/baz--test--0 |
6078
ebc23d34102f
convert: added gnu arch (baz) tests
Aleix Conchillo Flaque <aleix@member.fsf.org>
parents:
diff
changeset
|
19 |
16673
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
20 create initial files |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
21 $ echo 'this is a file' > a |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
22 $ baz add a |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
23 $ mkdir src |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
24 $ baz add src |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
25 $ cd src |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
26 $ dd count=1 if=/dev/zero of=b > /dev/null 2> /dev/null |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
27 $ baz add b |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
28 HACK: hide GNU tar-1.22 "tar: The --preserve option is deprecated, use --preserve-permissions --preserve-order instead" |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
29 $ baz commit -s "added a file, src and src/b (binary)" 2>&1 | grep -v '^tar' |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
30 * build pristine tree for baz@mercurial--convert/baz--test--0--base-0 |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
31 * Scanning for full-tree revision: . |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
32 * from import revision: baz@mercurial--convert/baz--test--0--base-0 |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
33 A/ .arch-ids |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
34 A/ src |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
35 A/ src/.arch-ids |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
36 A .arch-ids/a.id |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
37 A a |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
38 A src/.arch-ids/=id |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
39 A src/.arch-ids/b.id |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
40 A src/b |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
41 * update pristine tree (baz@mercurial--convert/baz--test--0--base-0 => baz--test--0--patch-1) |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
42 * committed baz@mercurial--convert/baz--test--0--patch-1 |
6078
ebc23d34102f
convert: added gnu arch (baz) tests
Aleix Conchillo Flaque <aleix@member.fsf.org>
parents:
diff
changeset
|
43 |
16673
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
44 create link file and modify a |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
45 $ ln -s ../a a-link |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
46 $ baz add a-link |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
47 $ echo 'this a modification to a' >> ../a |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
48 $ baz commit -s "added link to a and modify a" |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
49 A src/.arch-ids/a-link.id |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
50 A src/a-link |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
51 M a |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
52 * update pristine tree (baz@mercurial--convert/baz--test--0--patch-1 => baz--test--0--patch-2) |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
53 * committed baz@mercurial--convert/baz--test--0--patch-2 |
6078
ebc23d34102f
convert: added gnu arch (baz) tests
Aleix Conchillo Flaque <aleix@member.fsf.org>
parents:
diff
changeset
|
54 |
16673
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
55 create second link and modify b |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
56 $ ln -s ../a a-link-2 |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
57 $ baz add a-link-2 |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
58 $ dd count=1 seek=1 if=/dev/zero of=b > /dev/null 2> /dev/null |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
59 $ baz commit -s "added second link and modify b" |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
60 A src/.arch-ids/a-link-2.id |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
61 A src/a-link-2 |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
62 Mb src/b |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
63 * update pristine tree (baz@mercurial--convert/baz--test--0--patch-2 => baz--test--0--patch-3) |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
64 * committed baz@mercurial--convert/baz--test--0--patch-3 |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
65 |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
66 b file to link and a-link-2 to regular file |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
67 $ rm -f a-link-2 |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
68 $ echo 'this is now a regular file' > a-link-2 |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
69 $ ln -sf ../a b |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
70 $ baz commit -s "file to link and link to file test" |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
71 fl src/b |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
72 lf src/a-link-2 |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
73 * update pristine tree (baz@mercurial--convert/baz--test--0--patch-3 => baz--test--0--patch-4) |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
74 * committed baz@mercurial--convert/baz--test--0--patch-4 |
6078
ebc23d34102f
convert: added gnu arch (baz) tests
Aleix Conchillo Flaque <aleix@member.fsf.org>
parents:
diff
changeset
|
75 |
16673
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
76 move a-link-2 file and src directory |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
77 $ cd .. |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
78 $ baz mv src/a-link-2 c |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
79 $ baz mv src test |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
80 $ baz commit -s "move and rename a-link-2 file and src directory" |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
81 D/ src/.arch-ids |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
82 A/ test/.arch-ids |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
83 /> src test |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
84 => src/.arch-ids/a-link-2.id .arch-ids/c.id |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
85 => src/a-link-2 c |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
86 => src/.arch-ids/=id test/.arch-ids/=id |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
87 => src/.arch-ids/a-link.id test/.arch-ids/a-link.id |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
88 => src/.arch-ids/b.id test/.arch-ids/b.id |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
89 * update pristine tree (baz@mercurial--convert/baz--test--0--patch-4 => baz--test--0--patch-5) |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
90 * committed baz@mercurial--convert/baz--test--0--patch-5 |
6078
ebc23d34102f
convert: added gnu arch (baz) tests
Aleix Conchillo Flaque <aleix@member.fsf.org>
parents:
diff
changeset
|
91 |
16673
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
92 move and add the moved file again |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
93 $ echo e > e |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
94 $ baz add e |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
95 $ baz commit -s "add e" |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
96 A .arch-ids/e.id |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
97 A e |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
98 * update pristine tree (baz@mercurial--convert/baz--test--0--patch-5 => baz--test--0--patch-6) |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
99 * committed baz@mercurial--convert/baz--test--0--patch-6 |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
100 $ baz mv e f |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
101 $ echo ee > e |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
102 $ baz add e |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
103 $ baz commit -s "move e and recreate it again" |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
104 A .arch-ids/e.id |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
105 A e |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
106 => .arch-ids/e.id .arch-ids/f.id |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
107 => e f |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
108 * update pristine tree (baz@mercurial--convert/baz--test--0--patch-6 => baz--test--0--patch-7) |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
109 * committed baz@mercurial--convert/baz--test--0--patch-7 |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
110 $ cd .. |
6078
ebc23d34102f
convert: added gnu arch (baz) tests
Aleix Conchillo Flaque <aleix@member.fsf.org>
parents:
diff
changeset
|
111 |
16673
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
112 converting baz repo to Mercurial |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
113 $ hg convert baz-repo baz-repo-hg |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
114 initializing destination baz-repo-hg repository |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
115 analyzing tree version baz@mercurial--convert/baz--test--0... |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
116 scanning source... |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
117 sorting... |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
118 converting... |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
119 7 initial import |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
120 6 added a file, src and src/b (binary) |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
121 5 added link to a and modify a |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
122 4 added second link and modify b |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
123 3 file to link and link to file test |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
124 2 move and rename a-link-2 file and src directory |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
125 1 add e |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
126 0 move e and recreate it again |
6078
ebc23d34102f
convert: added gnu arch (baz) tests
Aleix Conchillo Flaque <aleix@member.fsf.org>
parents:
diff
changeset
|
127 |
16673
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
128 $ baz register-archive -d baz@mercurial--convert |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
129 |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
130 $ glog() |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
131 > { |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
132 > hg glog --template '{rev} "{desc|firstline}" files: {files}\n' "$@" |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
133 > } |
6078
ebc23d34102f
convert: added gnu arch (baz) tests
Aleix Conchillo Flaque <aleix@member.fsf.org>
parents:
diff
changeset
|
134 |
16673
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
135 show graph log |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
136 $ glog -R baz-repo-hg |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
137 o 7 "move e and recreate it again" files: e f |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
138 | |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
139 o 6 "add e" files: e |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
140 | |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
141 o 5 "move and rename a-link-2 file and src directory" files: c src/a-link src/a-link-2 src/b test/a-link test/b |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
142 | |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
143 o 4 "file to link and link to file test" files: src/a-link-2 src/b |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
144 | |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
145 o 3 "added second link and modify b" files: src/a-link-2 src/b |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
146 | |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
147 o 2 "added link to a and modify a" files: a src/a-link |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
148 | |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
149 o 1 "added a file, src and src/b (binary)" files: a src/b |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
150 | |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
151 o 0 "initial import" files: |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
152 |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
153 $ hg up -q -R baz-repo-hg |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
154 $ hg -R baz-repo-hg manifest --debug |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
155 c4072c4b72e1cabace081888efa148ee80ca3cbb 644 a |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
156 0201ac32a3a8e86e303dff60366382a54b48a72e 644 c |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
157 1a4a864db0073705a11b1439f563bfa4b46d9246 644 e |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
158 09e0222742fc3f75777fa9d68a5d8af7294cb5e7 644 f |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
159 c0067ba5ff0b7c9a3eb17270839d04614c435623 644 @ test/a-link |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
160 375f4263d86feacdea7e3c27100abd1560f2a973 644 @ test/b |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
161 $ hg -R baz-repo-hg log -r 5 -r 7 -C --debug | grep copies |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
162 copies: c (src/a-link-2) test/a-link (src/a-link) test/b (src/b) |
775a8d33e6f0
tests: unify the last sh tests
Mads Kiilerich <mads@kiilerich.com>
parents:
13765
diff
changeset
|
163 copies: f (e) |