From 7739a7f9439d6b48907c2295270dae644ed48f11 Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Sat, 24 Mar 2012 19:51:57 -0500 Subject: [PATCH] URL encode user-supplied source_url and target_url * svn2svn/run/svn2svn.py (real_main): URL encode user-supplied source_url and target_url values. --- svn2svn/run/svn2svn.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/svn2svn/run/svn2svn.py b/svn2svn/run/svn2svn.py index 1e76103..0d8137d 100644 --- a/svn2svn/run/svn2svn.py +++ b/svn2svn/run/svn2svn.py @@ -18,6 +18,7 @@ import shutil import operator import optparse import re +import urllib from datetime import datetime _valid_svn_actions = "MARD" # The list of known SVN action abbr's, from "svn log" @@ -941,8 +942,8 @@ def disp_svn_log_summary(log_entry): def real_main(args, parser): global source_url, target_url, rev_map - source_url = args.pop(0).rstrip("/") # e.g. 'http://server/svn/source/trunk' - target_url = args.pop(0).rstrip("/") # e.g. 'file:///svn/target/trunk' + source_url = urllib.quote(args.pop(0).rstrip("/"),"/:") # e.g. 'http://server/svn/source/trunk' + target_url = urllib.quote(args.pop(0).rstrip("/"),"/:") # e.g. 'file:///svn/target/trunk' ui.status("options: %s", str(options), level=ui.DEBUG, color='GREEN') # Make sure that both the source and target URL's are valid -- 2.43.0