Mercurial > public > mercurial-scm > hg-stable
diff mercurial/localrepo.py @ 8531:810387f59696
filelog encoding: move the encoding/decoding into store
the escaping of directories ending with .i or .d doesn't
really belong to filelog.
we put the encoding/decoding in store instead, for backwards
compat, streamclone and the fncache file format still uses the
partially encoded filenames.
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Wed, 20 May 2009 18:35:47 +0200 |
parents | f9a80054dd3c |
children | e3495c399006 |
line wrap: on
line diff
--- 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()