[PATCH] 'hg status -q' output skips non-tracked files

Jesse Glick jesse.glick at sun.com
Sun Mar 2 09:24:13 CST 2008


Zoran Bosnjak wrote:
> # HG changeset patch
> # User Zoran Bosnjak <zoran.bosnjak at via.si>
> # Date 1204407003 -3600
> # Node ID 90a087257f1e1138b4dd3981fa21c9262f2288bd
> # Parent  434139080ed4007d99e843b203c7da0850238744
> 'hg status -q' output skips non-tracked files.
> 
> --- a/tests/test-status	Mon Jan 28 22:19:12 2008 -0500
> +++ b/tests/test-status	Sat Mar 01 22:30:03 2008 +0100
> +function assert {
> +    hg status $1 > ../a
> +    hg status $2 > ../b
> +    out=`diff ../a ../b`
> +    if [ $? -ne 0 ]; then
> +        out=1
> +    else
> +        out=0
> +    fi
> +    if [ $3 -eq 0 ]; then
> +        df="same"
> +    else
> +        df="different"
> +    fi
> +    if [ $out -ne $3 ]; then
> +        echo "Error on $1 and $2, should be $df."
> +    fi
> +}

This fails with an error on Ubuntu:

ERROR: test-status output changed
--- Expected output
+++ Test output
@@ -124,3 +124,7 @@
  adding deleted
  adding modified
  adding removed
+/space/src/hg/tests/test-status: 65: function: not found
+[: 78: 0: unexpected operator
+[: 81: -ne: argument expected
+/space/src/hg/tests/test-status: 82: Syntax error: "}" unexpected

ERROR: test-status failed with error code 2

BTW test-convert-cvs still consistently fails for me, and test-http 
fails maybe 30% of the time; anyone working on fixing these?



More information about the Mercurial-devel mailing list