Trying to get at file copy info in hg log by using template {file_copies}
John Rice
John.Rice at Sun.COM
Wed Jan 23 20:01:02 UTC 2008
Anyone any thoughts on how to get at the file copy information from a hg
log command when using a template directive? Currently it barfs on me,
see issue:
http://www.selenic.com/mercurial/bts/issue931
We need to try and get this sorted so we can display a nice Search
History panel in the NetBeans IDE Mercurial plugin. I can run the hg log
command twice and use the -C option without the template, but that would
be slow and painful as I'd have to dig all the Copy info out of the raw
output and merge it back into the template stuff :(
JR
Issue 931 Snippet:
---------------------------
We are trying to implement a Search History in the Mercurial NetBeans IDE
support and also need the ability to get at copied file info in a template, we
are seeing similar problem with file_copies in tempalte:
$ hg --debug log -l 1 -C --template="rev: {rev}\\ndesc: {desc}\\ndate:
{date|hgdate}\\nid: {node|short}\\nfiles: {files}\\n file_adds: {file_adds}\\n
file_dels: {file_dels}\\n file_copies: {file_copies}\\n\\n" --repository
/export/home/NetBeansProjects/JavaApplication36_clone1
/export/home/NetBeansProjects/JavaApplication36_clone1
rev: 7
desc: copied
date: 1200923834 0
id: 16ca42ddff3c
files:
file_adds: src/javaapplication36/Main2222.java
src/javaapplication36/NewClass3111111111.java
file_dels: src/javaapplication36/Main.java src/javaapplication36/NewClass31.java
file_copies:
filesnodetagsdatedescbranchesnameauthorrevmanifestsourceextrasfile_addsfile_delsparentsfile_copiesfilesnodetagsdatedescbranchesnameauthorrevmanifestsourceextrasfile_addsfile_delsparentsfile_copies
$ hg --version
Mercurial Distributed SCM (version 0.9.5)
More information about the Mercurial
mailing list