mercurial/context.py
changeset 12947 4832717aed98
parent 12731 95514b58709d
child 13001 cc4e13c92dfa
equal deleted inserted replaced
12945:99f7dc8def34 12947:4832717aed98
   600         if self._extra['branch'] == '':
   600         if self._extra['branch'] == '':
   601             self._extra['branch'] = 'default'
   601             self._extra['branch'] = 'default'
   602 
   602 
   603     def __str__(self):
   603     def __str__(self):
   604         return str(self._parents[0]) + "+"
   604         return str(self._parents[0]) + "+"
       
   605 
       
   606     def __repr__(self):
       
   607         return "<workingctx %s>" % str(self)
   605 
   608 
   606     def __nonzero__(self):
   609     def __nonzero__(self):
   607         return True
   610         return True
   608 
   611 
   609     def __contains__(self, key):
   612     def __contains__(self, key):
   895         return True
   898         return True
   896 
   899 
   897     def __str__(self):
   900     def __str__(self):
   898         return "%s@%s" % (self.path(), self._changectx)
   901         return "%s@%s" % (self.path(), self._changectx)
   899 
   902 
       
   903     def __repr__(self):
       
   904         return "<workingfilectx %s>" % str(self)
       
   905 
   900     def data(self):
   906     def data(self):
   901         return self._repo.wread(self._path)
   907         return self._repo.wread(self._path)
   902     def renamed(self):
   908     def renamed(self):
   903         rp = self._repo.dirstate.copied(self._path)
   909         rp = self._repo.dirstate.copied(self._path)
   904         if not rp:
   910         if not rp: