Update hg_pull_and_see
authorMikael Berthe <mikael@lilotux.net>
Sat, 27 Apr 2019 22:54:09 +0200
changeset 42 2431e6a9344a
parent 41 be88f546392c
child 43 7b48c4ff8d36
Update hg_pull_and_see
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