]> Tony Duckles's Git Repositories (git.nynim.org) - svn2svn.git/commit
Correctly handle source_url/target_url with chars needing URL-encoding
authorTony Duckles <tony@nynim.org>
Mon, 9 Apr 2012 00:45:30 +0000 (19:45 -0500)
committerTony Duckles <tony@nynim.org>
Mon, 9 Apr 2012 00:45:30 +0000 (19:45 -0500)
commit9bfe6505f93bb802a33937f49f390804d8169e59
treea474b51c70d38578c800933dba10d5619f9b67f8
parentb781147b4d8e107a249470d53fef07ee19e421d2
Correctly handle source_url/target_url with chars needing URL-encoding

Use urllib.unquote() to URL-decode source_url/target_url values.
All URLs passed to run_svn() should go through svnclient.safe_path()
and we don't want to end-up *double* urllib.quote'ing if the user-
supplied source/target URL's are already URL-encoded or have chars
which need URL-encoding.

* svn2svn/run/svn2svn.py (real_main): Maintain source_url/target_url
as URL-decoded values.
* svn2svn/run/svn2svn.py (gen_tracking_revprops, build_rev_map):
Translate "internal" source_url back to an "external" (URL-encoded)
value.
* svn2svn/svnclient (parse_svn_info_xml): URL-decode 'url' and
'repos_url' values, since all downstream consumers should want these
to be in the "internal" (URL-decoded) format.
* tests/make-ref-repo.sh: Add test-cases to further stress-test
URL-encoding/decoding.
svn2svn/run/svn2svn.py
svn2svn/svnclient.py
tests/make-ref-repo.sh