--template options: file_adds
Matt Mackall
mpm at selenic.com
Wed Nov 21 13:30:54 CST 2007
On Wed, Nov 21, 2007 at 04:44:12PM +0100, Patrick M?zard wrote:
> Ralph Douglass a ?crit :
> > I'm trying to get a list of modified files from a specific revision, so
> > that I can write a hook which emails only on mods.
> >
> > I was looking at http://hgbook.red-bean.com/hgbookch11.html, and it
> > seemed like the best way to do it was call:
> > hg log -r <some revision> --template '{files}'
> > hg log -r <some revision> --template '{file_adds}'
> > hg log -r <some revision> --template '{file_dels}'
> >
> > and then do some munging to subtract the adds and dels from all files.
> > But it seems that when I do this, file_adds is always empty. I tried
> > with it a brand new repo too. I'm testing this on osx 10.4, using 0.9.5
> > from macports. Does someone have a better way to do what I want, or any
> > suggestions on what I need to do to get file_adds to list something?
>
> Try with --debug.
A bunch of people have run into this. If we were a bit smarter, we'd
enable the relevant bits automatically.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list