Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 40718:5bcf264bb1a0
localrepo: correct docstring of filectx()
The same reason as b6c2543e1dd8. It can't be any changeset specifiers but
revision number.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 25 Nov 2018 22:39:54 +0900 |
parents | 473510bf0575 |
children | c93d046d4300 |
comparison
equal
deleted
inserted
replaced
40717:92c574684f75 | 40718:5bcf264bb1a0 |
---|---|
1585 for f, s in sorted(self.dirstate.copies().items()): | 1585 for f, s in sorted(self.dirstate.copies().items()): |
1586 if f not in pctx and s not in pctx: | 1586 if f not in pctx and s not in pctx: |
1587 self.dirstate.copy(None, f) | 1587 self.dirstate.copy(None, f) |
1588 | 1588 |
1589 def filectx(self, path, changeid=None, fileid=None, changectx=None): | 1589 def filectx(self, path, changeid=None, fileid=None, changectx=None): |
1590 """changeid can be a changeset revision, node, or tag. | 1590 """changeid must be a changeset revision, if specified. |
1591 fileid can be a file revision or node.""" | 1591 fileid can be a file revision or node.""" |
1592 return context.filectx(self, path, changeid, fileid, | 1592 return context.filectx(self, path, changeid, fileid, |
1593 changectx=changectx) | 1593 changectx=changectx) |
1594 | 1594 |
1595 def getcwd(self): | 1595 def getcwd(self): |