Show More
@@ -1,45 +1,117 b'' | |||||
1 | #!/bin/sh |
|
|||
2 |
|
1 | |||
3 | cat >> $HGRCPATH <<EOF |
|
2 | $ cat >> $HGRCPATH <<EOF | |
4 | [extensions] |
|
3 | > [extensions] | |
5 | convert= |
|
4 | > convert= | |
6 | graphlog= |
|
5 | > graphlog= | |
7 | EOF |
|
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 |
|
60 | $ hg -R t-datesort glog --template '{rev} "{desc}"\n' | |
10 | cd t |
|
61 | o 8 "b1" | |
11 | echo a >> a |
|
62 | | | |
12 | hg ci -Am a0 -d '1 0' |
|
63 | | o 7 "a6" | |
13 | hg branch brancha |
|
64 | | | | |
14 | echo a >> a |
|
65 | | o 6 "a5" | |
15 | hg ci -m a1 -d '2 0' |
|
66 | | | | |
16 | echo a >> a |
|
67 | o | 5 "b0" | |
17 | hg ci -m a2 -d '3 0' |
|
68 | | | | |
18 | echo a >> a |
|
69 | | o 4 "a4" | |
19 | hg ci -m a3 -d '4 0' |
|
70 | | | | |
20 | hg up -C 0 |
|
71 | | o 3 "a3" | |
21 | hg branch branchb |
|
72 | | | | |
22 | echo b >> b |
|
73 | | o 2 "a2" | |
23 | hg ci -Am b0 -d '6 0' |
|
74 | | | | |
24 | hg up -C brancha |
|
75 | | o 1 "a1" | |
25 | echo a >> a |
|
76 | |/ | |
26 | hg ci -m a4 -d '5 0' |
|
77 | o 0 "a0" | |
27 | echo a >> a |
|
78 | ||
28 | hg ci -m a5 -d '7 0' |
|
79 | ||
29 | echo a >> a |
|
80 | convert with datesort (default mode) | |
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 .. |
|
|||
35 |
|
81 | |||
36 |
|
|
82 | $ hg convert t t-sourcesort | |
37 | hg convert --datesort t t-datesort |
|
83 | initializing destination t-sourcesort repository | |
38 | echo % graph converted repo |
|
84 | scanning source... | |
39 | hg -R t-datesort glog --template '{rev} "{desc}"\n' |
|
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)' |
|
99 | $ hg -R t-sourcesort glog --template '{rev} "{desc}"\n' | |
42 | hg convert t t-sourcesort |
|
100 | o 8 "b1" | |
43 | echo % graph converted repo |
|
101 | | | |
44 | hg -R t-sourcesort glog --template '{rev} "{desc}"\n' |
|
102 | | o 7 "a6" | |
45 |
|
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 |
|
NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now