Menu

Commit [r4633]  Maximize  Restore  History

scm: mercurial: escape any filenames by urlescape (#2664, #7064).

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.

tmaruyama 2011-01-05

changed /trunk/lib/redmine/scm/adapters/mercurial/hg-template-0.9.5.tmpl
changed /trunk/lib/redmine/scm/adapters/mercurial/hg-template-1.0.tmpl
changed /trunk/lib/redmine/scm/adapters/mercurial_adapter.rb
/trunk/lib/redmine/scm/adapters/mercurial/hg-template-0.9.5.tmpl Diff Switch to side-by-side view
Loading...
/trunk/lib/redmine/scm/adapters/mercurial/hg-template-1.0.tmpl Diff Switch to side-by-side view
Loading...
/trunk/lib/redmine/scm/adapters/mercurial_adapter.rb Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.