mercurial/context.py
changeset 19674 ec5b2e2b947f
parent 19673 53a3a8d38301
child 19675 84249d49f37c
equal deleted inserted replaced
19673:53a3a8d38301 19674:ec5b2e2b947f
   935 
   935 
   936     @propertycache
   936     @propertycache
   937     def _status(self):
   937     def _status(self):
   938         return self._repo.status()[:4]
   938         return self._repo.status()[:4]
   939 
   939 
       
   940     @propertycache
       
   941     def _user(self):
       
   942         return self._repo.ui.username()
       
   943 
   940     def status(self, ignored=False, clean=False, unknown=False):
   944     def status(self, ignored=False, clean=False, unknown=False):
   941         """Explicit status query
   945         """Explicit status query
   942         Unless this method is used to query the working copy status, the
   946         Unless this method is used to query the working copy status, the
   943         _status property will implicitly read the status using its default
   947         _status property will implicitly read the status using its default
   944         arguments."""
   948         arguments."""
   969     def __iter__(self):
   973     def __iter__(self):
   970         d = self._repo.dirstate
   974         d = self._repo.dirstate
   971         for f in d:
   975         for f in d:
   972             if d[f] != 'r':
   976             if d[f] != 'r':
   973                 yield f
   977                 yield f
   974 
       
   975     @propertycache
       
   976     def _user(self):
       
   977         return self._repo.ui.username()
       
   978 
   978 
   979     @propertycache
   979     @propertycache
   980     def _date(self):
   980     def _date(self):
   981         return util.makedate()
   981         return util.makedate()
   982 
   982