Bug 3844 - Support URL encoding in splicemap file
Summary: Support URL encoding in splicemap file
Status: RESOLVED FIXED
Alias: None
Product: Mercurial
Classification: Unclassified
Component: convert (show other bugs)
Version: earlier
Hardware: PC Windows
: normal feature
Assignee: Bugzilla
URL:
Keywords: easy
Depends on:
Blocks:
 
Reported: 2013-02-27 08:06 UTC by cdokolas
Modified: 2017-11-01 18:05 UTC (History)
3 users (show)

See Also:
Python Version: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cdokolas 2013-02-27 08:06 UTC
I have a subversion repository to convert and splicemaps don't work (I have
to use splicemaps because of all the non-standard branch paths). The reason
is that there are paths with spaces all over our repository and splicemap
lines are split on spaces and commas. I'd like the mercurial developers to
consider adding support for URL encoding (i.e. decode "%20"s in the
splicemap file) in the convert extension.

I don't remember much about cases other than the splicemap file, but you may wish to look into additional places where this feature would be helpful.
Comment 1 Nikolaj Sjujskij 2013-04-18 07:08 UTC
I've added "easy" keyword, maybe some GSoC student finds it and tries to fix.

I think it'd be better to use standard shell escaping and `shlex` module.
Comment 2 HG Bot 2013-05-13 19:15 UTC
Fixed by http://selenic.com/repo/hg/rev/8c2fdf7d5645
Szymon Wroblewski <bluex0@gmail.com>
splicemap: support paths with spaces in splicemap (issue3844)

Shlex module was used to split line as suggested. Split operates in POSIX mode.

(please test the fix)