Patchwork [07,of,10] rawdata: implement `rawdata` for `simplestore` too

login
register
mail settings
Submitter Pierre-Yves David
Date Aug. 7, 2019, 9:30 p.m.
Message ID <614e6f874408568cda40.1565213436@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/41209/
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 1565203685 -7200
#      Wed Aug 07 20:48:05 2019 +0200
# Node ID 614e6f874408568cda406299e714b0d711e970be
# Parent  61aefd21e509dac932964c332744f42e7d619546
# EXP-Topic rawdata
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 614e6f874408
rawdata: implement `rawdata` for `simplestore` too

This is needed for all implementation.

Patch

diff --git a/tests/simplestorerepo.py b/tests/simplestorerepo.py
--- a/tests/simplestorerepo.py
+++ b/tests/simplestorerepo.py
@@ -326,6 +326,9 @@  class filestorage(object):
 
         return text
 
+    def rawdata(self, nodeorrev):
+        return self.revision(raw=True)
+
     def read(self, node):
         validatenode(node)