Show More
@@ -859,6 +859,9 b' class commitablectx(basectx):' | |||
|
859 | 859 | def __str__(self): |
|
860 | 860 | return str(self._parents[0]) + "+" |
|
861 | 861 | |
|
862 | def __nonzero__(self): | |
|
863 | return True | |
|
864 | ||
|
862 | 865 | class workingctx(commitablectx): |
|
863 | 866 | """A workingctx object makes access to data related to |
|
864 | 867 | the current working directory convenient. |
@@ -872,9 +875,6 b' class workingctx(commitablectx):' | |||
|
872 | 875 | changes=None): |
|
873 | 876 | super(workingctx, self).__init__(repo, text, user, date, extra, changes) |
|
874 | 877 | |
|
875 | def __nonzero__(self): | |
|
876 | return True | |
|
877 | ||
|
878 | 878 | def __contains__(self, key): |
|
879 | 879 | return self._repo.dirstate[key] not in "?r" |
|
880 | 880 |
General Comments 0
You need to be logged in to leave comments.
Login now