[PATCH] tests: unify test-extra-filelog-entry

Adrian Buehlmann adrian at cadifra.com
Wed Sep 15 13:34:03 CDT 2010


# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1284566409 -7200
# Node ID 8af6309526e78b7ac824ab0f50fb647c396c6568
# Parent  93c764328b17f1638806e07d34917f36a0f3c91c
tests: unify test-extra-filelog-entry

diff --git a/tests/test-extra-filelog-entry.out b/tests/test-extra-filelog-entry.out
deleted file mode 100644
--- a/tests/test-extra-filelog-entry.out
+++ /dev/null
@@ -1,3 +0,0 @@
-adding b
-   rev    offset  length   base linkrev nodeid       p1           p2
-     0         0       3      0       0 1e88685f5dde 000000000000 000000000000
diff --git a/tests/test-extra-filelog-entry b/tests/test-extra-filelog-entry.t
old mode 100755
new mode 100644
rename from tests/test-extra-filelog-entry
rename to tests/test-extra-filelog-entry.t
--- a/tests/test-extra-filelog-entry
+++ b/tests/test-extra-filelog-entry.t
@@ -1,19 +1,21 @@
-#!/bin/sh
-#
 # test for issue351
 
-# Environement setup for MQ
-echo "[extensions]" >> $HGRCPATH
-echo "mq=" >> $HGRCPATH
+  $ echo "[extensions]" >> $HGRCPATH
+  $ echo "mq=" >> $HGRCPATH
 
-#Repo init
-hg init
-hg qinit
+  $ hg init
+  $ hg qinit
 
-echo b > b
-hg ci -A -m foo
-echo cc > b
-hg qnew -f foo.diff
-echo b > b
-hg qrefresh
-hg debugindex .hg/store/data/b.i
+  $ echo b > b
+  $ hg ci -A -m foo
+  adding b
+
+  $ echo cc > b
+  $ hg qnew -f foo.diff
+  $ echo b > b
+  $ hg qrefresh
+
+  $ hg debugindex .hg/store/data/b.i
+     rev    offset  length   base linkrev nodeid       p1           p2
+       0         0       3      0       0 1e88685f5dde 000000000000 000000000000
+


More information about the Mercurial-devel mailing list