mercurial/context.py
changeset 19676 103525f36337
parent 19675 84249d49f37c
child 19677 e11415510352
equal deleted inserted replaced
19675:84249d49f37c 19676:103525f36337
   939 
   939 
   940     @propertycache
   940     @propertycache
   941     def _user(self):
   941     def _user(self):
   942         return self._repo.ui.username()
   942         return self._repo.ui.username()
   943 
   943 
       
   944     @propertycache
       
   945     def _date(self):
       
   946         return util.makedate()
       
   947 
   944     def status(self, ignored=False, clean=False, unknown=False):
   948     def status(self, ignored=False, clean=False, unknown=False):
   945         """Explicit status query
   949         """Explicit status query
   946         Unless this method is used to query the working copy status, the
   950         Unless this method is used to query the working copy status, the
   947         _status property will implicitly read the status using its default
   951         _status property will implicitly read the status using its default
   948         arguments."""
   952         arguments."""
   976     def __iter__(self):
   980     def __iter__(self):
   977         d = self._repo.dirstate
   981         d = self._repo.dirstate
   978         for f in d:
   982         for f in d:
   979             if d[f] != 'r':
   983             if d[f] != 'r':
   980                 yield f
   984                 yield f
   981 
       
   982     @propertycache
       
   983     def _date(self):
       
   984         return util.makedate()
       
   985 
   985 
   986     @propertycache
   986     @propertycache
   987     def _parents(self):
   987     def _parents(self):
   988         p = self._repo.dirstate.parents()
   988         p = self._repo.dirstate.parents()
   989         if p[1] == nullid:
   989         if p[1] == nullid: