##// END OF EJS Templates
revlog: subclass the new `repository.iverifyproblem` Protocol class...
revlog: subclass the new `repository.iverifyproblem` Protocol class This is the same transformation as 3a90a6fd710d did for dirstate, but the CamelCase naming was already cleaned up here. We shouldn't have to explicitly subclass, but I'm doing so to test the interplay of regular attributes and the `attrs` class. Also, PyCharm has a nifty feature that puts a jump point in the gutter to navigate back and forth between the base class and subclasses (and override functions and base class functions) when there's an explicit subclassing. Additionally, PyCharm will immediately flag signature mismatches without a 40m pytype run.

File last commit:

r50472:53e4f44b default
r53365:4ef6dbc2 default
Show More
test-pull-bundle.t
213 lines | 6.8 KiB | text/troff | Tads3Lexer
/ tests / test-pull-bundle.t
Kyle Lippincott
tests: mark tests that fail when using chg as #require no-chg...
r38041 #require no-chg
Joerg Sonnenberger
wireproto: support for pullbundles...
r37516 $ hg init repo
$ cd repo
Joerg Sonnenberger
tests: simplify and extend pull-bundle test using debugbuilddag...
r46575 $ hg debugbuilddag '+3<3+1'
Joerg Sonnenberger
wireproto: support for pullbundles...
r37516
$ hg log
Joerg Sonnenberger
tests: simplify and extend pull-bundle test using debugbuilddag...
r46575 changeset: 3:6100d3090acf
Joerg Sonnenberger
wireproto: support for pullbundles...
r37516 tag: tip
Joerg Sonnenberger
tests: simplify and extend pull-bundle test using debugbuilddag...
r46575 parent: 0:1ea73414a91b
user: debugbuilddag
date: Thu Jan 01 00:00:03 1970 +0000
summary: r3
Joerg Sonnenberger
wireproto: support for pullbundles...
r37516
Joerg Sonnenberger
tests: simplify and extend pull-bundle test using debugbuilddag...
r46575 changeset: 2:01241442b3c2
user: debugbuilddag
date: Thu Jan 01 00:00:02 1970 +0000
summary: r2
Joerg Sonnenberger
wireproto: support for pullbundles...
r37516
Joerg Sonnenberger
tests: simplify and extend pull-bundle test using debugbuilddag...
r46575 changeset: 1:66f7d451a68b
user: debugbuilddag
date: Thu Jan 01 00:00:01 1970 +0000
summary: r1
changeset: 0:1ea73414a91b
user: debugbuilddag
Joerg Sonnenberger
wireproto: support for pullbundles...
r37516 date: Thu Jan 01 00:00:00 1970 +0000
Joerg Sonnenberger
tests: simplify and extend pull-bundle test using debugbuilddag...
r46575 summary: r0
Joerg Sonnenberger
wireproto: support for pullbundles...
r37516
$ cd ..
Test pullbundle functionality
$ cd repo
$ cat <<EOF > .hg/hgrc
Joerg Sonnenberger
pullbundles: use unfiltered repo for head/base matching...
r45305 > [experimental]
> evolution = True
Joerg Sonnenberger
wireproto: support for pullbundles...
r37516 > [extensions]
> blackbox =
> EOF
$ hg bundle --base null -r 0 .hg/0.hg
1 changesets found
$ hg bundle --base 0 -r 1 .hg/1.hg
1 changesets found
$ hg bundle --base 1 -r 2 .hg/2.hg
1 changesets found
Joerg Sonnenberger
tests: simplify and extend pull-bundle test using debugbuilddag...
r46575 $ hg bundle --base 1 -r 3 .hg/3.hg
1 changesets found
Joerg Sonnenberger
wireproto: support for pullbundles...
r37516 $ cat <<EOF > .hg/pullbundles.manifest
Joerg Sonnenberger
tests: simplify and extend pull-bundle test using debugbuilddag...
r46575 > 3.hg BUNDLESPEC=none-v2 heads=6100d3090acf50ed11ec23196cec20f5bd7323aa bases=1ea73414a91b0920940797d8fc6a11e447f8ea1e
> 2.hg BUNDLESPEC=none-v2 heads=01241442b3c2bf3211e593b549c655ea65b295e3 bases=66f7d451a68b85ed82ff5fcc254daf50c74144bd
> 1.hg BUNDLESPEC=bzip2-v2 heads=66f7d451a68b85ed82ff5fcc254daf50c74144bd bases=1ea73414a91b0920940797d8fc6a11e447f8ea1e
> 0.hg BUNDLESPEC=gzip-v2 heads=1ea73414a91b0920940797d8fc6a11e447f8ea1e
Joerg Sonnenberger
wireproto: support for pullbundles...
r37516 > EOF
test: check server error output in `test-pull-bundle.t`...
r46322 $ hg --config blackbox.track=debug --debug serve -p $HGPORT2 -d --pid-file=../repo.pid -E ../error.txt
Augie Fackler
tests: glob away fqdn wherever we print it...
r37610 listening at http://*:$HGPORT2/ (bound to $LOCALIP:$HGPORT2) (glob) (?)
Joerg Sonnenberger
wireproto: support for pullbundles...
r37516 $ cat ../repo.pid >> $DAEMON_PIDS
$ cd ..
$ hg clone -r 0 http://localhost:$HGPORT2/ repo.pullbundle
adding changesets
adding manifests
adding file changes
Joerg Sonnenberger
tests: simplify and extend pull-bundle test using debugbuilddag...
r46575 added 1 changesets with 0 changes to 0 files
new changesets 1ea73414a91b (1 drafts)
Joerg Sonnenberger
wireproto: support for pullbundles...
r37516 updating to branch default
Joerg Sonnenberger
tests: simplify and extend pull-bundle test using debugbuilddag...
r46575 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
test: check server error output in `test-pull-bundle.t`...
r46322 $ cat error.txt
Joerg Sonnenberger
wireproto: support for pullbundles...
r37516 $ cd repo.pullbundle
$ hg pull -r 1
pulling from http://localhost:$HGPORT2/
searching for changes
adding changesets
adding manifests
adding file changes
Joerg Sonnenberger
tests: simplify and extend pull-bundle test using debugbuilddag...
r46575 added 1 changesets with 0 changes to 0 files
new changesets 66f7d451a68b (1 drafts)
Joerg Sonnenberger
wireproto: support for pullbundles...
r37516 (run 'hg update' to get a working copy)
Joerg Sonnenberger
tests: simplify and extend pull-bundle test using debugbuilddag...
r46575 $ hg pull -r 3
Joerg Sonnenberger
wireproto: support for pullbundles...
r37516 pulling from http://localhost:$HGPORT2/
searching for changes
adding changesets
adding manifests
adding file changes
Joerg Sonnenberger
tests: simplify and extend pull-bundle test using debugbuilddag...
r46575 added 1 changesets with 0 changes to 0 files (+1 heads)
new changesets 6100d3090acf (1 drafts)
Joerg Sonnenberger
wireproto: support for pullbundles...
r37516 (run 'hg heads' to see heads, 'hg merge' to merge)
$ cd ..
$ killdaemons.py
$ grep 'sending pullbundle ' repo/.hg/blackbox.log
* sending pullbundle "0.hg" (glob)
* sending pullbundle "1.hg" (glob)
Joerg Sonnenberger
tests: simplify and extend pull-bundle test using debugbuilddag...
r46575 * sending pullbundle "3.hg" (glob)
Joerg Sonnenberger
wireproto: support for pullbundles...
r37516 $ rm repo/.hg/blackbox.log
Test pullbundle functionality for incremental pulls
$ cd repo
$ hg --config blackbox.track=debug --debug serve -p $HGPORT2 -d --pid-file=../repo.pid
Augie Fackler
tests: glob away fqdn wherever we print it...
r37610 listening at http://*:$HGPORT2/ (bound to $LOCALIP:$HGPORT2) (glob) (?)
Joerg Sonnenberger
wireproto: support for pullbundles...
r37516 $ cat ../repo.pid >> $DAEMON_PIDS
$ cd ..
$ hg clone http://localhost:$HGPORT2/ repo.pullbundle2
requesting all changes
adding changesets
adding manifests
adding file changes
adding changesets
adding manifests
adding file changes
adding changesets
adding manifests
adding file changes
Joerg Sonnenberger
tests: simplify and extend pull-bundle test using debugbuilddag...
r46575 adding changesets
adding manifests
adding file changes
added 4 changesets with 0 changes to 0 files (+1 heads)
new changesets 1ea73414a91b:01241442b3c2 (4 drafts)
Joerg Sonnenberger
wireproto: support for pullbundles...
r37516 updating to branch default
Joerg Sonnenberger
tests: simplify and extend pull-bundle test using debugbuilddag...
r46575 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
Joerg Sonnenberger
wireproto: support for pullbundles...
r37516 $ killdaemons.py
$ grep 'sending pullbundle ' repo/.hg/blackbox.log
* sending pullbundle "0.hg" (glob)
Joerg Sonnenberger
tests: simplify and extend pull-bundle test using debugbuilddag...
r46575 * sending pullbundle "3.hg" (glob)
* sending pullbundle "1.hg" (glob)
Joerg Sonnenberger
wireproto: support for pullbundles...
r37516 * sending pullbundle "2.hg" (glob)
$ rm repo/.hg/blackbox.log
Joerg Sonnenberger
bundle2: handle compression in _forwardchunks...
r42319 Test pullbundle functionality for incoming
$ cd repo
$ hg --config blackbox.track=debug --debug serve -p $HGPORT2 -d --pid-file=../repo.pid
listening at http://*:$HGPORT2/ (bound to $LOCALIP:$HGPORT2) (glob) (?)
$ cat ../repo.pid >> $DAEMON_PIDS
$ cd ..
$ hg clone http://localhost:$HGPORT2/ repo.pullbundle2a -r 0
adding changesets
adding manifests
adding file changes
Joerg Sonnenberger
tests: simplify and extend pull-bundle test using debugbuilddag...
r46575 added 1 changesets with 0 changes to 0 files
new changesets 1ea73414a91b (1 drafts)
Joerg Sonnenberger
bundle2: handle compression in _forwardchunks...
r42319 updating to branch default
Joerg Sonnenberger
tests: simplify and extend pull-bundle test using debugbuilddag...
r46575 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
Joerg Sonnenberger
bundle2: handle compression in _forwardchunks...
r42319 $ cd repo.pullbundle2a
Joerg Sonnenberger
tests: simplify and extend pull-bundle test using debugbuilddag...
r46575 $ hg incoming -r 66f7d451a68b
Joerg Sonnenberger
bundle2: handle compression in _forwardchunks...
r42319 comparing with http://localhost:$HGPORT2/
searching for changes
Joerg Sonnenberger
tests: simplify and extend pull-bundle test using debugbuilddag...
r46575 changeset: 1:66f7d451a68b
Joerg Sonnenberger
bundle2: handle compression in _forwardchunks...
r42319 tag: tip
Joerg Sonnenberger
tests: simplify and extend pull-bundle test using debugbuilddag...
r46575 user: debugbuilddag
date: Thu Jan 01 00:00:01 1970 +0000
summary: r1
Joerg Sonnenberger
bundle2: handle compression in _forwardchunks...
r42319
$ cd ..
$ killdaemons.py
$ grep 'sending pullbundle ' repo/.hg/blackbox.log
* sending pullbundle "0.hg" (glob)
* sending pullbundle "1.hg" (glob)
$ rm repo/.hg/blackbox.log
Joerg Sonnenberger
wireproto: support for pullbundles...
r37516 Test recovery from misconfigured server sending no new data
$ cd repo
$ cat <<EOF > .hg/pullbundles.manifest
Joerg Sonnenberger
tests: simplify and extend pull-bundle test using debugbuilddag...
r46575 > 0.hg heads=66f7d451a68b85ed82ff5fcc254daf50c74144bd bases=1ea73414a91b0920940797d8fc6a11e447f8ea1e
> 0.hg heads=1ea73414a91b0920940797d8fc6a11e447f8ea1e
Joerg Sonnenberger
wireproto: support for pullbundles...
r37516 > EOF
$ hg --config blackbox.track=debug --debug serve -p $HGPORT2 -d --pid-file=../repo.pid
Augie Fackler
tests: glob away fqdn wherever we print it...
r37610 listening at http://*:$HGPORT2/ (bound to $LOCALIP:$HGPORT2) (glob) (?)
Joerg Sonnenberger
wireproto: support for pullbundles...
r37516 $ cat ../repo.pid >> $DAEMON_PIDS
$ cd ..
$ hg clone -r 0 http://localhost:$HGPORT2/ repo.pullbundle3
adding changesets
adding manifests
adding file changes
Joerg Sonnenberger
tests: simplify and extend pull-bundle test using debugbuilddag...
r46575 added 1 changesets with 0 changes to 0 files
new changesets 1ea73414a91b (1 drafts)
Joerg Sonnenberger
wireproto: support for pullbundles...
r37516 updating to branch default
Joerg Sonnenberger
tests: simplify and extend pull-bundle test using debugbuilddag...
r46575 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
Joerg Sonnenberger
wireproto: support for pullbundles...
r37516 $ cd repo.pullbundle3
$ hg pull -r 1
pulling from http://localhost:$HGPORT2/
searching for changes
adding changesets
adding manifests
adding file changes
revlog: use revlog.display_id in LookupError...
r47926 abort: 00changelog@66f7d451a68b85ed82ff5fcc254daf50c74144bd: no node
Martin von Zweigbergk
errors: use detailed exit code 50 for StorageError...
r46732 [50]
Joerg Sonnenberger
wireproto: support for pullbundles...
r37516 $ cd ..
$ killdaemons.py
$ grep 'sending pullbundle ' repo/.hg/blackbox.log
* sending pullbundle "0.hg" (glob)
* sending pullbundle "0.hg" (glob)
$ rm repo/.hg/blackbox.log
Joerg Sonnenberger
pullbundles: use unfiltered repo for head/base matching...
r45305
Joerg Sonnenberger
pullbundle: fix file name in the help text...
r49837 Test processing when nodes used in the pullbundles.manifest end up being hidden
Joerg Sonnenberger
pullbundles: use unfiltered repo for head/base matching...
r45305
$ hg --repo repo debugobsolete ed1b79f46b9a29f5a6efa59cf12fcfca43bead5a
1 new obsolescence markers
$ hg serve --repo repo --config server.view=visible -p $HGPORT -d --pid-file=hg.pid -E errors.log
$ cat hg.pid >> $DAEMON_PIDS
$ hg clone http://localhost:$HGPORT repo-obs
requesting all changes
adding changesets
adding manifests
adding file changes
adding changesets
adding manifests
adding file changes
Joerg Sonnenberger
tests: simplify and extend pull-bundle test using debugbuilddag...
r46575 added 1 changesets with 0 changes to 0 files
new changesets 1ea73414a91b (1 drafts)
Joerg Sonnenberger
pullbundles: use unfiltered repo for head/base matching...
r45305 updating to branch default
Joerg Sonnenberger
tests: simplify and extend pull-bundle test using debugbuilddag...
r46575 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
Joerg Sonnenberger
pullbundles: use unfiltered repo for head/base matching...
r45305 $ killdaemons.py