[PATCH] mq: make 'qdelete <patchidx>' work again

Martin Geisler mg at lazybytes.net
Thu Jun 17 02:57:09 CDT 2010

Greg Ward <greg-hg at gerg.ca> writes:

> # HG changeset patch
> # User Greg Ward <greg-hg at gerg.ca>
> # Date 1276740002 14400
> # Node ID 889b9c821af098e6db3754d5d8fd25268aa2965f
> # Parent  7914628b4751a6f8d56e26711f347df8df46d588
> mq: make 'qdelete <patchidx>' work again.

Thanks, this will be pushed in a sec when the test suite finishes.

> This just backs out 1abd9442727c (a minor code cleanup that
> accidentally broke qdelete) and adds a test.

Good idea with a test... I had to stare at the code for a long time to
realize the error: self.lookup(patch, strict=True) turns a numeric index
into the patch file name and with my refactoring, this was just thrown

Martin Geisler

aragost Trifork
Professional Mercurial support

More information about the Mercurial-devel mailing list