##// END OF EJS Templates
bundle2: urlunquote stream parameter name and value during unbundling...
Pierre-Yves David -
r20812:e2f90877 default
parent child Browse files
Show More
@@ -153,6 +153,7 b' class unbundle20(object):'
153 if paramssize:
153 if paramssize:
154 for p in self._readexact(paramssize).split(' '):
154 for p in self._readexact(paramssize).split(' '):
155 p = p.split('=', 1)
155 p = p.split('=', 1)
156 p = [urllib.unquote(i) for i in p]
156 if len(p) < 2:
157 if len(p) < 2:
157 p.append(None)
158 p.append(None)
158 params[p[0]] = p[1]
159 params[p[0]] = p[1]
@@ -140,3 +140,12 b' Test generation'
140
140
141 $ hg bundle2 --param 'e|! 7/=babar%#==tutu' --param simple
141 $ hg bundle2 --param 'e|! 7/=babar%#==tutu' --param simple
142 HG20\x00)e%7C%21%207/=babar%25%23%3D%3Dtutu simple\x00\x00 (no-eol) (esc)
142 HG20\x00)e%7C%21%207/=babar%25%23%3D%3Dtutu simple\x00\x00 (no-eol) (esc)
143
144 Test unbundling
145
146 $ hg bundle2 --param 'e|! 7/=babar%#==tutu' --param simple | hg unbundle2
147 options count: 2
148 - e|! 7/
149 babar%#==tutu
150 - simple
151 parts count: 0
General Comments 0
You need to be logged in to leave comments. Login now