Fossil SCM

Changing a file to a directory causes cksum error on commit

Fixed

816f1656883efb1… · opened 16 years, 3 months ago

Type
Code_Defect
Priority
Severity
Resolution
Fixed
Subsystem
Created
Dec. 16, 2009 2:06 a.m.

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]

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button