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? |