##// END OF EJS Templates
tests: use pattern matching to mask `ECONNREFUSED` messages...
tests: use pattern matching to mask `ECONNREFUSED` messages The second and third one of these in `test-http-proxy.t` was failing on Windows. The others were found by grep and by failed tests when output was matched and an attempt was made to emit the mask pattern. The first clonebundles failure on Windows emitted: error fetching bundle: [WinError 10061] $ECONNREFUSED$ We should probably stringify that better to get rid of the "[WinError 10061]" part.

File last commit:

r48168:26127236 default
r52835:73a43fe3 default
Show More
test-convert-bzr-treeroot.t
37 lines | 829 B | text/troff | Tads3Lexer
/ tests / test-convert-bzr-treeroot.t
Gregory Szorc
tests: move '#require bzr' into .t files...
r26066 #require bzr
Matt Mackall
tests: unify test-convert-bzr-treeroot
r12517
$ . "$TESTDIR/bzr-definitions"
$ cat > treeset.py <<EOF
> import sys
Raphaël Gomès
convert-bazaar: use breezy package instead of old bzr one...
r48168 > from breezy import workingtree
> import breezy.bzr.bzrdir
Matt Mackall
tests: unify test-convert-bzr-treeroot
r12517 > wt = workingtree.WorkingTree.open('.')
>
> message, rootid = sys.argv[1:]
Raphaël Gomès
convert-bazaar: use breezy package instead of old bzr one...
r48168 > wt.set_root_id(b'tree_root-%s' % rootid.encode())
Matt Mackall
tests: unify test-convert-bzr-treeroot
r12517 > wt.commit(message)
> EOF
change the id of the tree root
$ mkdir test-change-treeroot-id
$ cd test-change-treeroot-id
Raphaël Gomès
convert-bazaar: use breezy package instead of old bzr one...
r48168 $ brz init -q source
Matt Mackall
tests: unify test-convert-bzr-treeroot
r12517 $ cd source
$ echo content > file
Raphaël Gomès
convert-bazaar: use breezy package instead of old bzr one...
r48168 $ brz add -q file
$ brz commit -q -m 'Initial add'
Matt Harbison
tests: quote PYTHON usage...
r39743 $ "$PYTHON" ../../treeset.py 'Changed root' new
Matt Mackall
tests: unify test-convert-bzr-treeroot
r12517 $ cd ..
$ hg convert source source-hg
initializing destination source-hg repository
scanning source...
sorting...
converting...
1 Initial add
0 Changed root
$ manifest source-hg tip
% manifest of tip
644 file
Mads Kiilerich
tests: add missing trailing 'cd ..'...
r16913
$ cd ..