Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mercurial: Creating a diff of two commits

Tags:

diff

mercurial

Is there a way to get the changes of two commits with mercurial? The second commit is not directly after the first one, there are some other ones between them.

I tried

hg diff [some params] --change xxxxx --change yyyyy > file.patch 

but that only includes the last changeset.

If there is no way to achieve this with hg, is there maybe a tool to combine patches?

like image 860
DerKuchen Avatar asked May 03 '10 19:05

DerKuchen


1 Answers

I came upon this page while trying to figure this very thing out. I found my solution via hg help diff .

hg diff -r <rev> -r <rev> worked for my needs (diffing between two tags)

like image 87
the daniel Avatar answered Nov 12 '22 14:11

the daniel