util: fix bad variable use in bytecount introduced by
f0f7f3fab315
acl: perform some computations earlier, so that returned lambda functions are simpler
acl: added some comments to easily identify branch- and path-based verifications
revlog: don't handle long for revision matching
The underlying C code doesn't support indexing by longs, there are no
legitimate reasons to use a long, and longs should generally be
converted to ints at a higher level by context's constructor.