Message10337

Author esskov
Recipients abuehl, arghman, djc, dougxc, jwwalker, tonfa
Date 2009-08-15.15:11:07
Content
Trying to correctly parse the output of -

hg log --template "{files}\n"

- for filenames containing spaces led me to -

hg log --template "{files|urlescape}\n"

- which gives me "abort: template: no key named 'my-file'", after which I
found this issue. I then tried -

hg log --template "{files|stringify|urlescape}\n"

- as mentioned below. This will run but does not solve the basic problem,
because it produces output such as this (for 2 files):

a%20file%20name%20another_file

So, am I correct in concluding that currently there is no "--template
{files}" filter which can handle filenames containing spaces, such that the
output can be correctly parsed?
History
Date User Action Args
2009-08-15 15:11:07esskovsetrecipients: + tonfa, djc, abuehl, jwwalker, dougxc, arghman
2009-08-15 15:11:07esskovsetmessageid: <1250349067.98.0.549562887814.issue1164@selenic.com>
2009-08-15 15:11:07esskovlinkissue1164 messages
2009-08-15 15:11:07esskovcreate