mirror of
				https://github.com/redmine/redmine.git
				synced 2025-10-31 10:25:55 +01:00 
			
		
		
		
	In Mercurial, filename is not UTF-8 but byte-string.
So it should be escaped to UTF-8-safe string before parsing as XML document.
NOTE: Mercurial's {|obfuscate} filter cannot be used here, because it treats
filename as encoded by HGENCODING.
Contributed by Yuya Nishihara.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4633 e93f8b46-1217-0410-a6f0-8f06a7374b81
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			824 B
		
	
	
	
		
			Cheetah
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			824 B
		
	
	
	
		
			Cheetah
		
	
	
	
	
	
| changeset = 'This template must be used with --debug option\n'
 | |
| changeset_quiet =  'This template must be used with --debug option\n'
 | |
| changeset_verbose = 'This template must be used with --debug option\n'
 | |
| changeset_debug = '<logentry revision="{rev}" node="{node|short}">\n<author>{author|escape}</author>\n<date>{date|isodate}</date>\n<paths>\n{files}{file_adds}{file_dels}{file_copies}</paths>\n<msg>{desc|escape}</msg>\n{tags}</logentry>\n\n'
 | |
| 
 | |
| file = '<path action="M">{file|urlescape}</path>\n'
 | |
| file_add = '<path action="A">{file_add|urlescape}</path>\n'
 | |
| file_del = '<path action="D">{file_del|urlescape}</path>\n'
 | |
| file_copy = '<path-copied copyfrom-path="{source|urlescape}">{name|urlescape}</path-copied>\n'
 | |
| tag = '<tag>{tag|escape}</tag>\n'
 | |
| header='<?xml version="1.0" encoding="UTF-8" ?>\n<log>\n\n'
 | |
| # footer="</log>" |