patch: remove unused git parameter from patch.diffstat()
authorHenning Schild <henning@hennsch.de>
Sat, 12 Nov 2016 13:36:17 +0100
changeset 30407 e1677cc29da6
parent 30406 cff0f5926797
child 30408 ce9a3033c118
patch: remove unused git parameter from patch.diffstat() Since 628a4a9e411d the parameter is not used anymore.
hgext/patchbomb.py
hgext/shelve.py
mercurial/cmdutil.py
mercurial/patch.py
--- a/hgext/patchbomb.py	Thu Sep 29 10:16:34 2016 +0200
+++ b/hgext/patchbomb.py	Sat Nov 12 13:36:17 2016 +0100
@@ -166,7 +166,7 @@
         while patchlines and not patchlines[0].strip():
             patchlines.pop(0)
 
-    ds = patch.diffstat(patchlines, git=opts.get('git'))
+    ds = patch.diffstat(patchlines)
     if opts.get('diffstat'):
         body += ds + '\n\n'
 
--- a/hgext/shelve.py	Thu Sep 29 10:16:34 2016 +0200
+++ b/hgext/shelve.py	Sat Nov 12 13:36:17 2016 +0100
@@ -505,8 +505,7 @@
                 for chunk, label in patch.difflabel(iter, difflines):
                     ui.write(chunk, label=label)
             if opts['stat']:
-                for chunk, label in patch.diffstatui(difflines, width=width,
-                                                     git=True):
+                for chunk, label in patch.diffstatui(difflines, width=width):
                     ui.write(chunk, label=label)
 
 def singlepatchcmds(ui, repo, pats, opts, subcommand):
--- a/mercurial/cmdutil.py	Thu Sep 29 10:16:34 2016 +0200
+++ b/mercurial/cmdutil.py	Sat Nov 12 13:36:17 2016 +0100
@@ -1202,8 +1202,7 @@
         chunks = patch.diff(repo, node1, node2, match, changes, diffopts,
                             prefix=prefix, relroot=relroot)
         for chunk, label in patch.diffstatui(util.iterlines(chunks),
-                                             width=width,
-                                             git=diffopts.git):
+                                             width=width):
             write(chunk, label=label)
     else:
         for chunk, label in patch.diffui(repo, node1, node2, match,
--- a/mercurial/patch.py	Thu Sep 29 10:16:34 2016 +0200
+++ b/mercurial/patch.py	Sat Nov 12 13:36:17 2016 +0100
@@ -2550,7 +2550,7 @@
     addresult()
     return results
 
-def diffstat(lines, width=80, git=False):
+def diffstat(lines, width=80):
     output = []
     stats = diffstatdata(lines)
     maxname, maxtotal, totaladds, totalremoves, hasbinary = diffstatsum(stats)