mercurial/context.py
changeset 19677 e11415510352
parent 19676 103525f36337
child 19678 897c2dbc0256
equal deleted inserted replaced
19676:103525f36337 19677:e11415510352
   961         self._status = stat[:4]
   961         self._status = stat[:4]
   962         return stat
   962         return stat
   963 
   963 
   964     def user(self):
   964     def user(self):
   965         return self._user or self._repo.ui.username()
   965         return self._user or self._repo.ui.username()
       
   966     def date(self):
       
   967         return self._date
   966 
   968 
   967 class workingctx(commitablectx):
   969 class workingctx(commitablectx):
   968     """A workingctx object makes access to data related to
   970     """A workingctx object makes access to data related to
   969     the current working directory convenient.
   971     the current working directory convenient.
   970     date - any valid date string or (unixtime, offset), or None.
   972     date - any valid date string or (unixtime, offset), or None.
   988         p = self._repo.dirstate.parents()
   990         p = self._repo.dirstate.parents()
   989         if p[1] == nullid:
   991         if p[1] == nullid:
   990             p = p[:-1]
   992             p = p[:-1]
   991         return [changectx(self._repo, x) for x in p]
   993         return [changectx(self._repo, x) for x in p]
   992 
   994 
   993     def date(self):
       
   994         return self._date
       
   995     def description(self):
   995     def description(self):
   996         return self._text
   996         return self._text
   997     def files(self):
   997     def files(self):
   998         return sorted(self._status[0] + self._status[1] + self._status[2])
   998         return sorted(self._status[0] + self._status[1] + self._status[2])
   999 
   999