[PATCH] tests: unify test-help

Martin Geisler mg at lazybytes.net
Sun Aug 29 16:22:22 CDT 2010


Dan Villiom Podlaski Christiansen <danchr at gmail.com> writes:

> # HG changeset patch
> # User Dan Villiom Podlaski Christiansen <danchr at gmail.com>
> # Date 1282919147 -7200
> # Node ID 4b22342d57dc33a0740b319270ac5d4a8d7de21d
> # Parent  9de523f657e002dffa0946802b726ca3a159cd0e
> tests: unify test-help

In crew as adfff89e6058, thanks!

We now have built-in regular expression matching in the output, so I
changed these lines

> +  $ hg -v help shortlist | sed 's/[(]version [^)]*[)]/(version xxx)/'
> +  Mercurial Distributed SCM (version xxx)

to:

> +  $ hg -v help shortlist
> +  Mercurial Distributed SCM (version .+?)

-- 
Martin Geisler

Mercurial links: http://mercurial.ch/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20100829/7c346ca0/attachment.pgp>


More information about the Mercurial-devel mailing list