revlog: document the `rev` method
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 19 Sep 2023 23:14:36 +0200
changeset 51007 ccddd2f54013
parent 51006 6c3798b4597f
child 51008 2f1967ffefb1
revlog: document the `rev` method A small docstring does not hurt.
mercurial/revlog.py
--- a/mercurial/revlog.py	Tue Sep 19 23:14:01 2023 +0200
+++ b/mercurial/revlog.py	Tue Sep 19 23:14:36 2023 +0200
@@ -941,6 +941,7 @@
                 self.index.update_nodemap_data(*nodemap_data)
 
     def rev(self, node):
+        """return the revision number associated with a <nodeid>"""
         try:
             return self.index.rev(node)
         except TypeError: