Fossil

Artifact [a24f3978]
Login

Artifact [a24f3978]

Artifact a24f3978577f61d5a53e96202f4f50a4dda986bc90f6e2c1d89885533ee609c0:

Wiki page [branch/repo-fingerprint] by drh 2019-01-10 20:01:06.
D 2019-01-10T20:01:06.023
L branch/repo-fingerprint
U drh
W 839
The checkout database ("_FOSSIL_" or ".fslckout") stores integer BLOB.RID values
instead of complete 40- or 64-character hashes of various artifacts. This
normally works fine. However, if the repository is replaced by a clone, or if
the repository is restored from an older backup and then resynced with a remote
repository, the hash-to-RID mapping might change. This can render the RID values
in the checkout database obsolete.

The purpose of this branch is to detect, and possibly fix, that situation.

The first step is detection using the new "db_fingerprint()" interface.  After
we can reliably detect RID number changes in the repository, then we can start
working on fixing the checkout database when that happens.

See the [https://fossil-scm.org/forum/forumpost/13b4ed85bd|forum discussion]
for additional insights.
Z 2d6bed1aa7eec376d5e3970d2ed6c9f4