Suppose that some of a repository's checkout references are no longer
valid.

$ fossil version
This is fossil version 1.35 [3aa86af6aa] 2016-06-14 11:10:39 UTC
$ sqlite3 horetu.fossil "select * from config where name like 'ckout%';"
ckout:/directory/does/not/exist/anymore/|1|1463006565
ckout:/home/tlevine/horetu/|1|1475658284

The question: Is there a good way to remove the dead ones? I have
already reviewed them to determine that it is safe to remove them.

This may also be against the fossil spirit; it may be more coherent to
expect users to check whether each checkout is indeed still a checkout
before doing anything with the directory.

In my case, it turned out that there was a better way that did not
require access to the checkouts. In an earlier version of my
implementation of the missing "fossil all configuration push" in sh, I
ran "cd" on the checkout directory and then ran "fossil config push"
from there. This produced errors on missing directories, leading me to
wonder how to remove them.
http://src.thomaslevine.com/rc/info/e1c590fa8f233a554caab90b932a356456d7b9e4?txt=1&ln=14

But I have since fixed my "fossil-all-configuration-push" to use -R.
http://src.thomaslevine.com/rc/artifact/f6fad8431281ad7d
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to