mercurial - hg log: Differing behavior between {files} template in direct call and embedded in --verbose -


i'm trying achieve same functionality how make 'hg log --verbose' show files on multiple lines? , i've more or less achieved goal. don't understand what's different in calling {files} argument hg log --template , using {files} keyword inside .style file i've created. although i'd expect them have same behavior, don't.

here's i've done (as directed the answer question above):

  1. downloaded , modified own my-default.style file. exercise i've reduced contents of file this:

    changeset_verbose = '{files}\n' file = '{file}\n' 
  2. linked style file in hg config file.

if call hg log -r1 -v proper, newline-separated output:

file1.txt file2.txt ... 

but if call hg log -r1 --template {files} default, space-separated output:

file1.txt file2.txt ... 

by hacking changeset_verbose i've done can work around problem. ideally i'd reference style file within command-line templates. so: behavior {files} call command line defined? , how can override it?

it possible reference style file using --style parameter. alternatively, can on command line this:

hg log -r 1 --template "{files % '{file}\n'}" 

type

hg template 

for more examples , explanation.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -