comparison mercurial/context.py @ 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 48a0ce67d67a
comparison
equal deleted inserted replaced
40062:a38a99c74ad4 40063:b6c2543e1dd8
907 class filectx(basefilectx): 907 class filectx(basefilectx):
908 """A filecontext object makes access to data related to a particular 908 """A filecontext object makes access to data related to a particular
909 filerevision convenient.""" 909 filerevision convenient."""
910 def __init__(self, repo, path, changeid=None, fileid=None, 910 def __init__(self, repo, path, changeid=None, fileid=None,
911 filelog=None, changectx=None): 911 filelog=None, changectx=None):
912 """changeid can be a changeset revision, node, or tag. 912 """changeid must be a revision number, if specified.
913 fileid can be a file revision or node.""" 913 fileid can be a file revision or node."""
914 self._repo = repo 914 self._repo = repo
915 self._path = path 915 self._path = path
916 916
917 assert (changeid is not None 917 assert (changeid is not None