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

David Champion dgc at uchicago.edu
Wed Oct 3 01:09:03 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"

-- 
 -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