diff --git a/kallithea/lib/vcs/backends/base.py b/kallithea/lib/vcs/backends/base.py --- a/kallithea/lib/vcs/backends/base.py +++ b/kallithea/lib/vcs/backends/base.py @@ -374,6 +374,8 @@ class BaseChangeset(object): return u'%s:%s' % (self.revision, self.short_id) def __eq__(self, other): + if type(self) is not type(other): + return False return self.raw_id == other.raw_id def __json__(self, with_file_list=False): diff --git a/kallithea/lib/vcs/nodes.py b/kallithea/lib/vcs/nodes.py --- a/kallithea/lib/vcs/nodes.py +++ b/kallithea/lib/vcs/nodes.py @@ -144,6 +144,8 @@ class Node(object): kind = property(_get_kind, _set_kind) def __eq__(self, other): + if type(self) is not type(other): + return False if self._kind != other._kind: return False if self.path != other.path: