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

Thomas Arendsen Hein thomas at intevation.de
Sun Mar 2 12:14:08 CST 2008


* Jesse Glick <jesse.glick at sun.com> [20080302 16:38]:
> 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

I can reproduce this with a non-bash /bin/sh and will look at how to
fix it later.

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

I think somebody worked on these, if there is nothing on the list,
maybe it got lost on paste.lisp.org

Thomas

-- 
thomas at intevation.de - http://intevation.de/~thomas/ - OpenPGP key: 0x5816791A
Intevation GmbH, Osnabrueck - Register: Amtsgericht Osnabrueck, HR B 18998
Geschaeftsfuehrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner


More information about the Mercurial-devel mailing list