##// END OF EJS Templates
tests: unify test-convert-datesort
Matt Mackall -
r12528:f6b20641 default
parent child Browse files
Show More
@@ -1,45 +1,117 b''
1 #!/bin/sh
2 1
3 cat >> $HGRCPATH <<EOF
4 [extensions]
5 convert=
6 graphlog=
7 EOF
2 $ cat >> $HGRCPATH <<EOF
3 > [extensions]
4 > convert=
5 > graphlog=
6 > EOF
7 $ hg init t
8 $ cd t
9 $ echo a >> a
10 $ hg ci -Am a0 -d '1 0'
11 adding a
12 $ hg branch brancha
13 marked working directory as branch brancha
14 $ echo a >> a
15 $ hg ci -m a1 -d '2 0'
16 $ echo a >> a
17 $ hg ci -m a2 -d '3 0'
18 $ echo a >> a
19 $ hg ci -m a3 -d '4 0'
20 $ hg up -C 0
21 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
22 $ hg branch branchb
23 marked working directory as branch branchb
24 $ echo b >> b
25 $ hg ci -Am b0 -d '6 0'
26 adding b
27 $ hg up -C brancha
28 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
29 $ echo a >> a
30 $ hg ci -m a4 -d '5 0'
31 $ echo a >> a
32 $ hg ci -m a5 -d '7 0'
33 $ echo a >> a
34 $ hg ci -m a6 -d '8 0'
35 $ hg up -C branchb
36 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
37 $ echo b >> b
38 $ hg ci -m b1 -d '9 0'
39 $ cd ..
40
41 convert with datesort
42
43 $ hg convert --datesort t t-datesort
44 initializing destination t-datesort repository
45 scanning source...
46 sorting...
47 converting...
48 8 a0
49 7 a1
50 6 a2
51 5 a3
52 4 a4
53 3 b0
54 2 a5
55 1 a6
56 0 b1
57
58 graph converted repo
8 59
9 hg init t
10 cd t
11 echo a >> a
12 hg ci -Am a0 -d '1 0'
13 hg branch brancha
14 echo a >> a
15 hg ci -m a1 -d '2 0'
16 echo a >> a
17 hg ci -m a2 -d '3 0'
18 echo a >> a
19 hg ci -m a3 -d '4 0'
20 hg up -C 0
21 hg branch branchb
22 echo b >> b
23 hg ci -Am b0 -d '6 0'
24 hg up -C brancha
25 echo a >> a
26 hg ci -m a4 -d '5 0'
27 echo a >> a
28 hg ci -m a5 -d '7 0'
29 echo a >> a
30 hg ci -m a6 -d '8 0'
31 hg up -C branchb
32 echo b >> b
33 hg ci -m b1 -d '9 0'
34 cd ..
60 $ hg -R t-datesort glog --template '{rev} "{desc}"\n'
61 o 8 "b1"
62 |
63 | o 7 "a6"
64 | |
65 | o 6 "a5"
66 | |
67 o | 5 "b0"
68 | |
69 | o 4 "a4"
70 | |
71 | o 3 "a3"
72 | |
73 | o 2 "a2"
74 | |
75 | o 1 "a1"
76 |/
77 o 0 "a0"
78
79
80 convert with datesort (default mode)
35 81
36 echo % convert with datesort
37 hg convert --datesort t t-datesort
38 echo % graph converted repo
39 hg -R t-datesort glog --template '{rev} "{desc}"\n'
82 $ hg convert t t-sourcesort
83 initializing destination t-sourcesort repository
84 scanning source...
85 sorting...
86 converting...
87 8 a0
88 7 a1
89 6 a2
90 5 a3
91 4 b0
92 3 a4
93 2 a5
94 1 a6
95 0 b1
96
97 graph converted repo
40 98
41 echo '% convert with datesort (default mode)'
42 hg convert t t-sourcesort
43 echo % graph converted repo
44 hg -R t-sourcesort glog --template '{rev} "{desc}"\n'
45
99 $ hg -R t-sourcesort glog --template '{rev} "{desc}"\n'
100 o 8 "b1"
101 |
102 | o 7 "a6"
103 | |
104 | o 6 "a5"
105 | |
106 | o 5 "a4"
107 | |
108 o | 4 "b0"
109 | |
110 | o 3 "a3"
111 | |
112 | o 2 "a2"
113 | |
114 | o 1 "a1"
115 |/
116 o 0 "a0"
117
1 NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now