[PATCH 1 of 2] tests: unify test-dirstatedirs

Adrian Buehlmann adrian at cadifra.com
Sun Aug 15 11:30:57 CDT 2010


# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1281889489 -7200
# Node ID 595acd1f81315b0b26caca1616c3e96ab7b8634e
# Parent  e3526634d5a33e8ec326e27c33da985967ef5fa2
tests: unify test-dirstatedirs

diff --git a/tests/test-dirstatedirs b/tests/test-dirstate.t
old mode 100755
new mode 100644
rename from tests/test-dirstatedirs
rename to tests/test-dirstate.t
--- a/tests/test-dirstatedirs
+++ b/tests/test-dirstate.t
@@ -1,11 +1,17 @@
-#!/bin/sh
+Test dirstate._dirs refcounting:
 
-# test dirstate._dirs refcounting
-hg init t
-cd t
-mkdir -p a/b/c/d
-touch a/b/c/d/x
-touch a/b/c/d/y
-touch a/b/c/d/z
-hg ci -Am m
-hg mv a z
+  $ hg init t
+  $ cd t
+  $ mkdir -p a/b/c/d
+  $ touch a/b/c/d/x
+  $ touch a/b/c/d/y
+  $ touch a/b/c/d/z
+  $ hg ci -Am m
+  adding a/b/c/d/x
+  adding a/b/c/d/y
+  adding a/b/c/d/z
+  $ hg mv a z
+  moving a/b/c/d/x to z/b/c/d/x
+  moving a/b/c/d/y to z/b/c/d/y
+  moving a/b/c/d/z to z/b/c/d/z
+
diff --git a/tests/test-dirstatedirs.out b/tests/test-dirstatedirs.out
deleted file mode 100644
--- a/tests/test-dirstatedirs.out
+++ /dev/null
@@ -1,6 +0,0 @@
-adding a/b/c/d/x
-adding a/b/c/d/y
-adding a/b/c/d/z
-moving a/b/c/d/x to z/b/c/d/x
-moving a/b/c/d/y to z/b/c/d/y
-moving a/b/c/d/z to z/b/c/d/z


More information about the Mercurial-devel mailing list