OP: Windows

performing a fossil update

One file cannot be written (in our case, one DLL that was being used by an open program). Fossil gives an error and stops.

The situation is the following:

The name of the checkout version (given by fossil info) is the one previous to the update. All the files that had been updated prior to the error, become labelled as "EDITED".

The situation is not easy to fix:

"fossil update" does nothing
"fossil checkout --latest --force" will miss all the legitimate changes made to the files

Possible solutions:

  1  Something similar to "rollback". If it fails, keep a copy of the existing files and replace them

  2  Do the update of all files to files "myfile.c.tempfossil" and rename all files after successful operation

  3  If the update has been partially made, change the "fossil info" checkout version number