# HG changeset patch # User Steve Borho # Date 2010-05-07 19:07:30 # Node ID 213ca9ffcddb893f318bf1355a8ddbfe32f67fee # Parent 6f4543842795fadc066fa19f26b8c8a2f51acd47 changectx: change diff() to accept keyword opts diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -204,7 +204,7 @@ class changectx(object): def sub(self, path): return subrepo.subrepo(self, path) - def diff(self, ctx2=None, match=None, opts=None): + def diff(self, ctx2=None, match=None, **opts): """Returns a diff generator for the given contexts and matcher""" if ctx2 is None: ctx2 = self.p1()