[PATCH] hg grep: handle re.compile errors & update tests/test-grep

Giorgos Keramidas keramida at ceid.upatras.gr
Tue Jul 10 04:59:18 CDT 2007


On 2007-07-10 04:48, Matt Mackall <mpm at selenic.com> wrote:
> On Mon, Jul 09, 2007 at 05:41:53PM +0300, Giorgos Keramidas wrote:
> > # HG changeset patch
> > # User Giorgos Keramidas <keramida at ceid.upatras.gr>
> > # Date 1183992074 -10800
> > # Node ID 1ba70cdb3e1cc18670da8e8b75d08c9c54f893a7
> > # Parent  34619ae215004ce8ff4927527d9d00d89f6482c6
> > hg grep: handle re.compile errors & update tests/test-grep
>
> Queued.

Thanks :)

> Pity re.compile throws such useless exception types.

Indeed.

I did spent a bit of time looking for something more usable in Python
2.3 regarding re.compile exceptions, but I didn't find anything, so I
just `rolled my own handler' based on ui.warn().



More information about the Mercurial-devel mailing list