feature or bug?
guo tang
tangguo77 at gmail.com
Tue Jan 15 11:59:48 CST 2008
Could you tell me who is using file name decoding?
I can see streamclone.py stream_out is using it.
streamclone::stream_out is only used by sshserver::do_stream_out()
I guess that is some one typed "hg serve --stdio", then typed "stream_out"
into stdin.
But I cannot find out in the python sources who is consuming the unencoded
file names from
steam_out. Is it used in a typical scenario? Or just a back door for
debugging?
Thanks,
On Jan 15, 2008 9:43 AM, Matt Mackall <mpm at selenic.com> wrote:
>
> On Tue, 2008-01-15 at 09:14 -0800, guo tang wrote:
> > Matt,
> >
> > In Issue 839, jglick is proposing using SHA1 as part of the file name
> > if current file name encoding method creating a file name
> > too long to be handled by OS. The file name to SHA1 encoding is very
> > straightforward. The file name decoding requires reading
> > a dictionary file.
> >
> > I am wondering do we really need the file name decoding function? It
> > seems the decoding is only used in
> > /hg/mercurial/streamclone.py, stream_out() function. Can we just
> > return raw file name there?
>
> Probably not without breaking the wire protocol. What we can do is
> generate the unencoded pathnames directly from reading the changelog.
> Unfortunately, that's not as fast as simply scanning the directory tree.
>
> --
> Mathematics is the supreme nostalgia of our time.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://selenic.com/pipermail/mercurial/attachments/20080115/31f5dcf7/attachment.htm
More information about the Mercurial
mailing list