Fix annotate views of files in Subversion repository whose paths
contain non-URI-safe characters (spaces, non-ASCII stuff, etc.) * lib/vclib/svn/svn_repos.py (_rootpath2url): Use urllib.pathname2url to URL-encode the path portion of the URL we are building. git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@2674 8cb11bc2-c004-0410-86c3-e597b4017df7remotes/issue-495-dev
parent
46e17662d5
commit
92b7b65707
|
@ -20,6 +20,7 @@ import time
|
|||
import tempfile
|
||||
import popen
|
||||
import re
|
||||
import urllib
|
||||
from svn import fs, repos, core, client, delta
|
||||
|
||||
|
||||
|
@ -110,7 +111,7 @@ def _rootpath2url(rootpath, path):
|
|||
rootpath = '/' + rootpath
|
||||
if os.sep != '/':
|
||||
rootpath = rootpath.replace(os.sep, '/')
|
||||
return 'file://' + rootpath + '/' + path
|
||||
return 'file://' + urllib.pathname2url(rootpath) + '/' + path
|
||||
|
||||
|
||||
# Given a dictionary REVPROPS of revision properties, pull special
|
||||
|
|
Loading…
Reference in New Issue