summaryrefslogtreecommitdiffstats
path: root/lib/redmine/scm/adapters/mercurial/redminehelper.py
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-02-23 11:38:23 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-02-23 11:38:23 +0000
commit0edde5da92e66bb685a58298d9dcfe0472155034 (patch)
tree9a07d5ec6cafe8a78aacbaaf0c0bb53300a7d12f /lib/redmine/scm/adapters/mercurial/redminehelper.py
parentd671b116419d3e35eccd45a5696544b7e13a2903 (diff)
downloadredmine-0edde5da92e66bb685a58298d9dcfe0472155034.tar.gz
redmine-0edde5da92e66bb685a58298d9dcfe0472155034.zip
scm: mercurial: replace urllib.unquote to urllib.unquote_plus in helper (#4455).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4934 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/scm/adapters/mercurial/redminehelper.py')
-rw-r--r--lib/redmine/scm/adapters/mercurial/redminehelper.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/redmine/scm/adapters/mercurial/redminehelper.py b/lib/redmine/scm/adapters/mercurial/redminehelper.py
index bc18f49a3..9bca6c9bd 100644
--- a/lib/redmine/scm/adapters/mercurial/redminehelper.py
+++ b/lib/redmine/scm/adapters/mercurial/redminehelper.py
@@ -120,10 +120,10 @@ def _manifest(ui, repo, path, rev):
ui.write('</manifest>\n')
def rhannotate(ui, repo, *pats, **opts):
- return commands.annotate(ui, repo, *map(urllib.unquote, pats), **opts)
+ return commands.annotate(ui, repo, *map(urllib.unquote_plus, pats), **opts)
def rhcat(ui, repo, file1, *pats, **opts):
- return commands.cat(ui, repo, urllib.unquote(file1), *map(urllib.unquote, pats), **opts)
+ return commands.cat(ui, repo, urllib.unquote_plus(file1), *map(urllib.unquote_plus, pats), **opts)
def rhdiff(ui, repo, *pats, **opts):
"""diff repository (or selected files)"""
@@ -132,7 +132,7 @@ def rhdiff(ui, repo, *pats, **opts):
base = repo.changectx(change).parents()[0].rev()
opts['rev'] = [str(base), change]
opts['nodates'] = True
- return commands.diff(ui, repo, *map(urllib.unquote, pats), **opts)
+ return commands.diff(ui, repo, *map(urllib.unquote_plus, pats), **opts)
def rhmanifest(ui, repo, path='', **opts):
"""output the sub-manifest of the specified directory"""
@@ -140,7 +140,7 @@ def rhmanifest(ui, repo, path='', **opts):
ui.write('<rhmanifest>\n')
ui.write('<repository root="%s">\n' % _u(repo.root))
try:
- _manifest(ui, repo, urllib.unquote(path), opts.get('rev'))
+ _manifest(ui, repo, urllib.unquote_plus(path), opts.get('rev'))
finally:
ui.write('</repository>\n')
ui.write('</rhmanifest>\n')