author | Mikael Berthe <mikael@lilotux.net> |
Sun, 15 Jul 2012 01:37:40 +0200 | |
changeset 9 | d7843f267d79 |
parent 4 | ca432c482cc9 |
child 10 | ed98b8ea395d |
permissions | -rw-r--r-- |
4 | 1 |
|
2 |
function hg_pull_and_see() { |
|
3 |
if ! $HG_ROOT_CMD > /dev/null; then |
|
4 |
print "Not a Mercurial repository!" |
|
5 |
return -1 |
|
6 |
fi |
|
7 |
||
9 | 8 |
local i=$(hg id --num) |
9 |
local i_h=$(hg id --id) |
|
4 | 10 |
hg pull -u |
9 | 11 |
local j=$(hg id --num) |
12 |
local j_h=$(hg id --id) |
|
4 | 13 |
|
9 | 14 |
if (( $i != $j ));then |
15 |
print "\nChangelog from ${i_h} to ${j_h}..." |
|
16 |
hg log --quiet --style=changelog -r "not ancestors($i)" |
|
4 | 17 |
fi |
18 |
} |