Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Diffing only modified files in Mercurial

Tags:

mercurial

In Mercurial it's possible to hg status only the modified/added/removed files by doing:

hg st -m
hg st -a
hg st -r

Is it possible to obtain the same behaviour for the diff command? From the man page, it seems not.

like image 379
Roberto Aloi Avatar asked Sep 07 '10 15:09

Roberto Aloi


1 Answers

One option would be to use something like this:

hg status -mar --no-status | xargs hg diff

The --no-status flag insures that just the file name is sent to STDOUT.

like image 91
Tim Henigan Avatar answered Oct 07 '22 21:10

Tim Henigan