Mercurial > public > mercurial-scm > hg
comparison mercurial/cmdutil.py @ 23691:e41bcb019633
cmdutil.changeset_printer: explicitly honor all diffopts
This is used in hg log -p so the output is expected to be the same as that of
hg diff.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Fri, 21 Nov 2014 16:01:55 -0800 |
parents | 164915e8ef7b |
children | b9d06fa10ef2 |
comparison
equal
deleted
inserted
replaced
23690:de5c76aaeaf4 | 23691:e41bcb019633 |
---|---|
989 if not matchfn: | 989 if not matchfn: |
990 matchfn = self.matchfn | 990 matchfn = self.matchfn |
991 if matchfn: | 991 if matchfn: |
992 stat = self.diffopts.get('stat') | 992 stat = self.diffopts.get('stat') |
993 diff = self.diffopts.get('patch') | 993 diff = self.diffopts.get('patch') |
994 diffopts = patch.diffopts(self.ui, self.diffopts) | 994 diffopts = patch.diffallopts(self.ui, self.diffopts) |
995 prev = self.repo.changelog.parents(node)[0] | 995 prev = self.repo.changelog.parents(node)[0] |
996 if stat: | 996 if stat: |
997 diffordiffstat(self.ui, self.repo, diffopts, prev, node, | 997 diffordiffstat(self.ui, self.repo, diffopts, prev, node, |
998 match=matchfn, stat=True) | 998 match=matchfn, stat=True) |
999 if diff: | 999 if diff: |