2008-12-02 19:13:52 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
echo "[extensions]" >> $HGRCPATH
|
|
|
|
echo "color=" >> $HGRCPATH
|
|
|
|
|
|
|
|
hg init repo
|
|
|
|
cd repo
|
|
|
|
cat > a <<EOF
|
|
|
|
c
|
|
|
|
c
|
|
|
|
a
|
|
|
|
a
|
|
|
|
b
|
|
|
|
a
|
|
|
|
a
|
|
|
|
c
|
|
|
|
c
|
|
|
|
EOF
|
|
|
|
hg ci -Am adda
|
|
|
|
cat > a <<EOF
|
|
|
|
c
|
|
|
|
c
|
|
|
|
a
|
|
|
|
a
|
|
|
|
dd
|
|
|
|
a
|
|
|
|
a
|
|
|
|
c
|
|
|
|
c
|
|
|
|
EOF
|
|
|
|
|
|
|
|
echo '% default context'
|
|
|
|
hg diff --nodates --color=always
|
|
|
|
|
|
|
|
echo '% --unified=2'
|
2009-10-09 11:53:24 +04:00
|
|
|
hg diff --nodates -U 2 --color=always
|
|
|
|
|
2009-10-25 03:52:36 +03:00
|
|
|
echo '% diffstat'
|
|
|
|
hg diff --stat --color=always
|
|
|
|
|
2009-10-09 11:53:24 +04:00
|
|
|
echo "record=" >> $HGRCPATH
|
|
|
|
echo "[ui]" >> $HGRCPATH
|
|
|
|
echo "interactive=true" >> $HGRCPATH
|
|
|
|
echo "[diff]" >> $HGRCPATH
|
|
|
|
echo "git=True" >> $HGRCPATH
|
|
|
|
|
|
|
|
echo % record
|
|
|
|
chmod 0755 a
|
|
|
|
hg record --color=always -m moda a <<EOF
|
|
|
|
y
|
|
|
|
y
|
|
|
|
EOF
|
|
|
|
echo
|