##// END OF EJS Templates
run-tests: give each child its own tmp dir (issue1911)...
run-tests: give each child its own tmp dir (issue1911) Fixes bug introduced by f8b4df4b033d (issue1911: --tmpdir plus parallel mode = fail), and also fixes the long-standing quirk that parallel mode created multiple /tmp/hgtests.XXXXXX directories. Now there is only one /tmp/hgtests.XXXXXX, with child0, child1, etc. under it.

File last commit:

r9820:0b999aec default
r9899:be574a37 stable
Show More
test-bundle
168 lines | 3.9 KiB | text/plain | TextLexer
Benoit Boissinot
tests for bundles and bundlerepo
r2274 #!/bin/sh
Alexis S. L. Carvalho
test-bundle: use printenv.py
r4287 cp "$TESTDIR"/printenv.py .
Peter Arrenbrecht
Add output markers to test-bundle so it's easier to spot the source of...
r5663 echo "====== Setting up test"
Benoit Boissinot
tests for bundles and bundlerepo
r2274 hg init test
cd test
echo 0 > afile
hg add afile
hg commit -m "0.0" -d "1000000 0"
echo 1 >> afile
hg commit -m "0.1" -d "1000000 0"
echo 2 >> afile
hg commit -m "0.2" -d "1000000 0"
echo 3 >> afile
hg commit -m "0.3" -d "1000000 0"
hg update -C 0
echo 1 >> afile
hg commit -m "1.1" -d "1000000 0"
echo 2 >> afile
hg commit -m "1.2" -d "1000000 0"
echo "a line" > fred
echo 3 >> afile
hg add fred
hg commit -m "1.3" -d "1000000 0"
hg mv afile adifferentfile
hg commit -m "1.3m" -d "1000000 0"
hg update -C 3
hg mv afile anotherfile
hg commit -m "0.3m" -d "1000000 0"
hg verify
cd ..
hg init empty
Peter Arrenbrecht
Add output markers to test-bundle so it's easier to spot the source of...
r5663
John Mulligan
Add --all option to bundle command
r6171 echo "====== Bundle --all"
hg -R test bundle --all all.hg
Matt Mackall
bundlerepo: reintroduce dirstate
r7853
Peter Arrenbrecht
Add output markers to test-bundle so it's easier to spot the source of...
r5663 echo "====== Bundle test to full.hg"
Benoit Boissinot
tests for bundles and bundlerepo
r2274 hg -R test bundle full.hg empty
Peter Arrenbrecht
Add output markers to test-bundle so it's easier to spot the source of...
r5663 echo "====== Unbundle full.hg in test"
Benoit Boissinot
tests for bundles and bundlerepo
r2274 hg -R test unbundle full.hg
Peter Arrenbrecht
Add output markers to test-bundle so it's easier to spot the source of...
r5663 echo "====== Verify empty"
Benoit Boissinot
tests for bundles and bundlerepo
r2274 hg -R empty heads
hg -R empty verify
Peter Arrenbrecht
Add output markers to test-bundle so it's easier to spot the source of...
r5663 echo "====== Pull full.hg into test (using --cwd)"
Vadim Gelfer
pull: allow to pull from bundle file without need for bundle: syntax
r2738 hg --cwd test pull ../full.hg
Peter Arrenbrecht
Add output markers to test-bundle so it's easier to spot the source of...
r5663 echo "====== Pull full.hg into empty (using --cwd)"
Vadim Gelfer
pull: allow to pull from bundle file without need for bundle: syntax
r2738 hg --cwd empty pull ../full.hg
Peter Arrenbrecht
Add output markers to test-bundle so it's easier to spot the source of...
r5663 echo "====== Rollback empty"
Vadim Gelfer
pull: allow to pull from bundle file without need for bundle: syntax
r2738 hg -R empty rollback
Peter Arrenbrecht
Add output markers to test-bundle so it's easier to spot the source of...
r5663 echo "====== Pull full.hg into empty again (using --cwd)"
Vadim Gelfer
pull: allow to pull from bundle file without need for bundle: syntax
r2738 hg --cwd empty pull ../full.hg
Peter Arrenbrecht
Fix income/pull with bundle and -R (issue 820)....
r5664 echo "====== Pull full.hg into test (using -R)"
hg -R test pull full.hg
echo "====== Pull full.hg into empty (using -R)"
hg -R empty pull full.hg
echo "====== Rollback empty"
hg -R empty rollback
echo "====== Pull full.hg into empty again (using -R)"
hg -R empty pull full.hg
Peter Arrenbrecht
Add output markers to test-bundle so it's easier to spot the source of...
r5663 echo "====== Log -R full.hg in fresh empty"
Thomas Arendsen Hein
Don't use -f for rm in tests where not needed. Drop /bin/ from /bin/rm.
r3988 rm -r empty
Benoit Boissinot
tests for bundles and bundlerepo
r2274 hg init empty
cd empty
hg -R bundle://../full.hg log
Peter Arrenbrecht
Add output markers to test-bundle so it's easier to spot the source of...
r5663
echo "====== Pull ../full.hg into empty (with hook)"
Vadim Gelfer
hooks: add url to changegroup, incoming, prechangegroup, pretxnchangegroup hooks...
r2673 echo '[hooks]' >> .hg/hgrc
Alexis S. L. Carvalho
test-bundle: use printenv.py
r4287 echo 'changegroup = python ../printenv.py changegroup' >> .hg/hgrc
Benoit Boissinot
tests for bundles and bundlerepo
r2274 #doesn't work (yet ?)
#hg -R bundle://../full.hg verify
hg pull bundle://../full.hg
Peter Arrenbrecht
bundlerepo: test exposing inconsistency of parsed and internal name (issue #821)
r6128 echo "====== Rollback empty"
hg rollback
Benoit Boissinot
tests for bundles and bundlerepo
r2274 cd ..
Peter Arrenbrecht
bundlerepo: test exposing inconsistency of parsed and internal name (issue #821)
r6128 echo "====== Log -R bundle:empty+full.hg"
hg -R bundle:empty+full.hg log --template="{rev} "
echo ""
echo "====== Pull full.hg into empty again (using -R; with hook)"
hg -R empty pull full.hg
Benoit Boissinot
tests for bundles and bundlerepo
r2274
Peter Arrenbrecht
Add output markers to test-bundle so it's easier to spot the source of...
r5663 echo "====== Create partial clones"
Thomas Arendsen Hein
Don't use -f for rm in tests where not needed. Drop /bin/ from /bin/rm.
r3988 rm -r empty
Benoit Boissinot
tests for bundles and bundlerepo
r2274 hg init empty
hg clone -r 3 test partial
hg clone partial partial2
cd partial
Peter Arrenbrecht
Add output markers to test-bundle so it's easier to spot the source of...
r5663 echo "====== Log -R full.hg in partial"
Benoit Boissinot
tests for bundles and bundlerepo
r2274 hg -R bundle://../full.hg log
Peter Arrenbrecht
Add output markers to test-bundle so it's easier to spot the source of...
r5663 echo "====== Incoming full.hg in partial"
Benoit Boissinot
tests for bundles and bundlerepo
r2274 hg incoming bundle://../full.hg
Peter Arrenbrecht
Add output markers to test-bundle so it's easier to spot the source of...
r5663 echo "====== Outgoing -R full.hg vs partial2 in partial"
Benoit Boissinot
tests for bundles and bundlerepo
r2274 hg -R bundle://../full.hg outgoing ../partial2
Peter Arrenbrecht
Add output markers to test-bundle so it's easier to spot the source of...
r5663 echo "====== Outgoing -R does-not-exist.hg vs partial2 in partial"
Alexis S. L. Carvalho
bundlerepo: avoid exception in __del__ when the bundle doesn't exist...
r3429 hg -R bundle://../does-not-exist.hg outgoing ../partial2
Benoit Boissinot
tests for bundles and bundlerepo
r2274 cd ..
Alexis S. L. Carvalho
add test for 540d1059c802
r4042
John Mulligan
Add tests for cloning from a all-history bundle
r6316 echo "====== Direct clone from bundle (all-history)"
hg clone full.hg full-clone
hg -R full-clone heads
rm -r full-clone
Dirkjan Ochtman
change wiki/bts URLs to point to new hostname
r8936 # test for http://mercurial.selenic.com/bts/issue216
Peter Arrenbrecht
Add output markers to test-bundle so it's easier to spot the source of...
r5663 echo "====== Unbundle incremental bundles into fresh empty in one go"
Giorgos Keramidas
unbundle: accept multiple file arguments...
r4699 rm -r empty
hg init empty
hg -R test bundle --base null -r 0 ../0.hg
hg -R test bundle --base 0 -r 1 ../1.hg
hg -R empty unbundle -u ../0.hg ../1.hg
Alexis S. L. Carvalho
add test for 540d1059c802
r4042 # test for 540d1059c802
Peter Arrenbrecht
Add output markers to test-bundle so it's easier to spot the source of...
r5663 echo "====== test for 540d1059c802"
Alexis S. L. Carvalho
add test for 540d1059c802
r4042 hg init orig
cd orig
echo foo > foo
hg add foo
Martin Geisler
tests: removed redundant "-d '0 0'" from test scripts...
r8167 hg ci -m 'add foo'
Alexis S. L. Carvalho
add test for 540d1059c802
r4042
hg clone . ../copy
Martin Geisler
tests: removed redundant "-d '0 0'" from test scripts...
r8167 hg tag foo
Alexis S. L. Carvalho
add test for 540d1059c802
r4042
cd ../copy
echo >> foo
Martin Geisler
tests: removed redundant "-d '0 0'" from test scripts...
r8167 hg ci -m 'change foo'
Alexis S. L. Carvalho
add test for 540d1059c802
r4042 hg bundle ../bundle.hg ../orig
cd ../orig
hg incoming ../bundle.hg
cd ..
John Mulligan
issue 1144: prevent traceback on verify of bundles
r7141
Dirkjan Ochtman
change wiki/bts URLs to point to new hostname
r8936 # test for http://mercurial.selenic.com/bts/issue1144
John Mulligan
issue 1144: prevent traceback on verify of bundles
r7141 echo "===== test that verify bundle does not traceback"
# partial history bundle, fails w/ unkown parent
hg -R bundle.hg verify
# full history bundle, refuses to verify non-local repo
hg -R all.hg verify
# but, regular verify must continue to work
hg -R orig verify
Matt Mackall
bundlerepo: reintroduce dirstate
r7853 echo "====== diff against bundle"
hg init b
cd b
hg -R ../all.hg diff -r tip
cd ..
John Mulligan
issue 1144: prevent traceback on verify of bundles
r7141
Peter Arrenbrecht
bundle: don't send too many changesets (Issue1704)...
r9820 echo "====== bundle single branch"
hg init branchy
cd branchy
echo a >a
hg ci -Ama
echo b >b
hg ci -Amb
echo b1 >b1
hg ci -Amb1
hg up 0
echo c >c
hg ci -Amc
echo c1 >c1
hg ci -Amc1
hg clone -q .#tip part
echo "== bundling via incoming"
hg in -R part --bundle incoming.hg --template "{node}\n" .
echo "== bundling"
hg bundle bundle.hg part --debug
Matt Mackall
bundlerepo: reintroduce dirstate
r7853