2008-02-16 13:55:33 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
cat >> $HGRCPATH <<EOF
|
|
|
|
[extensions]
|
|
|
|
convert=
|
|
|
|
graphlog=
|
|
|
|
EOF
|
|
|
|
|
|
|
|
hg init t
|
|
|
|
cd t
|
|
|
|
echo a >> a
|
|
|
|
hg ci -Am a0 -d '1 0'
|
|
|
|
hg branch brancha
|
|
|
|
echo a >> a
|
|
|
|
hg ci -m a1 -d '2 0'
|
|
|
|
echo a >> a
|
|
|
|
hg ci -m a2 -d '3 0'
|
|
|
|
echo a >> a
|
|
|
|
hg ci -m a3 -d '4 0'
|
|
|
|
hg up -C 0
|
|
|
|
hg branch branchb
|
|
|
|
echo b >> b
|
2009-06-01 19:12:39 +04:00
|
|
|
hg ci -Am b0 -d '6 0'
|
2008-02-16 13:55:33 +03:00
|
|
|
hg up -C brancha
|
|
|
|
echo a >> a
|
2009-06-01 19:12:39 +04:00
|
|
|
hg ci -m a4 -d '5 0'
|
2008-02-16 13:55:33 +03:00
|
|
|
echo a >> a
|
|
|
|
hg ci -m a5 -d '7 0'
|
|
|
|
echo a >> a
|
|
|
|
hg ci -m a6 -d '8 0'
|
|
|
|
hg up -C branchb
|
|
|
|
echo b >> b
|
|
|
|
hg ci -m b1 -d '9 0'
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
echo % convert with datesort
|
2009-06-01 19:12:39 +04:00
|
|
|
hg convert --datesort t t-datesort
|
2008-02-16 13:55:33 +03:00
|
|
|
echo % graph converted repo
|
2009-06-01 19:12:39 +04:00
|
|
|
hg -R t-datesort glog --template '{rev} "{desc}"\n'
|
|
|
|
|
2009-06-01 19:12:41 +04:00
|
|
|
echo '% convert with datesort (default mode)'
|
|
|
|
hg convert t t-sourcesort
|
2009-06-01 19:12:39 +04:00
|
|
|
echo % graph converted repo
|
|
|
|
hg -R t-sourcesort glog --template '{rev} "{desc}"\n'
|
2008-02-16 13:55:33 +03:00
|
|
|
|