Skip to content

Commit 540e6b0

Browse files
muirdmmeta-codesync[bot]
authored andcommitted
checkout: fix untracked->dir to be reported as UNTRACKED_ADDED
Summary: When an untracked file was replaced by a directory in the destination commit, eden was reporting a MODIFIED_MODIFIED conflict, but this is not correct. The local file is not tracked, so cannot be modified. This messed up Sapling's expectations. Step one is to fix eden to return the proper UNTRACKED_ADDED conflict type. Note that Sapling does not currently handle the file->directory path conflict situation here, but I will address that next. Reviewed By: MichaelCuevas Differential Revision: D96992296 fbshipit-source-id: 4f73f1612323897bb43c0dd1d0ac132ee275a766
1 parent e851e59 commit 540e6b0

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

eden/fs/service/eden.thrift

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -824,27 +824,28 @@ enum CheckoutMode {
824824

825825
enum ConflictType {
826826
/**
827-
* We failed to update this particular path due to an error
827+
* We failed to update this particular path due to an error.
828828
*/
829829
ERROR = 0,
830830
/**
831-
* A locally modified file was deleted in the new Tree
831+
* A locally modified file was deleted in the new Tree.
832832
*/
833833
MODIFIED_REMOVED = 1,
834834
/**
835-
* An untracked local file exists in the new Tree
835+
* An untracked local file exists in the new Tree.
836+
* The new entry may be a file or directory.
836837
*/
837838
UNTRACKED_ADDED = 2,
838839
/**
839-
* The file was removed locally, but modified in the new Tree
840+
* The file was removed locally, but modified in the new Tree.
840841
*/
841842
REMOVED_MODIFIED = 3,
842843
/**
843844
* The file was removed locally, and also removed in the new Tree.
844845
*/
845846
MISSING_REMOVED = 4,
846847
/**
847-
* A locally modified file was modified in the new Tree
848+
* A locally modified file was modified in the new Tree.
848849
* This may be contents modifications, or a file type change (directory to
849850
* file or vice-versa), or permissions changes.
850851
*/

0 commit comments

Comments
 (0)