def diffstatgen(ctx): '''Generator function that provides the diffstat data.''' stats = patch.diffstatdata(util.iterlines(ctx.diff())) maxname, maxtotal, addtotal, removetotal, binary = patch.diffstatsum(stats) while True: yield stats, maxname, maxtotal, addtotal, removetotal, binary
def diffstatgen(ctx, basectx): '''Generator function that provides the diffstat data.''' stats = patch.diffstatdata(util.iterlines(ctx.diff(basectx))) maxname, maxtotal, addtotal, removetotal, binary = patch.diffstatsum(stats) while True: yield stats, maxname, maxtotal, addtotal, removetotal, binary
def getShortStat(obj, node1, node2): ## SLOW FIXME repo = obj.repo ## if not node1 ## FIXME stats = diffstatdata(iterlines(diff( repo, str(node1), str(node2), ))) maxname, maxtotal, insertions, deletions, hasbinary = diffstatsum(stats) return len(stats), insertions, deletions
def getShortStat(obj, node1, node2):## SLOW FIXME repo = obj.repo ## if not node1 ## FIXME stats = diffstatdata( iterlines( diff( repo, str(node1), str(node2), ) ) ) maxname, maxtotal, insertions, deletions, hasbinary = diffstatsum(stats) return len(stats), insertions, deletions