Simple command line to see what happened in a changeset?
Paul Moore
p.f.moore at gmail.com
Thu Jul 5 04:41:34 CDT 2007
On 05/07/07, Thomas Klausner <tk at giga.or.at> wrote:
> Is there a simple way, given a revision hash, to find out what changed
> in that revision compared to the previous one without having to dig
> out the revision hash of the previous one?
>
> I.e., say the commit created changeset "ab1234cd5678", what's the
> easiest way to see what exactly were the related diffs in the files
> for this changeset?
You can get the necessary information by doing hg parents -r
ab1234cd5678, pick out the parent revision, and then do hg diff.
However, making that into a single command is a bit more difficult.
(I couldn't find a command which just produced the parent(s) ID
without additional headers, etc - ie, machine usable rather than human
readable. Did I miss something?)
> I know that this might be troublesome for merges, because it's not
> clear what the previous version is, but I'm currently mostly
> interested in non-merges where a single parent exists.
The above should show you when you're looking at a merge changeset -
any attempt to make it a single command would likely either be
fragile, or would need a lot of error checking...
Paul.
More information about the Mercurial
mailing list