Commits  committed 6daf775

Fix network pull of repo files with "%" in their base64 encoding.

  • Participants
  • Parent commits e0e5c1b

Comments (0)

Files changed (1)

File mercurial/

 # of the GNU General Public License, incorporated herein by reference.
 import sys, struct, sha, socket, os, time, base64, re, urllib2, binascii
+import urllib
 from mercurial import byterange
 from mercurial.transaction import *
 from mercurial.revlog import *
 def opener(base):
     p = base
     def o(path, mode="r"):
+        if p[:7] == "http://":
+            f = os.path.join(p, urllib.quote(path))
+            return httprangereader(f)
         f = os.path.join(p, path)
-        if p[:7] == "http://":
-            return httprangereader(f)
         if mode != "r" and os.path.isfile(f):
             s = os.stat(f)