##// END OF EJS Templates
basectx: remove unnecessary check of instance...
Sean Farley -
r19568:f58235d8 default
parent child Browse files
Show More
@@ -132,7 +132,7 b' class basectx(object):'
132 """Returns a diff generator for the given contexts and matcher"""
132 """Returns a diff generator for the given contexts and matcher"""
133 if ctx2 is None:
133 if ctx2 is None:
134 ctx2 = self.p1()
134 ctx2 = self.p1()
135 if ctx2 is not None and not isinstance(ctx2, changectx):
135 if ctx2 is not None:
136 ctx2 = self._repo[ctx2]
136 ctx2 = self._repo[ctx2]
137 diffopts = patch.diffopts(self._repo.ui, opts)
137 diffopts = patch.diffopts(self._repo.ui, opts)
138 return patch.diff(self._repo, ctx2.node(), self.node(),
138 return patch.diff(self._repo, ctx2.node(), self.node(),
General Comments 0
You need to be logged in to leave comments. Login now