Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Add the --detail option to the test-timewarp-list command. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
e7b6434112be8a00ef00f2a5ca7f1d48 |
| User & Date: | drh 2011-02-11 20:53:12.277 |
Context
|
2011-02-16
| ||
| 15:00 | Work around the seemingly buggy behavior of git-fast-export with regard to tags when doing an import. ... (check-in: 496aacd10e user: drh tags: trunk) | |
|
2011-02-15
| ||
| 07:47 | add custom Makefile with changes to support OpenSSL build on Windows ... (check-in: 5567c81285 user: mistachkin tags: trunk) | |
| 05:18 | Create new branch named "bch" ... (check-in: 8b5556c9fe user: bharder tags: bch) | |
|
2011-02-12
| ||
| 13:38 | This branch contains experimental changes attempting to address complaints that Fossil sometimes overwrites unmanaged files. In this checkin: Use file_delete() instead of unlink() everywhere. Add interfaces file_move() and file_dont_overwrite() but do not use those interfaces yet. ... (Closed-Leaf check-in: a1814d5015 user: drh tags: file-safety) | |
|
2011-02-11
| ||
| 20:53 | Add the --detail option to the test-timewarp-list command. ... (check-in: e7b6434112 user: drh tags: trunk) | |
| 20:09 | Make sure the EVENT.OMTIME value is recorded correctly when parsing a check-in manifest. ... (check-in: 1d83ecc5d5 user: drh tags: trunk) | |
Changes
Changes to src/timeline.c.
| ︙ | ︙ | |||
1324 1325 1326 1327 1328 1329 1330 | } } /* ** COMMAND: test-timewarp-list ** | | | > > > | > > | < > | > > > > > > > | 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 |
}
}
/*
** COMMAND: test-timewarp-list
**
** Usage: %fossil test-timewarp-list ?--detail?
**
** Display all instances of child checkins that appear earlier in time
** than their parent. If the --detail option is provided, both the
** parent and child checking and their times are shown.
*/
void test_timewarp_cmd(void){
Stmt q;
int showDetail;
db_find_and_open_repository(0, 0);
showDetail = find_option("detail", 0, 0)!=0;
db_prepare(&q,
"SELECT (SELECT uuid FROM blob WHERE rid=p.cid),"
" (SELECT uuid FROM blob WHERE rid=c.cid),"
" datetime(p.mtime), datetime(c.mtime)"
" FROM plink p, plink c"
" WHERE p.cid=c.pid AND p.mtime>c.mtime"
);
while( db_step(&q)==SQLITE_ROW ){
if( !showDetail ){
printf("%s\n", db_column_text(&q, 1));
}else{
printf("%.14s -> %.14s %s -> %s\n",
db_column_text(&q, 0),
db_column_text(&q, 1),
db_column_text(&q, 2),
db_column_text(&q, 3));
}
}
db_finalize(&q);
}
/*
** WEBPAGE: test_timewarps
*/
|
| ︙ | ︙ |