Patchwork [05,of,10] rawdata: implement `rawdata` for `sqlitestore` too

login
register
mail settings
Submitter Pierre-Yves David
Date Aug. 7, 2019, 9:30 p.m.
Message ID <07298d6c4c98ee1f59ab.1565213434@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/41205/
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 1565208112 -7200
#      Wed Aug 07 22:01:52 2019 +0200
# Node ID 07298d6c4c98ee1f59ab1aa563226e8d1f91dbcf
# Parent  b358cc7a35d219848f1366c29610eb46beb91225
# EXP-Topic rawdata
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 07298d6c4c98
rawdata: implement `rawdata` for `sqlitestore` too

This is a different store, it needs it declared.

Patch

diff --git a/hgext/sqlitestore.py b/hgext/sqlitestore.py
--- a/hgext/sqlitestore.py
+++ b/hgext/sqlitestore.py
@@ -549,6 +549,9 @@  class sqlitefilestore(object):
 
         return fulltext
 
+    def rawdata(self, *args, **kwargs):
+        return self.revision(*args, **kwargs)
+
     def read(self, node):
         return storageutil.filtermetadata(self.revision(node))