Show More
@@ -935,12 +935,16 b' class memctx(object):' | |||||
935 | """get a file context from the working directory""" |
|
935 | """get a file context from the working directory""" | |
936 | return self._filectxfn(self._repo, self, path) |
|
936 | return self._filectxfn(self._repo, self, path) | |
937 |
|
937 | |||
|
938 | def commit(self): | |||
|
939 | """commit context to the repo""" | |||
|
940 | return self._repo.commitctx(self) | |||
|
941 | ||||
938 | class memfilectx(object): |
|
942 | class memfilectx(object): | |
939 | """memfilectx represents an in-memory file to commit. |
|
943 | """memfilectx represents an in-memory file to commit. | |
940 |
|
944 | |||
941 | See memctx for more details. |
|
945 | See memctx for more details. | |
942 | """ |
|
946 | """ | |
943 | def __init__(self, path, data, islink, isexec, copied): |
|
947 | def __init__(self, path, data, islink=False, isexec=False, copied=None): | |
944 | """ |
|
948 | """ | |
945 | path is the normalized file path relative to repository root. |
|
949 | path is the normalized file path relative to repository root. | |
946 | data is the file content as a string. |
|
950 | data is the file content as a string. |
General Comments 0
You need to be logged in to leave comments.
Login now