Show More
@@ -663,7 +663,7 def diffordiffstat(ui, repo, diffopts, n | |||
|
663 | 663 | fp.write(s) |
|
664 | 664 | |
|
665 | 665 | if stat: |
|
666 |
diffopts |
|
|
666 | diffopts = diffopts.copy(context=0) | |
|
667 | 667 | width = 80 |
|
668 | 668 | if not ui.plain(): |
|
669 | 669 | width = util.termwidth() |
@@ -803,10 +803,17 class changeset_printer(object): | |||
|
803 | 803 | matchfn = self.patch |
|
804 | 804 | if matchfn: |
|
805 | 805 | stat = self.diffopts.get('stat') |
|
806 | diff = self.diffopts.get('patch') | |
|
806 | 807 | diffopts = patch.diffopts(self.ui, self.diffopts) |
|
807 | 808 | prev = self.repo.changelog.parents(node)[0] |
|
809 | if stat: | |
|
808 | 810 | diffordiffstat(self.ui, self.repo, diffopts, prev, node, |
|
809 |
match=matchfn, stat= |
|
|
811 | match=matchfn, stat=True) | |
|
812 | if diff: | |
|
813 | if stat: | |
|
814 | self.ui.write("\n") | |
|
815 | diffordiffstat(self.ui, self.repo, diffopts, prev, node, | |
|
816 | match=matchfn, stat=False) | |
|
810 | 817 | self.ui.write("\n") |
|
811 | 818 | |
|
812 | 819 | def _meaningful_parentrevs(self, log, rev): |
General Comments 0
You need to be logged in to leave comments.
Login now