# HG changeset patch # User Pierre-Yves David # Date 1403884929 -7200 # Node ID 2cfe5ec47803f821918aab3350f2245271e24242 # Parent a29574cb855211f1ec33652b807437484f8b69f4 test-revert: add case where file exists neither in "base" nor in "parent" diff -r a29574cb8552 -r 2cfe5ec47803 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