flagutil: create a mercurial.revlogutils.flagutil module
The flagprocessings logic is duplicated in 2 extra places, and usually in a less
robust flavor. This is a maintenance nightmare that I would like to see cleaned
up. To do so I am creating a flagutil module to move flag processings related
code and make it easily reusable by other code.