hgpoll.py

changeset 122
f899af683bbe
parent 121
ac07779f788d
child 123
aeb0d0788869
equal deleted inserted replaced
121:ac07779f788d 122:f899af683bbe
13 def __init__(self): 13 def __init__(self):
14 needNew = not os.path.isfile ('commits.db') 14 needNew = not os.path.isfile ('commits.db')
15 self.db = sqlite3.connect ('commits.db') 15 self.db = sqlite3.connect ('commits.db')
16 16
17 if needNew: 17 if needNew:
18 self.createNew() 18 self.create_new()
19 19
20 def create_new (self): 20 def create_new (self):
21 self.db.executescript (''' 21 self.db.executescript ('''
22 DROP TABLE IF EXISTS COMMITS; 22 DROP TABLE IF EXISTS COMMITS;
23 DROP TABLE IF EXISTS REPOS; 23 DROP TABLE IF EXISTS REPOS;

mercurial