Show More
@@ -51,9 +51,11 b' class changectx(object):' | |||||
51 | node, flag = self._repo.manifest.find(self.changeset()[0], path) |
|
51 | node, flag = self._repo.manifest.find(self.changeset()[0], path) | |
52 | return node |
|
52 | return node | |
53 |
|
53 | |||
54 | def filectx(self, path): |
|
54 | def filectx(self, path, fileid=None): | |
55 | """get a file context from this changeset""" |
|
55 | """get a file context from this changeset""" | |
56 | return filectx(self._repo, path, fileid=self.filenode(path)) |
|
56 | if fileid is None: | |
|
57 | fileid = self.filenode(path) | |||
|
58 | return filectx(self._repo, path, fileid=fileid) | |||
57 |
|
59 | |||
58 | def filectxs(self): |
|
60 | def filectxs(self): | |
59 | """generate a file context for each file in this changeset's |
|
61 | """generate a file context for each file in this changeset's |
General Comments 0
You need to be logged in to leave comments.
Login now