]> Tony Duckles's Git Repositories (git.nynim.org) - svn2svn.git/commit
Better path and URL encoding/escaping
authorTony Duckles <tony@nynim.org>
Sat, 7 Apr 2012 18:21:03 +0000 (13:21 -0500)
committerTony Duckles <tony@nynim.org>
Sun, 8 Apr 2012 00:20:10 +0000 (19:20 -0500)
commit528aed123e4940969c83d46f4ceb570a5151cdaf
treede82e09a8188eb589a31699838256242bf765d49
parentf1919fc6d41cd1997f556148e3098ec7787311e7
Better path and URL encoding/escaping

* svn2svn/svnclient.py (safe_path): Creating to abstract building
paths which are safe to pass as svn command-line args. For URL's,
use urllib.quote() to URL-encode paths. For local paths, if file/dir
name includes "@", add a trailing "@" so svn doesn't get confused
about unintended text being parsed as a peg-revision.
* svn2svn/svnclient.py: Use safe_path() for all local and URL paths.
* svn2svn/run/svn2svn.py: Use svnclient.safe_path() for all local
and URL paths.
svn2svn/run/svn2svn.py
svn2svn/svnclient.py
tests/check-replay-repo.sh
tests/make-ref-repo.sh