##// END OF EJS Templates
notify: print diffstat even if maxline == 0
Benoît Allard -
r6305:e8d447d9 default
parent child Browse files
Show More
@@ -234,8 +234,6 class notifier(object):
234 234
235 235 def diff(self, node, ref):
236 236 maxdiff = int(self.ui.config('notify', 'maxdiff', 300))
237 if maxdiff == 0:
238 return
239 237 prev = self.repo.changelog.parents(node)[0]
240 238 self.ui.pushbuffer()
241 239 patch.diff(self.repo, prev, ref)
@@ -245,6 +243,8 class notifier(object):
245 243 # s may be nil, don't include the header if it is
246 244 if s:
247 245 self.ui.write('\ndiffstat:\n\n%s' % s)
246 if maxdiff == 0:
247 return
248 248 if maxdiff > 0 and len(difflines) > maxdiff:
249 249 self.ui.write(_('\ndiffs (truncated from %d to %d lines):\n\n') %
250 250 (len(difflines), maxdiff))
General Comments 0
You need to be logged in to leave comments. Login now