Fossil SCM
Merge the experimental export speed enhancement into trunk.
Commit
7aaa2aa4179966cc481ed164c859ad5dc6752ccc
Parent
722d7cac97d5a67…
1 file changed
+2
-1
+2
-1
| --- src/export.c | ||
| +++ src/export.c | ||
| @@ -180,15 +180,16 @@ | ||
| 180 | 180 | if( fid==0 ) continue; |
| 181 | 181 | if( pFile->zPerm && strstr(pFile->zPerm,"x") ) zPerm = "100755"; |
| 182 | 182 | if( !bag_find(&blobs, fid) ) continue; |
| 183 | 183 | printf("M %s :%d %s\n", zPerm, fid, pFile->zName); |
| 184 | 184 | } |
| 185 | - manifest_destroy(p); | |
| 185 | + manifest_cache_insert(p); | |
| 186 | 186 | printf("\n"); |
| 187 | 187 | } |
| 188 | 188 | db_finalize(&q); |
| 189 | 189 | bag_clear(&blobs); |
| 190 | + manifest_cache_clear(); | |
| 190 | 191 | |
| 191 | 192 | |
| 192 | 193 | /* Output tags */ |
| 193 | 194 | db_prepare(&q, |
| 194 | 195 | "SELECT tagname, rid, strftime('%%s',mtime)" |
| 195 | 196 |
| --- src/export.c | |
| +++ src/export.c | |
| @@ -180,15 +180,16 @@ | |
| 180 | if( fid==0 ) continue; |
| 181 | if( pFile->zPerm && strstr(pFile->zPerm,"x") ) zPerm = "100755"; |
| 182 | if( !bag_find(&blobs, fid) ) continue; |
| 183 | printf("M %s :%d %s\n", zPerm, fid, pFile->zName); |
| 184 | } |
| 185 | manifest_destroy(p); |
| 186 | printf("\n"); |
| 187 | } |
| 188 | db_finalize(&q); |
| 189 | bag_clear(&blobs); |
| 190 | |
| 191 | |
| 192 | /* Output tags */ |
| 193 | db_prepare(&q, |
| 194 | "SELECT tagname, rid, strftime('%%s',mtime)" |
| 195 |
| --- src/export.c | |
| +++ src/export.c | |
| @@ -180,15 +180,16 @@ | |
| 180 | if( fid==0 ) continue; |
| 181 | if( pFile->zPerm && strstr(pFile->zPerm,"x") ) zPerm = "100755"; |
| 182 | if( !bag_find(&blobs, fid) ) continue; |
| 183 | printf("M %s :%d %s\n", zPerm, fid, pFile->zName); |
| 184 | } |
| 185 | manifest_cache_insert(p); |
| 186 | printf("\n"); |
| 187 | } |
| 188 | db_finalize(&q); |
| 189 | bag_clear(&blobs); |
| 190 | manifest_cache_clear(); |
| 191 | |
| 192 | |
| 193 | /* Output tags */ |
| 194 | db_prepare(&q, |
| 195 | "SELECT tagname, rid, strftime('%%s',mtime)" |
| 196 |