# HG changeset patch # User Martin von Zweigbergk # Date 1538674735 25200 # 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 -r a38a99c74ad4 -r b6c2543e1dd8 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