hg log: diffstat template ignores exclude pattern

Steve Schmerler elcortogm at gmail.com
Tue Nov 11 19:54:09 UTC 2014


On Nov 11 11:46 +0000, Pierre-Yves David wrote:
[...]
> Very good bug report here (yes looks like a bug) can I get your do make the
> final step and fill it on http://bz.selenic.com/ ?

Done.

> In the meantime, you can probably work around this using 'hg diff --change
> REV PATTERN | diffstats.

OK something like this works, thanks for the hint!

for ii in $(seq $startrev $endrev); do
    hg di -c $ii -X '**.foo' | diffstat
done | sed -nre 's/.*changed,\s+([0-9]+)\s+insert.*,\s+([0-9]+)\s+delet.*/\1 \2/p'

best,
Steve



More information about the Mercurial mailing list