##// END OF EJS Templates
dirstate: ignore stat data for files that were updated too recently...
dirstate: ignore stat data for files that were updated too recently This should fix the race where hg commit foo <change foo without changing its size> happens in the same second and status is fooled into thinking foo is clean. A configuration item is used to determine the timeout, since different filesystems may have different requirements (I think VFAT needs 3s, while most Unix filesystems are fine with 1s).

File last commit:

r6326:af3f26b6 default
r6326:af3f26b6 default
Show More
test-rebuildstate.out
17 lines | 207 B | text/plain | TextLexer
/ tests / test-rebuildstate.out
Alexis S. L. Carvalho
dirstate: fix rebuild; add a test...
r5065 adding bar
adding foo
% state dump
Alexis S. L. Carvalho
merge with crew-stable
r5123 a 0 -1 baz
Alexis S. L. Carvalho
dirstate: ignore stat data for files that were updated too recently...
r6326 n 0 -1 foo
Alexis S. L. Carvalho
dirstate: fix rebuild; add a test...
r5065 r 0 0 bar
% status
A baz
R bar
Matt Mackall
Backed out changeset c2a21fe60994...
r5764 C foo
Alexis S. L. Carvalho
dirstate: fix rebuild; add a test...
r5065 % state dump
n 666 -1 bar
n 666 -1 foo
% status
! bar
? baz
Matt Mackall
Backed out changeset c2a21fe60994...
r5764 C foo