99 FROM REPOCOMMITS |
99 FROM REPOCOMMITS |
100 WHERE Node LIKE ? |
100 WHERE Node LIKE ? |
101 ''', (node + '%',)) |
101 ''', (node + '%',)) |
102 |
102 |
103 names = cursor.fetchall() |
103 names = cursor.fetchall() |
104 names = set (zip (*names)[0]) if names else set() |
104 names = list (zip (*names))[0] if names else [] |
105 return [hgpoll.RepositoriesByName[name] for name in names] |
105 return [hgpoll.RepositoriesByName[name] for name in set (names)] |
106 |
106 |
107 def find_commit_by_dateversion (self, dateversion): |
107 def find_commit_by_dateversion (self, dateversion): |
108 cursor = self.db.execute (''' |
108 cursor = self.db.execute (''' |
109 SELECT Node |
109 SELECT Node |
110 FROM COMMITS |
110 FROM COMMITS |