[PATCH] streamclone: partially encode filename over the wire, not for local read

Matt Mackall mpm at selenic.com
Wed Sep 30 15:22:43 CDT 2009


On Wed, 2009-09-30 at 16:08 -0400, Greg Ward wrote:
> # HG changeset patch
> # User Greg Ward <greg-hg at gerg.ca>
> # Date 1254341291 14400
> # Node ID 0411fe6a60722535cf44df4ea89b42c82ef96821
> # Parent  b2d65ee49a72f374fd6831f229e03ca723c29c77
> streamclone: partially encode filename over the wire, not for local read.
> 
> (Fixes issue1847, which was introduced by 810387f59696: stream clone
> of a repo with directory named *.d failed: server raises exception
> "IOError: [Errno 2] No such file or directory:
> /tmp/test/.hg/store/data/foo.d.hg.hg/foo".)

Not entirely clear to me what's going on in your fix. What happens in
this matrix?

            old client  new client
old server   breaks          ?
new server      ?         works

If both '?' aren't 'works', then is there anything we can do to fix
that?

-- 
http://selenic.com : development and support for Mercurial and Linux




More information about the Mercurial-devel mailing list