Mercurial > hg
comparison mercurial/context.py @ 21688:cc677803bad4
memfilectx: inherit from committablefilectx
This patch marks the beginning of having memfilectx become a full-fledged file
contex so that we can handle diffing and merging.
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Thu, 15 Aug 2013 15:23:36 -0500 |
parents | da67d855a8a2 |
children | 503bb3af70fe |
comparison
equal
deleted
inserted
replaced
21687:da67d855a8a2 | 21688:cc677803bad4 |
---|---|
1584 | 1584 |
1585 def commit(self): | 1585 def commit(self): |
1586 """commit context to the repo""" | 1586 """commit context to the repo""" |
1587 return self._repo.commitctx(self) | 1587 return self._repo.commitctx(self) |
1588 | 1588 |
1589 class memfilectx(object): | 1589 class memfilectx(committablefilectx): |
1590 """memfilectx represents an in-memory file to commit. | 1590 """memfilectx represents an in-memory file to commit. |
1591 | 1591 |
1592 See memctx for more details. | 1592 See memctx for more details. |
1593 """ | 1593 """ |
1594 def __init__(self, path, data, islink=False, isexec=False, copied=None): | 1594 def __init__(self, path, data, islink=False, isexec=False, copied=None): |