Patchwork [10,of,10] rawdata: register the method for `ifiledata`

login
register
mail settings
Submitter Pierre-Yves David
Date Aug. 7, 2019, 9:30 p.m.
Message ID <798e48124c8f0297f0ee.1565213439@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/41210/
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 1565208169 -7200
#      Wed Aug 07 22:02:49 2019 +0200
# Node ID 798e48124c8f0297f0eeab0277c58f38f88b9284
# Parent  9c998f6ff099877a0e53722a1c35a8e059cb17ee
# EXP-Topic rawdata
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 798e48124c8f
rawdata: register the method for `ifiledata`

The interface have a `revision(..., raw=False)` method so it should get a
`rawdata` one. I am not sure why nothing complained about the lack of it
earlier.

Patch

diff --git a/mercurial/repository.py b/mercurial/repository.py
--- a/mercurial/repository.py
+++ b/mercurial/repository.py
@@ -597,6 +597,10 @@  class ifiledata(interfaceutil.Interface)
         consumers should use ``read()`` to obtain the actual file data.
         """
 
+    def rawdata(node):
+        """Obtain raw data for a node.
+        """
+
     def read(node):
         """Resolve file fulltext data.