Fossil SCM

"fossil mv" will let me move a file to outside of the tree.

Closed

552b3512dc7cd75… · opened 16 years, 4 months ago

Type
Code_Defect
Priority
Severity
Important
Resolution
Unable_To_Reproduce
Subsystem
Created
Dec. 11, 2009 5:23 p.m.

Problem: I believe there is a bug with "fossil mv": it lets me move a file outside of the change controlled tree, at which point there is nothing I can do (to the best of my knowledge) to fix this situation with other fossil commands.

I would expect: Either that fossil will prevent me from moving the file outside of the change controlled tree, or that fossil will allow me to rectify the situation afterwards.

Reproduction Steps: Running these commands will build you a sandbox, set up a repo, open it, add a file, commit the file, and then move the file out. Bung them in a file and source it with "."...

mkdir sandbox
cd sandbox
fossil new test_repo
mkdir working_copy
cd working_copy
fossil open ../test_repo
touch a_file
fossil add a_file
fossil com -m "Adding in a test file."
fossil mv a_file ..
mv a_file ..
echo "Check changes, and see that the file is outside the change controlled tree."
fossil chan
echo "Try to move the file back in to the tree (which will fail)..."
fossil mv ../a_file ./

Work around: It is possible to hack at the FOSSIL sqlite db in the check out tree, but this is probably a terrible idea.


drh added on 2009-12-17 16:55:06:
When I try the recipe above, the "fossil mv a_file .." command gives an error message: "fossil: file outside of checkout tree: .."

If someone can explain to me how to reproduce this problem we will reopen the ticket...

Keyboard Shortcuts

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