Changeset 1573 in tailor for vcpx/repository/darcs/source.py


Ignore:
Timestamp:
05/29/08 23:45:00 (5 years ago)
Author:
lele@…
Hash name:
20080529214500-97f81-198d42f97c4935ba08c54cecf6fb977514e6006e
Message:

Compare also the darcs_hash attribute

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/repository/darcs/source.py

    r1571 r1573  
    4040            for e in entries: 
    4141                self.addEntry(e, revision) 
     42 
     43    def __eq__(self, other): 
     44        return (self.revision == other.revision and 
     45                self.date == other.date and 
     46                self.author == other.author and 
     47                self.darcs_hash == getattr(other, 'darcs_hash', None)) 
     48 
     49    def __ne__(self, other): 
     50        return (self.revision <> other.revision or 
     51                self.date <> other.date or 
     52                self.author <> other.author or 
     53                self.darcs_hash <> getattr(other, 'darcs_hash', None)) 
    4254 
    4355    def addEntry(self, entry, revision): 
Note: See TracChangeset for help on using the changeset viewer.