[PATCH] Make test-bundle-type work on MacOS 10.4.11

Christian Ebert blacktrash at gmx.net
Thu May 29 09:30:21 CDT 2008


# HG changeset patch
# User Christian Ebert <blacktrash at gmx.net>
# Date 1212071368 -7200
# Node ID d6b53b48943f4b3b4248a6bbf227c0f7762eb8ed
# Parent  6334569c8caa34f507ad2e006e9c5c5bf0ecbe3e
Make test-bundle-type work on MacOS 10.4.11

head on MacOS Tiger doesn't have a -c option.

diff --git a/tests/test-bundle-type b/tests/test-bundle-type
--- a/tests/test-bundle-type
+++ b/tests/test-bundle-type
@@ -20,7 +20,7 @@
   hg init t$t
   cd t1
   hg bundle -t $t ../b$t ../t$t
-  head -c 6 ../b$t
+  head -n 1 ../b$t | cut -b 1-6
   cd ../t$t
   hg pull ../b$t
   hg up
diff --git a/tests/test-bundle-type.out b/tests/test-bundle-type.out
--- a/tests/test-bundle-type.out
+++ b/tests/test-bundle-type.out
@@ -15,7 +15,8 @@
 % test bundle type None
 searching for changes
 1 changesets found
-HG10UNpulling from ../bNone
+HG10UN
+pulling from ../bNone
 requesting all changes
 adding changesets
 adding manifests
@@ -27,7 +28,8 @@
 % test bundle type bzip2
 searching for changes
 1 changesets found
-HG10BZpulling from ../bbzip2
+HG10BZ
+pulling from ../bbzip2
 requesting all changes
 adding changesets
 adding manifests
@@ -39,7 +41,8 @@
 % test bundle type gzip
 searching for changes
 1 changesets found
-HG10GZpulling from ../bgzip
+HG10GZ
+pulling from ../bgzip
 requesting all changes
 adding changesets
 adding manifests


More information about the Mercurial-devel mailing list