From patchwork Tue Aug 12 19:43:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [04, of, 11] test-revert: add case where file exist neither in "base" nor in "parent" From: Pierre-Yves David X-Patchwork-Id: 5360 Message-Id: To: mercurial-devel@selenic.com Cc: Pierre-Yves David Date: Tue, 12 Aug 2014 12:43:44 -0700 # HG changeset patch # User Pierre-Yves David # Date 1403884929 -7200 # Fri Jun 27 18:02:09 2014 +0200 # Node ID afb24257caa533fb3f0d049f00fe3d9c06e3caf0 # Parent 8d1d22316d6e18ad40aa1c467c364670f7d623ab test-revert: add case where file exist 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 @@ -441,10 +441,12 @@ Write the python script to disk > 'modified': ['base', 'parent'], > # added: file is missing from base and added in parent > '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 > wccontent = { > # clean: wc content is the same as parent @@ -493,10 +495,11 @@ Write the python script to disk check list of planned files $ python gen-revert-cases.py filelist added_clean clean_clean + missing_clean modified_clean removed_clean Script to make a simple text version of the content --------------------------------------------------- @@ -648,10 +651,13 @@ revert all files individually and check no changes needed to added_clean ### 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 ### revert for: removed_clean removed_clean: no such file in rev * (glob) @@ -689,10 +695,13 @@ Misbehavior: > done ### revert for: added_clean ### revert for: clean_clean + ### revert for: missing_clean + missing_clean: no such file in rev * (glob) + ### revert for: modified_clean ### revert for: removed_clean