diff tests/_exc-util.sh @ 1025:b96c9af18453 stable

test: use `hg log` in the `getid` function using `hg id` to retrieve full lenght node requires to use --debug. This may include debug output (regarding branch cache invalidation for example) that breaks the test. We now use `hg log` with a custom template. This is a simple, clean and robust solution.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Fri, 25 Jul 2014 14:27:16 +0200
parents b177fde040dd
children 59bc29c84ce0
line wrap: on
line diff
--- a/tests/_exc-util.sh	Wed Jul 30 13:38:33 2014 -0700
+++ b/tests/_exc-util.sh	Fri Jul 25 14:27:16 2014 +0200
@@ -20,7 +20,7 @@
    hg ci -m "$1"
 }
 getid() {
-   hg id --hidden --debug -ir "$1"
+   hg log --hidden --template '{node}\n' --rev "$1"
 }
 
 setuprepos() {