mercurial/upgrade.py
changeset 31902 6557f0d4ab8e
parent 31901 9bdedb050d8d
child 31903 fa1088de2119
equal deleted inserted replaced
31901:9bdedb050d8d 31902:6557f0d4ab8e
   135         self.description = description
   135         self.description = description
   136         self.upgrademessage = upgrademessage
   136         self.upgrademessage = upgrademessage
   137 
   137 
   138         for k, v in kwargs.items():
   138         for k, v in kwargs.items():
   139             setattr(self, k, v)
   139             setattr(self, k, v)
       
   140 
       
   141     def __eq__(self, other):
       
   142         if not isinstance(other, improvement):
       
   143             # This is what python tell use to do
       
   144             return NotImplemented
       
   145         return self.name == other.name
   140 
   146 
   141 def finddeficiencies(repo):
   147 def finddeficiencies(repo):
   142     """returns a list of deficiencies that the repo suffer from"""
   148     """returns a list of deficiencies that the repo suffer from"""
   143     newreporeqs = localrepo.newreporequirements(repo)
   149     newreporeqs = localrepo.newreporequirements(repo)
   144 
   150