Finding changeset from diff files

Dirkjan Ochtman dirkjan at ochtman.nl
Sun Jul 19 06:14:11 CDT 2009


On Sun, Jul 19, 2009 at 08:09, scrappy doo<shadowcwal at yahoo.com> wrote:
> I'm trying to go from pages like this
> https://bug479413.bugzilla.mozilla.org/attachment.cgi?id=368266   to find
> the corresponding changeset in the repository. I'll be iterating through all
> the changesets in the repository, but I'm not sure how to compare the diffs
> from the webpage with the diffs in the changesets. Any suggestions on how to
> do this?

This isn't really on-topic for mercurial-devel. You should really ask
on the mercurial users list, or on any of the Mozilla-specific hg
forums that are out there (I hang out in #hg on irc.mozilla.org, for
example; there are probably relevant newsgroups as well).

That said, many bugs will have a final comment with a link to the
pushed cset, where you could get the changeset. Iterating over the
changelog and reading the commit message is another good option;
almost every commit should have a bug id in it.

The easiest way to compare the diffs might be to run hg diff -c
<cset-id> on a local clone to get the changeset diff, then compare
that to the diff from the attachment (you could run diff on the diffs,
which might actually be useful in this case, though diffs of diffs are
somewhat hard to read).

Cheers,

Dirkjan



More information about the Mercurial-devel mailing list