hgext/mq.py
changeset 11049 a84f14228b1d
parent 10973 49a07f441496
child 11050 5d35f7d93514
--- a/hgext/mq.py	Mon Apr 26 15:32:23 2010 +0200
+++ b/hgext/mq.py	Wed Apr 07 00:10:54 2010 +0900
@@ -477,8 +477,6 @@
     def printdiff(self, repo, diffopts, node1, node2=None, files=None,
                   fp=None, changes=None, opts={}):
         stat = opts.get('stat')
-        if stat:
-            opts['unified'] = '0'
 
         m = cmdutil.match(repo, files, opts)
         if fp is None:
@@ -487,6 +485,7 @@
             def write(s, **kw):
                 fp.write(s)
         if stat:
+            diffopts.context = 0
             width = self.ui.interactive() and util.termwidth() or 80
             chunks = patch.diff(repo, node1, node2, m, changes, diffopts)
             for chunk, label in patch.diffstatui(util.iterlines(chunks),