[issue759] hg log doesn't expand {file_adds} and {file_dels} from templates

David Champion dgc at uchicago.edu
Fri Oct 5 04:29:32 UTC 2007


> > On Windows XP, Mercurial 0.9.4, the expansion of templates containing
> > {file_adds} and {file_dels} (described in hgbook) doesn't work - it's always
> > empty. However adds and removes can be seen using hg log --debug as lists of
> > files prefixed with 'files+' and 'files-'. adds/dels seem to be not expanded
> > neither with hgweb.
> 
> I learned when I inquired about this on IRC that you must use hg -v to
> expand these expressions.
> 
> $ hg -v log --template "Added: {file_adds}\n"

Sorry, I meant --debug.  -v not necessary:

$ hg --debug log --template "Added: {file_adds}\n"

This doesn't seem to be documented anywhere that I could find.

-- 
 -D.    dgc at uchicago.edu    NSIT    University of Chicago
 "Polka music needs to prevail."   John Ziobrowski, Polka America Corporation



More information about the Mercurial-devel mailing list