[PATCH 01 of 10] tests: update test-patchbomb to pass our import checker
Gregory Szorc
gregory.szorc at gmail.com
Tue Aug 29 00:11:56 EDT 2017
On Mon, Aug 28, 2017 at 8:27 AM, Augie Fackler <raf at durin42.com> wrote:
> # HG changeset patch
> # User Augie Fackler <raf at durin42.com>
> # Date 1503435546 14400
> # Tue Aug 22 16:59:06 2017 -0400
> # Node ID 9bf8bd287bbf25b615a74cb6a47cce9c33bace4a
> # Parent b1f75d8e887a4c06e6b120807f3defc5c7b78d33
> tests: update test-patchbomb to pass our import checker
>
Queued, thanks.
>
> diff --git a/tests/test-patchbomb.t b/tests/test-patchbomb.t
> --- a/tests/test-patchbomb.t
> +++ b/tests/test-patchbomb.t
> @@ -9,18 +9,19 @@ Mercurial-patchbomb/.* -> Mercurial-patc
> --===+[0-9]+=+$ -> --===*= (glob)
>
> $ cat > prune-blank-after-boundary.py <<EOF
> + > from __future__ import absolute_import, print_function
> > import sys
> > skipblank = False
> > trim = lambda x: x.strip(' \r\n')
> > for l in sys.stdin:
> > if trim(l).endswith('=--') or trim(l).endswith('=='):
> > skipblank = True
> - > print l,
> + > print(l, end='')
> > continue
> > if not trim(l) and skipblank:
> > continue
> > skipblank = False
> - > print l,
> + > print(l, end='')
> > EOF
> $ FILTERBOUNDARY="$PYTHON `pwd`/prune-blank-after-boundary.py"
> $ echo "[format]" >> $HGRCPATH
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mercurial-scm.org/pipermail/mercurial-devel/attachments/20170828/b1bd1c4d/attachment.html>
More information about the Mercurial-devel
mailing list