hg log --template "{files}\n" -- spaces in file names
Alpár Jüttner
alpar at cs.elte.hu
Thu May 1 03:01:40 CDT 2008
Hi,
> It is still not exactly clear but I got what I wanted working.
Please, let me know how did you do that. I tried this:
hg tip --template='{files|escape}\n'
but hg crashes saying that:
[...]
File
"/usr/local/lib/python2.5/site-packages/mercurial/templatefilters.py",
line 132, in <lambda>
"escape": lambda x: cgi.escape(x, True),
File "/usr/lib/python2.5/cgi.py", line 1055, in escape
s = s.replace("&", "&") # Must be done first!
AttributeError: 'generator' object has no attribute 'replace'
This should be a bug, shouldn't it?
Regards,
Alpar
> Is this documented somewhere? I was using the hgbook but it doesn't
> really describe it that well, there is no description of what the
> keywords are (section 11.7.2 talks about them but doesn't define them,
> 11.4 has a list for use in templates but 'file' isn't in that list).
>
> Don't get me wrong about the book though, it is great and I use it all
> the time. Just seems to be missing a bit of detail in this area.
>
>
> On 01/05/2008, at 3:20 PM, Bela Babik wrote:
>
> > This was already discussed several times:
> > ex: http://www.nabble.com/using-template-to-distinguish-between-files-and-files-with-spaces-td16083767.html
>
> Brian Wallis
> InfoMedix
> p: 3 8615 4553 | f: 3 8615 4501 | e: brian.wallis at infomedix.com.au
> Level 5, 451 Little Bourke Street, Melbourne VIC 3000
>
>
>
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
More information about the Mercurial
mailing list