# HG changeset patch # User Henning Schild # Date 1478954177 -3600 # Node ID e1677cc29da605a0d68d6cd994e9fe485e1ae421 # Parent cff0f59267972a9542c4aae4255160d2b42c1d1e patch: remove unused git parameter from patch.diffstat() Since 628a4a9e411d the parameter is not used anymore. diff -r cff0f5926797 -r e1677cc29da6 hgext/patchbomb.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' diff -r cff0f5926797 -r e1677cc29da6 hgext/shelve.py --- 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): diff -r cff0f5926797 -r e1677cc29da6 mercurial/cmdutil.py --- 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, diff -r cff0f5926797 -r e1677cc29da6 mercurial/patch.py --- 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)