# HG changeset patch # User Pierre-Yves David # Date 2019-08-30 16:08:35 # Node ID 3e2520acf17b4094148ae14d30c031bdacc793df # Parent 62a39c868b208979628504f143a2b59bae84bbd6 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. diff --git a/mercurial/unionrepo.py b/mercurial/unionrepo.py --- a/mercurial/unionrepo.py +++ b/mercurial/unionrepo.py @@ -91,7 +91,7 @@ class unionrevlog(revlog.revlog): 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):