Fossil SCM

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.

drh 2024-12-11 11:41 trunk
Commit 706a10d09e8bb0113bdc52099680a856819aa61487625aa6ea19cf77122e1546
1 file changed +3
+3
--- src/db.c
+++ src/db.c
@@ -5459,10 +5459,13 @@
54595459
db_lset("checkout-hash", z);
54605460
fossil_free(z);
54615461
z = db_fingerprint(0, 1);
54625462
db_lset("fingerprint", z);
54635463
fossil_free(z);
5464
+ z = branch_of_rid(rid);
5465
+ db_lset("checkout-branch", z);
5466
+ fossil_free(z);
54645467
}
54655468
}
54665469
54675470
/*
54685471
** Verify that the fingerprint recorded in the "fingerprint" entry
54695472
--- src/db.c
+++ src/db.c
@@ -5459,10 +5459,13 @@
5459 db_lset("checkout-hash", z);
5460 fossil_free(z);
5461 z = db_fingerprint(0, 1);
5462 db_lset("fingerprint", z);
5463 fossil_free(z);
 
 
 
5464 }
5465 }
5466
5467 /*
5468 ** Verify that the fingerprint recorded in the "fingerprint" entry
5469
--- src/db.c
+++ src/db.c
@@ -5459,10 +5459,13 @@
5459 db_lset("checkout-hash", z);
5460 fossil_free(z);
5461 z = db_fingerprint(0, 1);
5462 db_lset("fingerprint", z);
5463 fossil_free(z);
5464 z = branch_of_rid(rid);
5465 db_lset("checkout-branch", z);
5466 fossil_free(z);
5467 }
5468 }
5469
5470 /*
5471 ** Verify that the fingerprint recorded in the "fingerprint" entry
5472

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button