Changeset 40 in tracdarcs for tracdarcs/repository.py
- Timestamp:
- 08/09/06 00:03:37 (7 years ago)
- Hash name:
- 20060808220337-05313-bb7127043e9b8bdb16c47399d9891411df3d97d2
- File:
-
- 1 edited
-
tracdarcs/repository.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tracdarcs/repository.py
r37 r40 24 24 CHANGE_EDITED, CHANGE_MOVED_EDITED 25 25 from dbutil import query_nodes_for_revision 26 import ann2ascii27 26 28 27 ''' … … 248 247 data = str(row[0]) 249 248 return StringIO.StringIO( data ) 250 # load the file content from the repo using ann2ascii249 # load the file content from the repo 251 250 c.execute( 'SELECT hash FROM darcs_revisions ' + 252 251 'WHERE rev = %s', (self.rev,) ) 253 252 hash = c.fetchone()[0] 254 annotate = self.__cmd.annotate( hash, self.path ) 255 ann = ann2ascii.parse_annotate( StringIO.StringIO(annotate) ) 256 out = StringIO.StringIO() 257 ann.write( out ) 258 data = out.getvalue() 253 data = self.__cmd.cat( hash, self.path ) 259 254 260 255 # save the file content in the cache
Note: See TracChangeset
for help on using the changeset viewer.