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

login
register
mail settings
Submitter Pierre-Yves David
Date Aug. 7, 2019, 9:30 p.m.
Message ID <9c998f6ff099877a0e53.1565213438@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/41208/
State Accepted
Headers show

Comments

Pierre-Yves David - Aug. 7, 2019, 9:30 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@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.

Patch

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