[PATCH 0 of 1 stable 3] accept long as revs

Sune Foldager cryo at cyanite.org
Mon May 21 08:23:02 CDT 2012


Since the index is no longer an array (is there a document about the design of the
new ADT somewhere?), I had to change the C code to make this work. Note that if we
don't take this patch, since some places do accept long, I bet it will fail in the
C code (with the weird message "expected string or Unicode. Got long").

I don't know if this is the 100% most efficient way to do it, someone else might
know the C API better. At least PyLong_AsLong accepts both int and long.

-Sune


More information about the Mercurial-devel mailing list