json: implement {comparison} template
Similar to {filediff}, we abbreviate some property names to cut down on
string bloat.
frommercurialimportutildefmakedate():return0,0defgetuser():return'bob'# mock the date and user apis so the output is always the samedefuisetup(ui):util.makedate=makedateutil.getuser=getuser