changeset 40063:b6c2543e1dd8

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
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 04 Oct 2018 10:38:55 -0700
parents a38a99c74ad4
children f84d7ed3bb35
files mercurial/context.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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