##// END OF EJS Templates
tests: improve portability by no longer using the flag [tar --force-local]...
Arseniy Alekseyev -
r50353:b10e4c19 stable
parent child Browse files
Show More
@@ -177,14 +177,7 b" It's a tarball because unbundle might ma"
177 177 $ cd ..
178 178 $ mkdir repo-to-fix
179 179 $ cd repo-to-fix
180 #if windows
181 tar interprets `:` in paths (like `C:`) as being remote, force local on Windows
182 only since some versions of tar don't have this flag.
183
184 $ tar --force-local -xf $TESTDIR/bundles/issue6528.tar
185 #else
186 $ tar xf $TESTDIR/bundles/issue6528.tar
187 #endif
180 $ tar -x < $TESTDIR/bundles/issue6528.tar
188 181
189 182 Check that the issue is present
190 183 (It is currently not present with rhg but will be when optimizations are added
@@ -285,14 +278,7 b' Try the using the report options'
285 278 $ cd ..
286 279 $ mkdir repo-to-fix-report
287 280 $ cd repo-to-fix
288 #if windows
289 tar interprets `:` in paths (like `C:`) as being remote, force local on Windows
290 only since some versions of tar don't have this flag.
291
292 $ tar --force-local -xf $TESTDIR/bundles/issue6528.tar
293 #else
294 $ tar xf $TESTDIR/bundles/issue6528.tar
295 #endif
281 $ tar -x < "$TESTDIR"/bundles/issue6528.tar
296 282
297 283 $ hg debug-repair-issue6528 --to-report $TESTTMP/report.txt
298 284 found affected revision 1 for filelog 'data/D.txt.i'
@@ -379,14 +365,7 b' Try it with a non-inline revlog'
379 365
380 366 $ mkdir repo-to-fix-not-inline
381 367 $ cd repo-to-fix-not-inline
382 #if windows
383 tar interprets `:` in paths (like `C:`) as being remote, force local on Windows
384 only since some versions of tar don't have this flag.
385
386 $ tar --force-local -xf $TESTDIR/bundles/issue6528.tar
387 #else
388 $ tar xf $TESTDIR/bundles/issue6528.tar
389 #endif
368 $ tar -x < "$TESTDIR"/bundles/issue6528.tar
390 369 $ echo b >> b.txt
391 370 $ hg commit -qm "inline -> separate"
392 371 $ find .hg -name *b.txt.d
@@ -73,7 +73,7 b' This is what we did to produce the repo '
73 73 - hg commit -Am_
74 74 - remove some cache files
75 75
76 $ tar --force-local -xf "$TESTDIR"/bundles/test-revlog-diff-relative-to-nullrev.tar
76 $ tar -x < "$TESTDIR"/bundles/test-revlog-diff-relative-to-nullrev.tar
77 77 $ cd nullrev-diff
78 78 $ hg debugdeltachain a
79 79 rev p1 p2 chain# chainlen prev delta size rawsize chainsize ratio lindist extradist extraratio readsize largestblk rddensity srchunks
General Comments 0
You need to be logged in to leave comments. Login now