[PATCH 1 of 2 STABLE] mq: qpush fails with infinite recursion in _findtags when status file is wrong (issue2664)

timeless timeless at gmail.com
Mon Feb 28 00:57:47 CST 2011

On Mon, 2011-02-28 at 06:23 +0200, timeless wrote:
> i did:
> d) add a test which will prevent people from doing it again (if they run tests).

On Mon, Feb 28, 2011 at 8:29 AM, Matt Mackall <mpm at selenic.com> wrote:
> Oops, so you did.
> Ok, I guess the ball is in my court to fix this all up.

yeah, sorry. i managed a bad workaround (not submitted) for the crash.
tuukka tracked down the regression and suggested the backout as a
solution (which was much more elegant than my fix -- although
admittedly not ideal).

as to oscillation, your commit message was "mq: avoid using
revlog.nodemap unnecessarily". which to me seemed like an attempt at
an optimization instead of some other bug fix.

> Some asides about tests: for simple bugfixes, it's best to just have one
> patch.

yeah, the reason i didn't was that i was only claiming authorship to
the test lines.

> For bigger changes, it's ok to add -new- tests in patch at the
> end, but changes to existing tests should be rolled into the patch that
> introduces them.

More information about the Mercurial-devel mailing list