diff mercurial/context.py @ 21834:e4d35aa9056c

basectx: pass raw context objects to patch.diff
author Sean Farley <sean.michael.farley@gmail.com>
date Tue, 29 Apr 2014 16:43:59 -0500
parents ee29b0bb1619
children b342c3e2518a
line wrap: on
line diff
--- a/mercurial/context.py	Wed Aug 14 13:10:27 2013 -0500
+++ b/mercurial/context.py	Tue Apr 29 16:43:59 2014 -0500
@@ -256,8 +256,7 @@
         if ctx2 is not None:
             ctx2 = self._repo[ctx2]
         diffopts = patch.diffopts(self._repo.ui, opts)
-        return patch.diff(self._repo, ctx2.node(), self.node(),
-                          match=match, opts=diffopts)
+        return patch.diff(self._repo, ctx2, self, match=match, opts=diffopts)
 
     @propertycache
     def _dirs(self):