changeset 38582:7f4bf8110150

context: remove unneeded alias of diffopts
author Yuya Nishihara <yuya@tcha.org>
date Fri, 06 Jul 2018 21:28:02 +0900
parents 6467286b829c
children 4bc96c755c17
files mercurial/context.py
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py	Tue Jun 12 22:01:59 2018 +0900
+++ b/mercurial/context.py	Fri Jul 06 21:28:02 2018 +0900
@@ -302,10 +302,8 @@
             ctx2 = self.p1()
         if ctx2 is not None:
             ctx2 = self._repo[ctx2]
-
-        diffopts = opts
         return patch.diff(self._repo, ctx2, self, match=match, changes=changes,
-                          opts=diffopts, losedatafn=losedatafn, prefix=prefix,
+                          opts=opts, losedatafn=losedatafn, prefix=prefix,
                           relroot=relroot, copy=copy,
                           hunksfilterfn=hunksfilterfn)