hgdb.py

changeset 154
df862cca1773
parent 146
c17b82b1f573
equal deleted inserted replaced
153:497b7290977d 154:df862cca1773
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

mercurial