Fossil SCM

Failure to acknowledge changes after failing to overwrite write-protected file

Open

7f76498d469dc69… · opened 11 years, 4 months ago

Type
Code_Defect
Priority
Severity
Important
Resolution
Subsystem
Created
Nov. 13, 2014 5:45 p.m.

Batch file contents to reproduce problem on a Win7 machine.


@echo off
echo Reproduce fossil issue with read-only overwrite failure consequences
echo (where f = fossil)
f ver -v
f new sample.fossil
md xxx
dir > xxx\aaa
cd xxx
f o ..\sample.fossil
f add aaa
f com -m "Initial"
f close
echo Make some changes to our file
dir ../s > aaa
attrib +r aaa
echo Answer Y or A(ll)
f o ..\sample.fossil
echo Failed to update.  Let's remove the read-only status, and see...
attrib -r aaa
f cha
f rev
f com
echo Nothing shown here.  But, if we close and re-open the repo.
f close
echo Answer N
f o ..\sample.fossil
f cha
echo Obviously, there are changes!!!

Comments (1)

nobody 11 years, 4 months ago

Batch file contents to reproduce problem on a Win7 machine.


@echo off
echo Reproduce fossil issue with read-only overwrite failure consequences
echo (where f = fossil)
f ver -v
f new sample.fossil
md xxx
dir > xxx\aaa
cd xxx
f o ..\sample.fossil
f add aaa
f com -m "Initial"
f close
echo Make some changes to our file
dir ../s > aaa
attrib +r aaa
echo Answer Y or A(ll)
f o ..\sample.fossil
echo Failed to update.  Let's remove the read-only status, and see...
attrib -r aaa
f cha
f rev
f com
echo Nothing shown here.  But, if we close and re-open the repo.
f close
echo Answer N
f o ..\sample.fossil
f cha
echo Obviously, there are changes!!!

Keyboard Shortcuts

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