filectx: correct docstring about "changeid"
authorMartin von Zweigbergk <martinvonz@google.com>
Thu, 04 Oct 2018 10:38:55 -0700
changeset 40062 b6c2543e1dd8
parent 40061 a38a99c74ad4
child 40063 f84d7ed3bb35
filectx: correct docstring about "changeid" The changeid argument must be a revnum (basefile.rev() is defined as "return self._changeid"), so fix the lie in the docstring. It seems to have been incorrect for at least 10 years (I didn't check further back). Differential Revision: https://phab.mercurial-scm.org/D4881
mercurial/context.py
--- a/mercurial/context.py	Thu Oct 04 10:30:05 2018 -0700
+++ b/mercurial/context.py	Thu Oct 04 10:38:55 2018 -0700
@@ -909,7 +909,7 @@
        filerevision convenient."""
     def __init__(self, repo, path, changeid=None, fileid=None,
                  filelog=None, changectx=None):
-        """changeid can be a changeset revision, node, or tag.
+        """changeid must be a revision number, if specified.
            fileid can be a file revision or node."""
         self._repo = repo
         self._path = path