Changeset 178 in tracdarcs for tracdarcs/updatedb.py
- Timestamp:
- 05/12/10 18:40:53 (2 years ago)
- Hash name:
- 20100512164053-97f81-e69d930ef723d57a771c19c6a23bc5ed9781b30a
- File:
-
- 1 edited
-
tracdarcs/updatedb.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tracdarcs/updatedb.py
r176 r178 252 252 if path in self.ignore_paths_in_db: 253 253 return None 254 q = query_nodes_for_revision(self.repo_id)255 q += ' AND dnc.path = %s'256 c = self.db.cursor() 257 c.execute(q, (path,))254 q,args = query_nodes_for_revision(self.repo_id, cond='dnc.path = %s') 255 args.append(path) 256 c = self.db.cursor() 257 c.execute(q, args) 258 258 row = c.fetchone() 259 259 if row is None: … … 279 279 out.append(info) 280 280 c = self.db.cursor() 281 q = query_nodes_for_revision(self.repo_id)282 q += ' AND dnc.path LIKE %s'283 c.execute(q, (path+'/%',))281 q,args = query_nodes_for_revision(self.repo_id, cond='dnc.path LIKE %s') 282 args.append(path+'/%') 283 c.execute(q, args) 284 284 for row in c: 285 285 node_id,rev,path,parent_id = row
Note: See TracChangeset
for help on using the changeset viewer.