# HG changeset patch # User Mikael Berthe # Date 1556398449 -7200 # Node ID 2431e6a9344a78f1c29ac96919e4478ecd5aa29e # Parent be88f546392c49919b9732cff5d5fbaa2c3ca826 Update hg_pull_and_see diff -r be88f546392c -r 2431e6a9344a zshrc.d/30-functions-hg.zrc --- a/zshrc.d/30-functions-hg.zrc Sat Apr 27 22:53:06 2019 +0200 +++ b/zshrc.d/30-functions-hg.zrc Sat Apr 27 22:54:09 2019 +0200 @@ -7,10 +7,11 @@ return -1 fi - local i=$(hg id -r tip --num) + integer i j + i=$(hg id -r tip --num) local i_h=$(hg id -r tip --id) hg pull $@ - local j=$(hg id -r tip --num) + j=$(hg id -r tip --num) local j_h=$(hg id -r tip --id) if (( $i != $j ));then