Show More
@@ -1301,16 +1301,17 b' class changeset_printer(object):' | |||
|
1301 | 1301 | label='log.summary') |
|
1302 | 1302 | self.ui.write("\n") |
|
1303 | 1303 | |
|
1304 |
self.showpatch(c |
|
|
1305 | ||
|
1306 |
def showpatch(self, |
|
|
1304 | self.showpatch(ctx, matchfn) | |
|
1305 | ||
|
1306 | def showpatch(self, ctx, matchfn): | |
|
1307 | 1307 | if not matchfn: |
|
1308 | 1308 | matchfn = self.matchfn |
|
1309 | 1309 | if matchfn: |
|
1310 | 1310 | stat = self.diffopts.get('stat') |
|
1311 | 1311 | diff = self.diffopts.get('patch') |
|
1312 | 1312 | diffopts = patch.diffallopts(self.ui, self.diffopts) |
|
1313 | prev = self.repo.changelog.parents(node)[0] | |
|
1313 | node = ctx.node() | |
|
1314 | prev = ctx.p1() | |
|
1314 | 1315 | if stat: |
|
1315 | 1316 | diffordiffstat(self.ui, self.repo, diffopts, prev, node, |
|
1316 | 1317 | match=matchfn, stat=True) |
@@ -1492,7 +1493,7 b' class changeset_templater(changeset_prin' | |||
|
1492 | 1493 | # write changeset metadata, then patch if requested |
|
1493 | 1494 | key = self._parts['changeset'] |
|
1494 | 1495 | self.ui.write(templater.stringify(self.t(key, **props))) |
|
1495 |
self.showpatch(ctx |
|
|
1496 | self.showpatch(ctx, matchfn) | |
|
1496 | 1497 | |
|
1497 | 1498 | if self._parts['footer']: |
|
1498 | 1499 | if not self.footer: |
General Comments 0
You need to be logged in to leave comments.
Login now