comparison mercurial/commands.py @ 38540:1e25782a7583

grep: add support for log-like template keywords and functions
author Yuya Nishihara <yuya@tcha.org>
date Sun, 01 Jul 2018 22:02:53 +0900
parents 39db5a01cd53
children ece3f2d0bbd9
comparison
equal deleted inserted replaced
38539:b1bbff1dd99a 38540:1e25782a7583
2632 iter = difflinestates(pstates, states) 2632 iter = difflinestates(pstates, states)
2633 else: 2633 else:
2634 iter = [('', l) for l in states] 2634 iter = [('', l) for l in states]
2635 for change, l in iter: 2635 for change, l in iter:
2636 fm.startitem() 2636 fm.startitem()
2637 fm.context(ctx=ctx)
2637 fm.data(node=fm.hexfunc(scmutil.binnode(ctx))) 2638 fm.data(node=fm.hexfunc(scmutil.binnode(ctx)))
2638 2639
2639 cols = [ 2640 cols = [
2640 ('filename', fn, True), 2641 ('filename', fn, True),
2641 ('rev', rev, True), 2642 ('rev', rev, True),