cmdutil: use ctx.rev() instead of int(ctx)
Continuing to wean off basectx.__int__.
Differential Revision: https://phab.mercurial-scm.org/D2424
Greg Ward, author of the original bfiles extensionNa'Tosha Bard of Unity TechnologiesFog Creek SoftwareSpecial thanks to the University of Toronto and the UCOSP program