Fossil SCM

status reports unmodified files as EDITED

Closed

741a0355a18796b… · opened 15 years, 2 months ago

Type
Code_Defect
Priority
Severity
Minor
Resolution
Unable_To_Reproduce
Subsystem
Created
Feb. 8, 2011 10:50 p.m.

I haven't been able to figure out how to reproduce this yet, but there's something odd with the status command with regards to files being reported as EDITED but their contents is identical to what's in trunk. As near as I can tell, the command sequence went something like this:

% cd ~/src/repo/contrib
% rm -rf sub-module
% mkdir ~/src/repo2
% cd ~/src/repo2
% fs open ~/src/.fossils/repo.fossil
% mv contrib/sub-module ~/src/repo/contrib
% cd ~/src/repo
% fs stat | tail -1
EDITED     contrib/sub-module/file.sh
% fs di contrib/sub-module/file.sh
%

contrib/sub-module was imported on a vendor branch, if that makes any difference. Comparing md5s, the files are identical, but everything in contrib/sub-module gets reported as EDITED right now. It looks like checkin.c:status_report() is reporting the file as changed. Looking in schema.c:

@ -- Vfile.chnged is 0 for unmodified files, 1 for files that have
@ -- been edited or which have been subjected to a 3-way merge.

So it looks like there are some stale entries in vmerge (maybe?). Hope this is useful enough.

Comments (1)

system 2 years, 2 months ago

Closing as part of periodic cleanup.

Keyboard Shortcuts

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