# HG changeset patch # User Pierre-Yves David # Date 2014-06-27 16:02:09 # Node ID 2cfe5ec47803f821918aab3350f2245271e24242 # Parent a29574cb855211f1ec33652b807437484f8b69f4 test-revert: add case where file exists neither in "base" nor in "parent" diff --git a/tests/test-revert.t b/tests/test-revert.t --- a/tests/test-revert.t +++ b/tests/test-revert.t @@ -443,6 +443,8 @@ Write the python script to disk > '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 @@ check list of planned files $ python gen-revert-cases.py filelist added_clean clean_clean + missing_clean modified_clean removed_clean @@ -650,6 +653,9 @@ revert all files individually and check ### 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 @@ Misbehavior: ### revert for: clean_clean + ### revert for: missing_clean + missing_clean: no such file in rev * (glob) + ### revert for: modified_clean ### revert for: removed_clean