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

Jason Harris jason at jasonfharris.com
Thu Jul 8 08:10:59 CDT 2010


Hi All,

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?

Thanks,
  Jason


More information about the Mercurial-devel mailing list