Patchwork [3,of,4] test-status-rev: remove unnecessary initial commit

login
register
mail settings
Submitter Martin von Zweigbergk
Date Nov. 5, 2014, 9:16 p.m.
Message ID <aa03bcda7f9d9a8ef1ef.1415222204@handduk2.mtv.corp.google.com>
Download mbox | patch
Permalink /patch/6590/
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 1415164966 28800
#      Tue Nov 04 21:22:46 2014 -0800
# Node ID aa03bcda7f9d9a8ef1efb8599edbdb035fd91dcb
# Parent  36273b9c8df456b4dfc3dcb5c99f57377ac74801
test-status-rev: remove unnecessary initial commit

The initial commit was there when we had a group of tests that
compared against an empty base, but since those tests no longer exist,
we can drop the empty commit.

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
@@ -2,9 +2,6 @@ 
 combined correctly with the dirstate status.
 
   $ hg init
-  $ touch .hgignore
-  $ hg add .hgignore
-  $ hg commit -m initial
 
 First commit
 
@@ -69,23 +66,23 @@ 
 
 Status compared to one revision back
 
-  $ hg status -A --rev 1 'glob:content1_*_content[23]-tracked'
+  $ hg status -A --rev 0 'glob:content1_*_content[23]-tracked'
   M content1_content1_content3-tracked
   M content1_content2_content2-tracked
   M content1_content2_content3-tracked
   M content1_missing_content3-tracked
-  $ hg status -A --rev 1 'glob:content1_*_content1-tracked'
+  $ hg status -A --rev 0 'glob:content1_*_content1-tracked'
   C content1_content1_content1-tracked
   C content1_content2_content1-tracked
   C content1_missing_content1-tracked
-  $ hg status -A --rev 1 'glob:missing_*_content?-tracked'
+  $ hg status -A --rev 0 'glob:missing_*_content?-tracked'
   A missing_content2_content2-tracked
   A missing_content2_content3-tracked
   A missing_missing_content3-tracked
 BROKEN: missing_content2_content[23]-untracked exist, so should be listed
-  $ hg status -A --rev 1 'glob:missing_*_content?-untracked'
+  $ hg status -A --rev 0 'glob:missing_*_content?-untracked'
   ? missing_missing_content3-untracked
-  $ hg status -A --rev 1 'glob:content1_*_*-untracked'
+  $ hg status -A --rev 0 'glob:content1_*_*-untracked'
   R content1_content1_content1-untracked
   R content1_content1_content3-untracked
   R content1_content1_missing-untracked
@@ -97,7 +94,7 @@ 
   R content1_missing_content3-untracked
   R content1_missing_missing-untracked
 BROKEN: content1_*_missing-tracked appear twice; should just be '!'
-  $ hg status -A --rev 1 'glob:*_*_missing-tracked'
+  $ hg status -A --rev 0 'glob:*_*_missing-tracked'
   R content1_missing_missing-tracked
   ! content1_content1_missing-tracked
   ! content1_content2_missing-tracked
@@ -106,4 +103,4 @@ 
   ! missing_missing_missing-tracked
   C content1_content1_missing-tracked
   C content1_content2_missing-tracked
-  $ hg status -A --rev 1 'glob:missing_*_missing-untracked'
+  $ hg status -A --rev 0 'glob:missing_*_missing-untracked'