diff tests/test-revert.t @ 23730:4b56219a5ac2

status: don't list files as both removed and deleted When calculating status involving the working copy and a revision other than the parent of the working copy, the files that are not in the working context manifest ('mf2' in the basectx._buildstatus()) will be reported as removed (note that deleted files _are_ in the working context manifest). However, if the file is reported as deleted in the dirstate, it will get that status too (as shown by failing tests). Fix by removing deleted files from the 'removed' list after the main loop in _buildstatus().
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 05 Jan 2015 16:52:12 -0800
parents 815e76a45b24
children 45bd336e3991
line wrap: on
line diff
--- a/tests/test-revert.t	Tue Jan 06 11:23:38 2015 -0800
+++ b/tests/test-revert.t	Mon Jan 05 16:52:12 2015 -0800
@@ -679,7 +679,6 @@
   R content1_content2_missing-untracked
   R content1_missing_content1-untracked
   R content1_missing_content3-untracked
-  R content1_missing_missing-tracked
   R content1_missing_missing-untracked
   ! content1_content1_missing-tracked
   ! content1_content2_missing-tracked