Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Tag the manifest of every "private" checkin with the "private" tag. After the "reconstruct" command, add all private checkins to the private table. Ticket [e29ea5912afe1e97]. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
3b2d67d60454511832e273cf34c41903 |
| User & Date: | drh 2010-11-24 21:32:57.000 |
Context
|
2010-11-24
| ||
| 23:45 | If the date of a check-in has been changed by a tag, then show that fact on the "info" page for the check-in. <i>Requires a rebuild</i>. ... (check-in: 576f6db2a8 user: drh tags: trunk) | |
| 21:32 | Tag the manifest of every "private" checkin with the "private" tag. After the "reconstruct" command, add all private checkins to the private table. Ticket [e29ea5912afe1e97]. ... (check-in: 3b2d67d604 user: drh tags: trunk) | |
| 20:54 | add sqlcmd to Makefile.dmc ... (check-in: 1ee56c4201 user: wolfgang tags: trunk) | |
Changes
Changes to src/checkin.c.
| ︙ | ︙ | |||
663 664 665 666 667 668 669 |
}
db_finalize(&q2);
free(zDate);
blob_appendf(pOut, "\n");
if( pCksum ) blob_appendf(pOut, "R %b\n", pCksum);
if( zBranch && zBranch[0] ){
| | | > > > > > | > | 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 |
}
db_finalize(&q2);
free(zDate);
blob_appendf(pOut, "\n");
if( pCksum ) blob_appendf(pOut, "R %b\n", pCksum);
if( zBranch && zBranch[0] ){
/* Set tags for the new branch */
if( zBgColor && zBgColor[0] ){
blob_appendf(pOut, "T *bgcolor * %F\n", zBgColor);
}
blob_appendf(pOut, "T *branch * %F\n", zBranch);
blob_appendf(pOut, "T *sym-%F *\n", zBranch);
}
if( g.markPrivate ){
/* If this manifest is private, mark it as such */
blob_appendf(pOut, "T +private *\n");
}
if( zBranch && zBranch[0] ){
/* For a new branch, cancel all prior propagating tags */
Stmt q;
db_prepare(&q,
"SELECT tagname FROM tagxref, tag"
" WHERE tagxref.rid=%d AND tagxref.tagid=tag.tagid"
" AND tagtype>0 AND tagname GLOB 'sym-*'"
" AND tagname!='sym-'||%Q"
" ORDER BY tagname",
vid, zBranch);
|
| ︙ | ︙ |
Changes to src/rebuild.c.
| ︙ | ︙ | |||
555 556 557 558 559 560 561 562 563 564 565 566 567 568 |
db_initial_setup(0, 0, 1);
printf("Reading files from directory \"%s\"...\n", g.argv[3]);
recon_read_dir(g.argv[3]);
printf("\nBuilding the Fossil repository...\n");
rebuild_db(0, 1);
/* Skip the verify_before_commit() step on a reconstruct. Most artifacts
** will have been changed and verification therefore takes a really, really
** long time.
*/
verify_cancel();
| > > > > > > > > > > > > > > > | 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 |
db_initial_setup(0, 0, 1);
printf("Reading files from directory \"%s\"...\n", g.argv[3]);
recon_read_dir(g.argv[3]);
printf("\nBuilding the Fossil repository...\n");
rebuild_db(0, 1);
/* Reconstruct the private table. The private table contains the rid
** of every manifest that is tagged with "private" and every file that
** is not used by a manifest that is not private.
*/
db_multi_exec(
"CREATE TEMP TABLE private_ckin(rid INTEGER PRIMARY KEY);"
"INSERT INTO private_ckin "
" SELECT rid FROM tagxref WHERE tagid=%d AND tagtype>0;"
"INSERT OR IGNORE INTO private"
" SELECT fid FROM mlink"
" EXCEPT SELECT fid FROM mlink WHERE mid NOT IN private_ckin;"
"INSERT OR IGNORE INTO private SELECT rid FROM private_ckin;"
"DROP TABLE private_ckin;"
);
/* Skip the verify_before_commit() step on a reconstruct. Most artifacts
** will have been changed and verification therefore takes a really, really
** long time.
*/
verify_cancel();
|
| ︙ | ︙ |