View Ticket
Not logged in
Ticket UUID: 816f1656883efb1c250a0a216e476d155261d101
Title: Changing a file to a directory causes cksum error on commit
Status: Fixed Type: Code_Defect
Severity: Priority:
Subsystem: Resolution: Fixed
Last Modified: 2009-12-18 00:05:38
Version Found In:
Description & Comments:
If there is a file in the check-out that is changed into a directory, then when fossil goes to commit the changes, fossil will not realize that the file has been changed into a directory and the commit will not work.

It is not clear what the correct behavior here should be. Perhaps there should simply be an error message explaining what has gone wrong. Or perhaps files that have become directories should be dropped from the check-out, either with or without a warning.


anonymous claiming to be Michael McDaniel added on 2009-12-16 20:31:50:
I like the idea of providing an informative error message. And some way to complete the intent of the original command. In the described case, 'fossil rm' the file name, and then 'fossil add X' where X is now_dirname/new_file1 now_dirname/new_file2 ...


drh added on 2009-12-18 00:05:38:
Fixed by check-in d861fe77fbeb26a31c79d5ce39c1eeb0242e506d