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

Matt Mackall mpm at selenic.com
Thu Jul 8 08:41:49 CDT 2010


On Thu, 2010-07-08 at 15:40 +0200, Christian Ebert wrote:
> * 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

That or hg st -n -0 --change

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list