# HG changeset patch # User Pierre-Yves David # Date 2023-09-19 21:14:36 # Node ID ccddd2f540133a2cbcd30b55ee0dbb139a8a4a5a # Parent 6c3798b4597fd72823b32fc307329c3ac00cc40b revlog: document the `rev` method A small docstring does not hurt. diff --git a/mercurial/revlog.py b/mercurial/revlog.py --- a/mercurial/revlog.py +++ b/mercurial/revlog.py @@ -941,6 +941,7 @@ class revlog: self.index.update_nodemap_data(*nodemap_data) def rev(self, node): + """return the revision number associated with a """ try: return self.index.rev(node) except TypeError: