Show More
@@ -481,15 +481,22 b' class queue(object):' | |||
|
481 | 481 | opts['unified'] = '0' |
|
482 | 482 | |
|
483 | 483 | m = cmdutil.match(repo, files, opts) |
|
484 | chunks = patch.diff(repo, node1, node2, m, changes, diffopts) | |
|
485 |
write = |
|
|
484 | if fp is None: | |
|
485 | write = repo.ui.write | |
|
486 | else: | |
|
487 | def write(s, **kw): | |
|
488 | fp.write(s) | |
|
486 | 489 | if stat: |
|
487 | 490 | width = self.ui.interactive() and util.termwidth() or 80 |
|
488 | write(patch.diffstat(util.iterlines(chunks), width=width, | |
|
489 | git=diffopts.git)) | |
|
491 | chunks = patch.diff(repo, node1, node2, m, changes, diffopts) | |
|
492 | for chunk, label in patch.diffstatui(util.iterlines(chunks), | |
|
493 | width=width, | |
|
494 | git=diffopts.git): | |
|
495 | write(chunk, label=label) | |
|
490 | 496 | else: |
|
491 | for chunk in chunks: | |
|
492 | write(chunk) | |
|
497 | for chunk, label in patch.diffui(repo, node1, node2, m, changes, | |
|
498 | diffopts): | |
|
499 | write(chunk, label=label) | |
|
493 | 500 | |
|
494 | 501 | def mergeone(self, repo, mergeq, head, patch, rev, diffopts): |
|
495 | 502 | # first try just applying the patch |
General Comments 0
You need to be logged in to leave comments.
Login now