mercurial/context.py
changeset 3238 d865390c1781
parent 3237 931288cf58a7
child 3239 6d98149d70fe
equal deleted inserted replaced
3237:931288cf58a7 3238:d865390c1781
    34 
    34 
    35     def __str__(self):
    35     def __str__(self):
    36         return short(self.node())
    36         return short(self.node())
    37 
    37 
    38     def __repr__(self):
    38     def __repr__(self):
    39         return "<changectx %s>" % short(self.node())
    39         return "<changectx %s>" % str(self)
    40 
    40 
    41     def __eq__(self, other):
    41     def __eq__(self, other):
    42         return self._rev == other._rev
    42         return self._rev == other._rev
    43 
    43 
    44     def __nonzero__(self):
    44     def __nonzero__(self):
   152 
   152 
   153     def __str__(self):
   153     def __str__(self):
   154         return "%s@%s" % (self.path(), short(self.node()))
   154         return "%s@%s" % (self.path(), short(self.node()))
   155 
   155 
   156     def __repr__(self):
   156     def __repr__(self):
   157         return "<filectx %s@%s>" % (self.path(), short(self.node()))
   157         return "<filectx %s>" % str(self)
   158 
   158 
   159     def __eq__(self, other):
   159     def __eq__(self, other):
   160         return self._path == other._path and self._changeid == other._changeid
   160         return self._path == other._path and self._changeid == other._changeid
   161 
   161 
   162     def filectx(self, fileid):
   162     def filectx(self, fileid):