unionrepo: fix `revdiff` implementation to use `rawdata`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 30 Aug 2019 18:08:35 +0200
changeset 42826 3e2520acf17b
parent 42825 62a39c868b20
child 42827 a61a8f78da28
unionrepo: fix `revdiff` implementation to use `rawdata` The parent code is using rawdata so we should use it here. Before this change, union repo was probably broken with some flag processors.
mercurial/unionrepo.py
--- a/mercurial/unionrepo.py	Fri Aug 30 18:05:24 2019 +0200
+++ b/mercurial/unionrepo.py	Fri Aug 30 18:08:35 2019 +0200
@@ -91,7 +91,7 @@
         elif rev1 <= self.repotiprev and rev2 <= self.repotiprev:
             return self.baserevdiff(rev1, rev2)
 
-        return mdiff.textdiff(self.revision(rev1), self.revision(rev2))
+        return mdiff.textdiff(self.rawdata(rev1), self.rawdata(rev2))
 
     def _revisiondata(self, nodeorrev, _df=None, raw=False):
         if isinstance(nodeorrev, int):