Patchwork [1,of,4] test-status-rev: remove duplicate tests

login
register
mail settings
Submitter Martin von Zweigbergk
Date Nov. 5, 2014, 9:16 p.m.
Message ID <f6ed04e0d793f15ab49b.1415222202@handduk2.mtv.corp.google.com>
Download mbox | patch
Permalink /patch/6589/
State Accepted
Headers show

Comments

Martin von Zweigbergk - Nov. 5, 2014, 9:16 p.m.
# HG changeset patch
# User Martin von Zweigbergk <martinvonz@google.com>
# Date 1415144195 28800
#      Tue Nov 04 15:36:35 2014 -0800
# Node ID f6ed04e0d793f15ab49b0000428b0cddbc33c0da
# Parent  48a2eefd3d2048c85fc22bf06e32ba06a1698fff
test-status-rev: remove duplicate tests

The second group of tests in test-status-rev compare to an empty
revision. The first group of tests that compare to the first commit
should be testing all the same states with the missing_* files, so
drop the second group of tests.

Patch

diff --git a/tests/test-status-rev.t b/tests/test-status-rev.t
--- a/tests/test-status-rev.t
+++ b/tests/test-status-rev.t
@@ -110,37 +110,3 @@ 
   $ hg status -A --rev 1 missing_content2_missing-untracked
   $ hg status -A --rev 1 missing_missing_content3-untracked
   ? missing_missing_content3-untracked
-
-Status compared to two revisions back
-
-  $ hg status -A --rev 0 content1_content1_content1-tracked
-  A content1_content1_content1-tracked
-  $ hg status -A --rev 0 content1_content1_missing-tracked
-  ! content1_content1_missing-tracked
-BROKEN: file exists, so should be listed (as '?')
-  $ hg status -A --rev 0 content1_content1_content1-untracked
-  $ hg status -A --rev 0 content1_content1_content3-tracked
-  A content1_content1_content3-tracked
-  $ hg status -A --rev 0 content1_content1_missing-untracked
-  $ hg status -A --rev 0 content1_content2_content2-tracked
-  A content1_content2_content2-tracked
-  $ hg status -A --rev 0 content1_content2_missing-tracked
-  ! content1_content2_missing-tracked
-BROKEN: file exists, so should be listed (as '?')
-  $ hg status -A --rev 0 content1_content2_content2-untracked
-  $ hg status -A --rev 0 content1_content2_content3-tracked
-  A content1_content2_content3-tracked
-  $ hg status -A --rev 0 content1_content2_missing-untracked
-  $ hg status -A --rev 0 content1_missing_content3-tracked
-  A content1_missing_content3-tracked
-  $ hg status -A --rev 0 content1_missing_missing-tracked
-  ! content1_missing_missing-tracked
-  $ hg status -A --rev 0 content1_missing_content3-untracked
-  ? content1_missing_content3-untracked
-  $ hg status -A --rev 0 missing_content2_missing-tracked
-  ! missing_content2_missing-tracked
-BROKEN: file exists, so should be listed (as '?')
-  $ hg status -A --rev 0 missing_content2_content2-untracked
-  $ hg status -A --rev 0 missing_content2_content3-tracked
-  A missing_content2_content3-tracked
-  $ hg status -A --rev 0 missing_content2_missing-untracked