feature or bug?
Matt Mackall
mpm at selenic.com
Tue Jan 15 17:43:58 UTC 2008
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.
More information about the Mercurial
mailing list