extract: parse 'branch' using the generic mechanism
Parsing 'branch' is very simple and a good first test.
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