--template options: file_adds
Matt Mackall
mpm at selenic.com
Sat Nov 24 18:14:10 UTC 2007
On Sat, Nov 24, 2007 at 06:03:43PM +0100, Patrick M?zard wrote:
> Matt Mackall a ?crit :
> > 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.
>
> 5a124ce4602a in crew should fix it.
>
> BTW, "files" property means "modified files" with --debug and "all files" otherwise. I think this a bug, it should always mean "all files" and we should introduce a "file_mods" for consistency. Any objections ?
No, go ahead.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list