largefiles: avoid match.files() in conditions
See 9789b4a7c595 (match: introduce boolean prefix() method,
2014-10-28) for reasons to avoid match.files() in conditions.
from mercurial import utildef makedate(): return 0, 0def getuser(): return 'bob'# mock the date and user apis so the output is always the samedef uisetup(ui): util.makedate = makedate util.getuser = getuser