mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 08:18:15 +03:00
853998bf60
do not allow to add files that shadow files or directories already in dirstate.
13 lines
379 B
Plaintext
13 lines
379 B
Plaintext
% 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
|