Thoughts on file ids

John Arbash Meinel john at arbash-meinel.com
Fri May 6 14:06:43 UTC 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/06/2011 03:42 PM, Martin Pool wrote:
> Yeah, I was thinking of wt access possibly being simpler and faster by
> name, but you're right this will need testing and may well be a problem
> for committed trees.
> 

I think right now any api which is performance sensitive takes a "path"
hint. And I know we make use of it in many places. dirstate itself
prefers to lookup by path, because it stores things by path. If you pass
a file-id it reads all entries and creates a file_id => path mapping.

We do this because WT level operations are, indeed, generally done by
path (status path, commit path, etc.) but repository level operations
are generally done by file-id (log over history of a file, diff, etc.)

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk3EAHMACgkQJdeBCYSNAAP+EgCgq1gUPO4n32BSg+jzH77O1cCR
JWIAn0Sc6M8WLkl3zPNwIMhMAZpGOlFG
=MIkJ
-----END PGP SIGNATURE-----



More information about the bazaar mailing list