equal
deleted
inserted
replaced
|
1 #!/bin/sh |
|
2 |
|
3 cat >> $HGRCPATH <<EOF |
|
4 [extensions] |
|
5 convert= |
|
6 graphlog= |
|
7 EOF |
|
8 |
|
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 '5 0' |
|
24 hg up -C brancha |
|
25 echo a >> a |
|
26 hg ci -m a4 -d '6 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 .. |
|
35 |
|
36 echo % convert with datesort |
|
37 hg convert --datesort t t2 |
|
38 echo % graph converted repo |
|
39 hg -R t2 glog --template '#rev# "#desc#"\n' |
|
40 |