Why does "hg diff" iterate through . instead of .hg/data?
Mark A. Flacy
mflacy at verizon.net
Sun Jan 6 07:15:55 UTC 2008
On 2008.01.05 18:31, Rob Landley wrote:
>
> Both of these would naturally "just work" if "hg diff" just used
> .hg/data as the source of the files to check (or .hg/00manifest or
> something in the .hg directory) instead of approaching it from the
> other direction.
It would still work if the os.walk() function followed symlinks. (Which
I assume is what they are using to traverse the directory contents.) It
isn't that difficult to have os.walk() effectively follow symlinks, but
you then have to worry about recursive symlinks.
--
Mark A. Flacy
More information about the Mercurial
mailing list