mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
context.py: filectxs was using a keyword arg, add it to filectx
This commit is contained in:
parent
d9acb13f0c
commit
fe197b5f4f
@ -51,9 +51,11 @@ class changectx(object):
|
||||
node, flag = self._repo.manifest.find(self.changeset()[0], path)
|
||||
return node
|
||||
|
||||
def filectx(self, path):
|
||||
def filectx(self, path, fileid=None):
|
||||
"""get a file context from this changeset"""
|
||||
return filectx(self._repo, path, fileid=self.filenode(path))
|
||||
if fileid is None:
|
||||
fileid = self.filenode(path)
|
||||
return filectx(self._repo, path, fileid=fileid)
|
||||
|
||||
def filectxs(self):
|
||||
"""generate a file context for each file in this changeset's
|
||||
|
Loading…
Reference in New Issue
Block a user