changeset 51007:ccddd2f54013

revlog: document the `rev` method A small docstring does not hurt.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 19 Sep 2023 23:14:36 +0200
parents 6c3798b4597f
children 2f1967ffefb1
files mercurial/revlog.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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: