Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Record the name of the branch for a checkout when the checkout is first opened. Possible use later to warn about branch name changes at check-in time. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | safe-checkout-branch |
| Files: | files | file ages | folders |
| SHA3-256: |
706a10d09e8bb0113bdc52099680a856 |
| User & Date: | drh 2024-12-11 11:41:22.152 |
Context
|
2024-12-11
| ||
| 11:41 | Record the name of the branch for a checkout when the checkout is first opened. Possible use later to warn about branch name changes at check-in time. Leaf check-in: 706a10d09e user: drh tags: safe-checkout-branch | |
| 00:32 | More robust detection of top of a checkout in the dir_has_ckout_db() function. check-in: 36f916c504 user: drh tags: trunk | |
Changes
Changes to src/db.c.
| ︙ | ︙ | |||
5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 |
if (rid != 0) {
z = db_text(0,"SELECT uuid FROM blob WHERE rid=%d",rid);
db_lset("checkout-hash", z);
fossil_free(z);
z = db_fingerprint(0, 1);
db_lset("fingerprint", z);
fossil_free(z);
}
}
/*
** Verify that the fingerprint recorded in the "fingerprint" entry
** of the VVAR table matches the fingerprint on the currently
** connected repository. Return true if the fingerprint is ok, and
| > > > | 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 |
if (rid != 0) {
z = db_text(0,"SELECT uuid FROM blob WHERE rid=%d",rid);
db_lset("checkout-hash", z);
fossil_free(z);
z = db_fingerprint(0, 1);
db_lset("fingerprint", z);
fossil_free(z);
z = branch_of_rid(rid);
db_lset("checkout-branch", z);
fossil_free(z);
}
}
/*
** Verify that the fingerprint recorded in the "fingerprint" entry
** of the VVAR table matches the fingerprint on the currently
** connected repository. Return true if the fingerprint is ok, and
|
| ︙ | ︙ |