# HG changeset patch # User Martin von Zweigbergk # Date 2018-10-04 17:38:55 # Node ID b6c2543e1dd8637fd51471871eed01368ccfb5cd # Parent a38a99c74ad4041e226df636b6cdf3521910e056 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 diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -909,7 +909,7 @@ class filectx(basefilectx): 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