Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Inject a dummy rcvfrom entry when creating a new repo db in order to squelch the fingerprint-has-changed warning when fossil opens the db. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
835d5a059beb037f3a2a9562097061dc |
User & Date: | stephan 2021-04-16 14:32:09.382 |
Context
2021-04-16
| ||
16:17 | Implemented repo/checkout fingerprint check and added a check for it in f-status, f-timeline, and f-ci (failing fatally on a mismatch, instead of just warning like fossil does). We now update the fingerprint in the ckout db whenever we update the ckout version. We do not yet have an automatic recovery mechanism analog to fossil's vfile.c:vfile_rid_renumbering_event(). check-in: 8c9cf48702 user: stephan tags: trunk | |
14:32 | Inject a dummy rcvfrom entry when creating a new repo db in order to squelch the fingerprint-has-changed warning when fossil opens the db. check-in: 835d5a059b user: stephan tags: trunk | |
13:47 | Added a potential TODO to fcli's CLI processing. check-in: d549476263 user: stephan tags: trunk | |
Changes
Changes to sql/repo-static.sql.
︙ | ︙ | |||
41 42 43 44 45 46 47 48 49 50 51 52 53 54 | CREATE TABLE repo.rcvfrom( rcvid INTEGER PRIMARY KEY, -- Received-From ID uid INTEGER REFERENCES user, -- User login mtime DATETIME, -- Time of receipt. Julian day. nonce TEXT UNIQUE, -- Nonce used for login ipaddr TEXT -- Remote IP address. NULL for direct. ); -- Information about users -- -- The user.pw field can be either cleartext of the password, or -- a SHA1 hash of the password. If the user.pw field is exactly 40 -- characters long we assume it is a SHA1 hash. Otherwise, it is -- cleartext. The sha1_shared_secret() routine computes the password | > > | 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | CREATE TABLE repo.rcvfrom( rcvid INTEGER PRIMARY KEY, -- Received-From ID uid INTEGER REFERENCES user, -- User login mtime DATETIME, -- Time of receipt. Julian day. nonce TEXT UNIQUE, -- Nonce used for login ipaddr TEXT -- Remote IP address. NULL for direct. ); INSERT INTO repo.rcvfrom(rcvid,uid,mtime,nonce,ipaddr) VALUES (1, 1, julianday('now'), NULL, NULL); -- Information about users -- -- The user.pw field can be either cleartext of the password, or -- a SHA1 hash of the password. If the user.pw field is exactly 40 -- characters long we assume it is a SHA1 hash. Otherwise, it is -- cleartext. The sha1_shared_secret() routine computes the password |
︙ | ︙ |
Changes to src/schema_repo1_cstr.c.
︙ | ︙ | |||
44 45 46 47 48 49 50 51 52 53 54 55 56 57 | CREATE TABLE repo.rcvfrom( rcvid INTEGER PRIMARY KEY, -- Received-From ID uid INTEGER REFERENCES user, -- User login mtime DATETIME, -- Time of receipt. Julian day. nonce TEXT UNIQUE, -- Nonce used for login ipaddr TEXT -- Remote IP address. NULL for direct. ); -- Information about users -- -- The user.pw field can be either cleartext of the password, or -- a SHA1 hash of the password. If the user.pw field is exactly 40 -- characters long we assume it is a SHA1 hash. Otherwise, it is -- cleartext. The sha1_shared_secret() routine computes the password | > > | 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | CREATE TABLE repo.rcvfrom( rcvid INTEGER PRIMARY KEY, -- Received-From ID uid INTEGER REFERENCES user, -- User login mtime DATETIME, -- Time of receipt. Julian day. nonce TEXT UNIQUE, -- Nonce used for login ipaddr TEXT -- Remote IP address. NULL for direct. ); INSERT INTO repo.rcvfrom(rcvid,uid,mtime,nonce,ipaddr) VALUES (1, 1, julianday('now'), NULL, NULL); -- Information about users -- -- The user.pw field can be either cleartext of the password, or -- a SHA1 hash of the password. If the user.pw field is exactly 40 -- characters long we assume it is a SHA1 hash. Otherwise, it is -- cleartext. The sha1_shared_secret() routine computes the password |
︙ | ︙ | |||
238 239 240 241 242 243 244 | 74, 117, 108, 105, 97, 110, 32, 100, 97, 121, 46, 10, 32, 32, 110, 111, 110, 99, 101, 32, 84, 69, 88, 84, 32, 85, 78, 73, 81, 85, 69, 44, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 45, 45, 32, 78, 111, 110, 99, 101, 32, 117, 115, 101, 100, 32, 102, 111, 114, 32, 108, 111, 103, 105, 110, 10, 32, 32, 105, 112, 97, 100, 100, 114, 32, 84, 69, 88, 84, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 45, 45, 32, 82, 101, 109, 111, 116, 101, 32, 73, 80, 32, 97, 100, 100, 114, 101, 115, 115, 46, 32, 32, 78, 85, 76, 76, 32, 102, 111, 114, 32, 100, 105, 114, 101, | > > > > > | | 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 | 74, 117, 108, 105, 97, 110, 32, 100, 97, 121, 46, 10, 32, 32, 110, 111, 110, 99, 101, 32, 84, 69, 88, 84, 32, 85, 78, 73, 81, 85, 69, 44, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 45, 45, 32, 78, 111, 110, 99, 101, 32, 117, 115, 101, 100, 32, 102, 111, 114, 32, 108, 111, 103, 105, 110, 10, 32, 32, 105, 112, 97, 100, 100, 114, 32, 84, 69, 88, 84, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 45, 45, 32, 82, 101, 109, 111, 116, 101, 32, 73, 80, 32, 97, 100, 100, 114, 101, 115, 115, 46, 32, 32, 78, 85, 76, 76, 32, 102, 111, 114, 32, 100, 105, 114, 101, 99, 116, 46, 10, 41, 59, 10, 73, 78, 83, 69, 82, 84, 32, 73, 78, 84, 79, 32, 114, 101, 112, 111, 46, 114, 99, 118, 102, 114, 111, 109, 40, 114, 99, 118, 105, 100, 44, 117, 105, 100, 44, 109, 116, 105, 109, 101, 44, 110, 111, 110, 99, 101, 44, 105, 112, 97, 100, 100, 114, 41, 10, 86, 65, 76, 85, 69, 83, 32, 40, 49, 44, 32, 49, 44, 32, 106, 117, 108, 105, 97, 110, 100, 97, 121, 40, 39, 110, 111, 119, 39, 41, 44, 32, 78, 85, 76, 76, 44, 32, 78, 85, 76, 76, 41, 59, 10, 10, 45, 45, 32, 73, 110, 102, 111, 114, 109, 97, 116, 105, 111, 110, 32, 97, 98, 111, 117, 116, 32, 117, 115, 101, 114, 115, 10, 45, 45, 10, 45, 45, 32, 84, 104, 101, 32, 117, 115, 101, 114, 46, 112, 119, 32, 102, 105, 101, 108, 100, 32, 99, 97, 110, 32, 98, 101, 32, 101, 105, 116, 104, 101, 114, 32, 99, 108, 101, 97, 114, 116, 101, 120, 116, 32, 111, 102, 32, 116, 104, 101, 32, 112, 97, 115, 115, 119, 111, 114, 100, 44, 32, 111, 114, 10, 45, 45, 32, 97, 32, 83, 72, 65, 49, 32, 104, 97, 115, 104, 32, 111, 102, 32, 116, 104, 101, 32, 112, 97, 115, 115, 119, 111, 114, 100, 46, 32, 32, 73, 102, 32, 116, 104, 101, 32, 117, 115, 101, 114, 46, 112, 119, 32, 102, 105, 101, 108, 100, 32, 105, 115, 32, |
︙ | ︙ |