##// END OF EJS Templates
basectx: add an empty class that will be used as a parent of all contexts...
basectx: add an empty class that will be used as a parent of all contexts At the moment, there is no simple way to check if an object is a context because there is no common parent class. If there were, we could use 'isinstance' everywhere. Simply having memctx inherit from workingctx or changectx would allow the use of 'isinstance' but that could lead to some confusing situations of reading the code since we have three distinct concepts of a context: - changectx represents a changeset *already* in the repo, and is therefore immutable - workingctx represents changes on disk in the working directory - memctx represents changes solely in memory which may or may not be on disk Therefore, I propose refactoring context.py to have all three contexts inherit from a parent class 'basectx'.
Sean Farley -
r19537:6e3e8575 default
Show More
Name Size Modified Last Commit Author
/ mercurial / httpclient
__init__.py Loading ...
_readers.py Loading ...
socketutil.py Loading ...