Best way to get list of return separated file names in template?

Christian Ebert blacktrash at gmx.net
Thu Jul 8 08:40:07 CDT 2010


* Jason Harris on Thursday, July 08, 2010 at 15:10:59 +0200
> Question:
> 
> In some commands like "hg log --template "{file_mods} {date}"
> the list of files that come back is space separated. However,
> some files have spaces in their names. Thus programmatically
> determining Thus I would like to add / change / modify things
> so I can get log to yield a list of file names which are return
> separated.
> 
> I could of course add my own file_mods_separated to the code in
> templatekw.py but I am asking what would the preferred way to
> modify the code to achieve this?
> 
> Should a new keyword be added, or should this be done in some
> other manner?

Perhaps you can tweak this --style:

http://hgbook.red-bean.com/read/customizing-the-output-of-mercurial.html#id417978

c
-- 
theatre - books - texts - movies
Black Trash Productions at home: http://www.blacktrash.org/
Black Trash Productions on Facebook:
http://www.facebook.com/blacktrashproductions


More information about the Mercurial-devel mailing list