mercurial/localrepo.py
changeset 8531 810387f59696
parent 8527 f9a80054dd3c
child 8562 e3495c399006
--- a/mercurial/localrepo.py	Wed May 20 18:35:41 2009 +0200
+++ b/mercurial/localrepo.py	Wed May 20 18:35:47 2009 +0200
@@ -2026,7 +2026,8 @@
                 raise error.ResponseError(
                     _('Unexpected response from remote server:'), l)
             self.ui.debug(_('adding %s (%s)\n') % (name, util.bytecount(size)))
-            ofp = self.sopener(name, 'w')
+            # for backwards compat, name was partially encoded
+            ofp = self.sopener(store.decodedir(name), 'w')
             for chunk in util.filechunkiter(fp, limit=size):
                 ofp.write(chunk)
             ofp.close()