##// END OF EJS Templates
commitablectx: move __nonzero__ from workingctx
Sean Farley -
r19667:40040e40 default
parent child Browse files
Show More
@@ -859,6 +859,9 b' class commitablectx(basectx):'
859 def __str__(self):
859 def __str__(self):
860 return str(self._parents[0]) + "+"
860 return str(self._parents[0]) + "+"
861
861
862 def __nonzero__(self):
863 return True
864
862 class workingctx(commitablectx):
865 class workingctx(commitablectx):
863 """A workingctx object makes access to data related to
866 """A workingctx object makes access to data related to
864 the current working directory convenient.
867 the current working directory convenient.
@@ -872,9 +875,6 b' class workingctx(commitablectx):'
872 changes=None):
875 changes=None):
873 super(workingctx, self).__init__(repo, text, user, date, extra, changes)
876 super(workingctx, self).__init__(repo, text, user, date, extra, changes)
874
877
875 def __nonzero__(self):
876 return True
877
878 def __contains__(self, key):
878 def __contains__(self, key):
879 return self._repo.dirstate[key] not in "?r"
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