[PATCH 09 of 10] rawdata: implement the method for `unionrepo` too

Pierre-Yves David pierre-yves.david at ens-lyon.org
Wed Aug 7 17:30:38 EDT 2019


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at octobus.net>
# Date 1565205468 -7200
#      Wed Aug 07 21:17:48 2019 +0200
# Node ID 9c998f6ff099877a0e53722a1c35a8e059cb17ee
# Parent  cfad2ef930798575f52a6a20313b0b57a5b16e1f
# EXP-Topic rawdata
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 9c998f6ff099
rawdata: implement the method for `unionrepo` too

This is required for all implementations.

diff --git a/mercurial/unionrepo.py b/mercurial/unionrepo.py
--- a/mercurial/unionrepo.py
+++ b/mercurial/unionrepo.py
@@ -116,6 +116,9 @@ class unionrevlog(revlog.revlog):
             # already cached
         return text
 
+    def rawdata(self, nodeorrev, _df=None):
+        return self.revision(nodeorrev, _df=_df, raw=True)
+
     def baserevision(self, nodeorrev):
         # Revlog subclasses may override 'revision' method to modify format of
         # content retrieved from revlog. To use unionrevlog with such class one


More information about the Mercurial-devel mailing list