Mercurial > hg
annotate tests/test-convert-hg-startrev.t @ 12740:b86c6954ec4c
serve: fix https mode and add test
The https mode failed in super because BaseRequestHandler is an old-style
class.
This introduces the first test of https client/server functionality - and
"hghave ssl". The test is currently only run on Python 2.6.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Sun, 17 Oct 2010 04:13:35 +0200 |
parents | e7e3b0618d8d |
children | 2405b4a5964a |
rev | line source |
---|---|
12148
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
1 |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
2 $ cat > $HGRCPATH <<EOF |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
3 > [extensions] |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
4 > graphlog = |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
5 > convert = |
12350
e7e3b0618d8d
test-convert-hg-startrev: enable convert.hg.saverev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
12148
diff
changeset
|
6 > [convert] |
e7e3b0618d8d
test-convert-hg-startrev: enable convert.hg.saverev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
12148
diff
changeset
|
7 > hg.saverev = yes |
12148
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
8 > EOF |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
9 |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
10 $ glog() |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
11 > { |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
12 > hg -R "$1" glog --template '{rev} "{desc}" files: {files}\n' |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
13 > } |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
14 |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
15 $ hg init source |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
16 $ cd source |
6885
6e253aa04ff7
convert: implement startrev for hg source
Patrick Mezard <pmezard@gmail.com>
parents:
diff
changeset
|
17 |
12148
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
18 $ echo a > a |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
19 $ echo b > b |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
20 $ hg ci -d '0 0' -qAm '0: add a b' |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
21 $ echo c > c |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
22 $ hg ci -d '1 0' -qAm '1: add c' |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
23 $ hg copy a e |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
24 $ echo b >> b |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
25 $ hg ci -d '2 0' -qAm '2: copy e from a, change b' |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
26 $ hg up -C 0 |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
27 1 files updated, 0 files merged, 2 files removed, 0 files unresolved |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
28 $ echo a >> a |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
29 $ hg ci -d '3 0' -qAm '3: change a' |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
30 $ hg merge |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
31 merging a and e to e |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
32 2 files updated, 1 files merged, 0 files removed, 0 files unresolved |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
33 (branch merge, don't forget to commit) |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
34 $ hg copy b d |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
35 $ hg ci -d '4 0' -qAm '4: merge 2 and 3, copy d from b' |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
36 $ echo a >> a |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
37 $ hg ci -d '5 0' -qAm '5: change a' |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
38 $ cd .. |
6885
6e253aa04ff7
convert: implement startrev for hg source
Patrick Mezard <pmezard@gmail.com>
parents:
diff
changeset
|
39 |
12148
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
40 Convert from null revision |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
41 |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
42 $ hg convert --config convert.hg.startrev=null source empty |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
43 initializing destination empty repository |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
44 scanning source... |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
45 sorting... |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
46 converting... |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
47 |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
48 $ glog empty |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
49 |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
50 Convert from zero revision |
6885
6e253aa04ff7
convert: implement startrev for hg source
Patrick Mezard <pmezard@gmail.com>
parents:
diff
changeset
|
51 |
12148
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
52 $ hg convert --config convert.hg.startrev=0 source full |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
53 initializing destination full repository |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
54 scanning source... |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
55 sorting... |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
56 converting... |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
57 5 0: add a b |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
58 4 1: add c |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
59 3 2: copy e from a, change b |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
60 2 3: change a |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
61 1 4: merge 2 and 3, copy d from b |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
62 0 5: change a |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
63 |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
64 $ glog full |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
65 o 5 "5: change a" files: a |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
66 | |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
67 o 4 "4: merge 2 and 3, copy d from b" files: d e |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
68 |\ |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
69 | o 3 "3: change a" files: a |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
70 | | |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
71 o | 2 "2: copy e from a, change b" files: b e |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
72 | | |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
73 o | 1 "1: add c" files: c |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
74 |/ |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
75 o 0 "0: add a b" files: a b |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
76 |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
77 Convert from merge parent |
6885
6e253aa04ff7
convert: implement startrev for hg source
Patrick Mezard <pmezard@gmail.com>
parents:
diff
changeset
|
78 |
12148
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
79 $ hg convert --config convert.hg.startrev=1 source conv1 |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
80 initializing destination conv1 repository |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
81 scanning source... |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
82 sorting... |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
83 converting... |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
84 3 1: add c |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
85 2 2: copy e from a, change b |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
86 1 4: merge 2 and 3, copy d from b |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
87 0 5: change a |
6885
6e253aa04ff7
convert: implement startrev for hg source
Patrick Mezard <pmezard@gmail.com>
parents:
diff
changeset
|
88 |
12148
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
89 $ glog conv1 |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
90 o 3 "5: change a" files: a |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
91 | |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
92 o 2 "4: merge 2 and 3, copy d from b" files: a d e |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
93 | |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
94 o 1 "2: copy e from a, change b" files: b e |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
95 | |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
96 o 0 "1: add c" files: a b c |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
97 |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
98 $ cd conv1 |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
99 |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
100 Check copy preservation |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
101 |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
102 $ hg log --follow --copies e |
12350
e7e3b0618d8d
test-convert-hg-startrev: enable convert.hg.saverev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
12148
diff
changeset
|
103 changeset: 2:79818a521a40 |
12148
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
104 user: test |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
105 date: Thu Jan 01 00:00:04 1970 +0000 |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
106 summary: 4: merge 2 and 3, copy d from b |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
107 |
12350
e7e3b0618d8d
test-convert-hg-startrev: enable convert.hg.saverev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
12148
diff
changeset
|
108 changeset: 1:3e6201832cce |
12148
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
109 user: test |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
110 date: Thu Jan 01 00:00:02 1970 +0000 |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
111 summary: 2: copy e from a, change b |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
112 |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
113 Check copy removal on missing parent |
6885
6e253aa04ff7
convert: implement startrev for hg source
Patrick Mezard <pmezard@gmail.com>
parents:
diff
changeset
|
114 |
12148
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
115 $ hg log --follow --copies d |
12350
e7e3b0618d8d
test-convert-hg-startrev: enable convert.hg.saverev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
12148
diff
changeset
|
116 changeset: 2:79818a521a40 |
12148
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
117 user: test |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
118 date: Thu Jan 01 00:00:04 1970 +0000 |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
119 summary: 4: merge 2 and 3, copy d from b |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
120 |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
121 $ hg cat -r tip a b |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
122 a |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
123 a |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
124 a |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
125 b |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
126 b |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
127 $ hg -q verify |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
128 $ cd .. |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
129 |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
130 Convert from merge |
6885
6e253aa04ff7
convert: implement startrev for hg source
Patrick Mezard <pmezard@gmail.com>
parents:
diff
changeset
|
131 |
12148
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
132 $ hg convert --config convert.hg.startrev=4 source conv4 |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
133 initializing destination conv4 repository |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
134 scanning source... |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
135 sorting... |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
136 converting... |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
137 1 4: merge 2 and 3, copy d from b |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
138 0 5: change a |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
139 $ glog conv4 |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
140 o 1 "5: change a" files: a |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
141 | |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
142 o 0 "4: merge 2 and 3, copy d from b" files: a b c d e |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
143 |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
144 $ cd conv4 |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
145 $ hg up -C |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
146 5 files updated, 0 files merged, 0 files removed, 0 files unresolved |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
147 $ hg cat -r tip a b |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
148 a |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
149 a |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
150 a |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
151 b |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
152 b |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
153 $ hg -q verify |
0a0592f8e11a
tests: unify test-convert-hg-startrev.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
10119
diff
changeset
|
154 $ cd .. |