comparison mercurial/cmdutil.py @ 27411:c84a07530040

record: turn on showfunc Always try to give diff context when doing an interactive record
author timeless <timeless@mozdev.org>
date Thu, 17 Dec 2015 14:38:22 +0000
parents 4eeef1b2d689
children 9d04b4da6773
comparison
equal deleted inserted replaced
27410:41127e875758 27411:c84a07530040
114 114
115 status = repo.status(match=match) 115 status = repo.status(match=match)
116 diffopts = patch.difffeatureopts(ui, opts=opts, whitespace=True) 116 diffopts = patch.difffeatureopts(ui, opts=opts, whitespace=True)
117 diffopts.nodates = True 117 diffopts.nodates = True
118 diffopts.git = True 118 diffopts.git = True
119 diffopts.showfunc = True
119 originaldiff = patch.diff(repo, changes=status, opts=diffopts) 120 originaldiff = patch.diff(repo, changes=status, opts=diffopts)
120 originalchunks = patch.parsepatch(originaldiff) 121 originalchunks = patch.parsepatch(originaldiff)
121 122
122 # 1. filter patch, so we have intending-to apply subset of it 123 # 1. filter patch, so we have intending-to apply subset of it
123 try: 124 try: