How to diff 2 arbitrary revisions of a file?

Benoit Boissinot bboissin at gmail.com
Sat Oct 17 09:47:55 CDT 2009


On Sat, Oct 17, 2009 at 4:27 PM, Michael Jay Lippert
<mlippert255 at gmail.com> wrote:

>
> Now what I'd like to do is see a visual diff of this particular file as it
> existed in 2 of the revisions where it was changed. I would have expected to
> be able to select 2 revisions and then ask for a visual diff, but it doesn't
> seem to work that way.
>
> This seems like a common desire, at least I do it quite a lot at work as do
> others I work with, so I figure that the capability must exist in mercurial
> (and in TortoiseHg) and I just can't find it.
>

In command line hg: hg diff -r <rev1> -r <rev2> path/to/file

regards,

Benoit
> Thanks,
> Mike
>
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
>
>


More information about the Mercurial mailing list