Mercurial > hg
comparison hgext/notify.py @ 6865:d923a051f84c
Let the notify extension use [diff] options too.
author | Doug Philips <dgou@mac.com> |
---|---|
date | Thu, 07 Aug 2008 09:31:42 +0200 |
parents | e8d447d91cdb |
children | 0ff5d2bbd8b1 |
comparison
equal
deleted
inserted
replaced
6860:6d904eb19c2a | 6865:d923a051f84c |
---|---|
234 | 234 |
235 def diff(self, node, ref): | 235 def diff(self, node, ref): |
236 maxdiff = int(self.ui.config('notify', 'maxdiff', 300)) | 236 maxdiff = int(self.ui.config('notify', 'maxdiff', 300)) |
237 prev = self.repo.changelog.parents(node)[0] | 237 prev = self.repo.changelog.parents(node)[0] |
238 self.ui.pushbuffer() | 238 self.ui.pushbuffer() |
239 patch.diff(self.repo, prev, ref) | 239 patch.diff(self.repo, prev, ref, opts=patch.diffopts(self.ui)) |
240 difflines = self.ui.popbuffer().splitlines(1) | 240 difflines = self.ui.popbuffer().splitlines(1) |
241 if self.ui.configbool('notify', 'diffstat', True): | 241 if self.ui.configbool('notify', 'diffstat', True): |
242 s = patch.diffstat(difflines) | 242 s = patch.diffstat(difflines) |
243 # s may be nil, don't include the header if it is | 243 # s may be nil, don't include the header if it is |
244 if s: | 244 if s: |