test-revert: add case where file exists neither in "base" nor in "parent"
authorPierre-Yves David <pierre-yves.david@fb.com>
Fri, 27 Jun 2014 18:02:09 +0200
changeset 22137 2cfe5ec47803
parent 22136 a29574cb8552
child 22138 80206e63c3cc
test-revert: add case where file exists neither in "base" nor in "parent"
tests/test-revert.t
--- a/tests/test-revert.t	Fri Jun 27 18:01:16 2014 +0200
+++ b/tests/test-revert.t	Fri Jun 27 18:02:09 2014 +0200
@@ -443,6 +443,8 @@
   >     'added': [None, 'parent'],
   >     # removed: file exist in base but is removed from parent
   >     'removed': ['base', None],
+  >     # file exist neither in base not in parent
+  >     'missing': [None, None],
   > }
   > 
   > # content of file in working copy
@@ -495,6 +497,7 @@
   $ python gen-revert-cases.py filelist
   added_clean
   clean_clean
+  missing_clean
   modified_clean
   removed_clean
 
@@ -650,6 +653,9 @@
   ### revert for: clean_clean
   no changes needed to clean_clean
   
+  ### revert for: missing_clean
+  missing_clean: no such file in rev * (glob)
+  
   ### revert for: modified_clean
   no changes needed to modified_clean
   
@@ -691,6 +697,9 @@
   
   ### revert for: clean_clean
   
+  ### revert for: missing_clean
+  missing_clean: no such file in rev * (glob)
+  
   ### revert for: modified_clean
   
   ### revert for: removed_clean