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