##// END OF EJS Templates
fix issue 322....
fix issue 322. do not allow to add files that shadow files or directories already in dirstate.

File last commit:

r2953:3d554784 default
r2953:3d554784 default
Show More
test-issue322.out
12 lines | 379 B | text/plain | TextLexer
% file replaced with directory
adding a
% should fail - would corrupt dirstate
abort: file named 'a' already in dirstate
% directory replaced with file
adding a/a
% should fail - would corrupt dirstate
abort: directory named 'a' already in dirstate
% directory replaced with file
adding b/c/d
% should fail - would corrupt dirstate
abort: directory named 'b' already in dirstate