checking for a non-existent node (change and file contexts)

Tay Ray Chuan rctay89 at gmail.com
Thu Mar 11 10:33:25 CST 2010


Hi,

(I'm not subscribed to the list; please keep me Cc-ed.)

I am hacking a mercurial transport (hg-git to be exact) and I wish to
know if there's an API method to check for the existence of an
arbitrary SHA-1 node.

What I can currently think of would be to loop through all change
contexts and each change context's file contexts, but this can get
really slow.

-- 
Cheers,
Ray Chuan


More information about the Mercurial-devel mailing list