Changeset 10 in tracdarcs
- Timestamp:
- 02/11/06 12:24:08 (7 years ago)
- Hash name:
- 20060211112408-7a6fb-a16bbbb4f531868380d81f17c46d99a49db63422
- File:
-
- 1 edited
-
tracdarcs/repos.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tracdarcs/repos.py
r9 r10 438 438 if kind == Node.DIRECTORY: 439 439 revdone = {} 440 cursor.execute("SELECT rev,kind,change,base_path" 441 " FROM node_change " 442 "WHERE ((LENGTH(rev)<LENGTH(%s)) OR " 443 " (LENGTH(rev)=LENGTH(%s) AND rev<=%s)) " 444 " AND (path=%s OR path GLOB %s) " 445 "ORDER BY -LENGTH(rev),rev DESC ", 446 (rev, rev, rev, path, path+'/*')) 440 sql = "SELECT path,rev,kind,change,base_path FROM node_change " \ 441 "WHERE ((LENGTH(rev)<LENGTH(%s)) OR " \ 442 " (LENGTH(rev)=LENGTH(%s) AND rev<=%s)) " 443 if path: 444 sql += " AND (path=%s OR path GLOB %s) " 445 sql += "ORDER BY -LENGTH(rev),rev DESC " 446 if path: 447 cursor.execute(sql, (rev, rev, rev, path, path+'/*')) 448 else: 449 cursor.execute(sql, (rev, rev, rev)) 447 450 for row in cursor: 448 451 path, rev, kind, change, base_path = row
Note: See TracChangeset
for help on using the changeset viewer.