Source

repoman-ext / diff.py

Full commit
from mercurial.commands import diff as diff_

def diff(ui, f, **opts):
    for mod in f:
        ui.write_module_header(mod)
        pats = ()
        diff_(ui, f[mod], *pats, **opts)

cmdtable = {
        'diff': (diff, [], [
            ('c', 'change', '', '')
            ], 'perform a diff for each module')
        }