summaryrefslogtreecommitdiff
path: root/tests/test-bundle.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-bundle.t')
-rw-r--r--tests/test-bundle.t76
1 files changed, 25 insertions, 51 deletions
diff --git a/tests/test-bundle.t b/tests/test-bundle.t
index 305d8eb..54031c8 100644
--- a/tests/test-bundle.t
+++ b/tests/test-bundle.t
@@ -37,15 +37,6 @@ Setting up test
$ cd ..
$ hg init empty
-Bundle and phase
-
- $ hg -R test phase --force --secret 0
- $ hg -R test bundle phase.hg empty
- searching for changes
- no changes found (ignored 9 secret changesets)
- [1]
- $ hg -R test phase --draft -r 'head()'
-
Bundle --all
$ hg -R test bundle --all all.hg
@@ -99,6 +90,7 @@ Rollback empty
$ hg -R empty rollback
repository tip rolled back to revision -1 (undo pull)
+ working directory now based on revision -1
Pull full.hg into empty again (using --cwd)
@@ -129,6 +121,7 @@ Rollback empty
$ hg -R empty rollback
repository tip rolled back to revision -1 (undo pull)
+ working directory now based on revision -1
Pull full.hg into empty again (using -R)
@@ -205,8 +198,8 @@ Make sure bundlerepo doesn't leak tempfiles (issue2491)
Pull ../full.hg into empty (with hook)
- $ echo "[hooks]" >> .hg/hgrc
- $ echo "changegroup = python \"$TESTDIR/printenv.py\" changegroup" >> .hg/hgrc
+ $ echo '[hooks]' >> .hg/hgrc
+ $ echo 'changegroup = python "$TESTDIR"/printenv.py changegroup' >> .hg/hgrc
doesn't work (yet ?)
@@ -219,13 +212,14 @@ hg -R bundle://../full.hg verify
adding manifests
adding file changes
added 9 changesets with 7 changes to 4 files (+1 heads)
- changegroup hook: HG_NODE=f9ee2f85a263049e9ae6d37a0e67e96194ffb735 HG_SOURCE=pull HG_URL=bundle:../full.hg
+ changegroup hook: HG_NODE=f9ee2f85a263049e9ae6d37a0e67e96194ffb735 HG_SOURCE=pull HG_URL=bundle:../full.hg
(run 'hg heads' to see heads, 'hg merge' to merge)
Rollback empty
$ hg rollback
repository tip rolled back to revision -1 (undo pull)
+ working directory now based on revision -1
$ cd ..
Log -R bundle:empty+full.hg
@@ -242,7 +236,7 @@ Pull full.hg into empty again (using -R; with hook)
adding manifests
adding file changes
added 9 changesets with 7 changes to 4 files (+1 heads)
- changegroup hook: HG_NODE=f9ee2f85a263049e9ae6d37a0e67e96194ffb735 HG_SOURCE=pull HG_URL=bundle:empty+full.hg
+ changegroup hook: HG_NODE=f9ee2f85a263049e9ae6d37a0e67e96194ffb735 HG_SOURCE=pull HG_URL=bundle:empty+full.hg
(run 'hg heads' to see heads, 'hg merge' to merge)
Create partial clones
@@ -384,13 +378,10 @@ Outgoing -R full.hg vs partial2 in partial
Outgoing -R does-not-exist.hg vs partial2 in partial
$ hg -R bundle://../does-not-exist.hg outgoing ../partial2
- abort: *../does-not-exist.hg* (glob)
+ abort: No such file or directory: ../does-not-exist.hg
[255]
$ cd ..
-hide outer repo
- $ hg init
-
Direct clone from bundle (all-history)
$ hg clone full.hg full-clone
@@ -420,7 +411,7 @@ When cloning from a non-copiable repository into '', do not
recurse infinitely (issue 2528)
$ hg clone full.hg ''
- abort: empty destination path is not valid
+ abort: No such file or directory
[255]
test for http://mercurial.selenic.com/bts/issue216
@@ -540,36 +531,32 @@ bundle single branch
$ hg init branchy
$ cd branchy
$ echo a >a
- $ echo x >x
$ hg ci -Ama
adding a
- adding x
- $ echo c >c
- $ echo xx >x
- $ hg ci -Amc
- adding c
- $ echo c1 >c1
- $ hg ci -Amc1
- adding c1
- $ hg up 0
- 1 files updated, 0 files merged, 2 files removed, 0 files unresolved
$ echo b >b
$ hg ci -Amb
adding b
- created new head
$ echo b1 >b1
- $ echo xx >x
$ hg ci -Amb1
adding b1
- $ hg clone -q -r2 . part
+ $ hg up 0
+ 0 files updated, 0 files merged, 2 files removed, 0 files unresolved
+ $ echo c >c
+ $ hg ci -Amc
+ adding c
+ created new head
+ $ echo c1 >c1
+ $ hg ci -Amc1
+ adding c1
+ $ hg clone -q .#tip part
== bundling via incoming
$ hg in -R part --bundle incoming.hg --template "{node}\n" .
comparing with .
searching for changes
- 1a38c1b849e8b70c756d2d80b0b9a3ac0b7ea11a
- 057f4db07f61970e1c11e83be79e9d08adc4dc31
+ d2ae7f538514cd87c17547b0de4cea71fe1af9fb
+ 5ece8e77363e2b5269e27c66828b72da29e4341a
== bundling
@@ -579,25 +566,12 @@ bundle single branch
all remote heads known locally
2 changesets found
list of changesets:
- 1a38c1b849e8b70c756d2d80b0b9a3ac0b7ea11a
- 057f4db07f61970e1c11e83be79e9d08adc4dc31
+ d2ae7f538514cd87c17547b0de4cea71fe1af9fb
+ 5ece8e77363e2b5269e27c66828b72da29e4341a
bundling: 1/2 changesets (50.00%)
bundling: 2/2 changesets (100.00%)
bundling: 1/2 manifests (50.00%)
bundling: 2/2 manifests (100.00%)
- bundling: b 1/3 files (33.33%)
- bundling: b1 2/3 files (66.67%)
- bundling: x 3/3 files (100.00%)
+ bundling: b 1/2 files (50.00%)
+ bundling: b1 2/2 files (100.00%)
-== Test for issue3441
-
- $ hg clone -q -r0 . part2
- $ hg -q -R part2 pull bundle.hg
- $ hg -R part2 verify
- checking changesets
- checking manifests
- crosschecking files in changesets and manifests
- checking files
- 4 files, 3 changesets, 5 total revisions
-
- $ cd ..