##// END OF EJS Templates
tests: fix test-sparse-revlog...
tests: fix test-sparse-revlog This one is not covered by the CIbecause I requires an expensive artifact to be cached. So it goes out of think on regular basis (we should fix that…) The test ouput was affected by e706bb41fdb3 as we filtering now happens sooner, removing for the output.

File last commit:

r47858:1d075b85 stable
r50521:da636e7a default
Show More
test-convert-svn-encoding.t
217 lines | 9.3 KiB | text/troff | Tads3Lexer
/ tests / test-convert-svn-encoding.t
Matt Mackall
tests: replace exit 80 with #require
r22046 #require svn svn-bindings
Dan Villiom Podlaski Christiansen
tests: unify test-convert-svn-*
r12370
Martin Geisler
tests: don't overwrite HGRCPATH...
r13519 $ cat >> $HGRCPATH <<EOF
Dan Villiom Podlaski Christiansen
tests: unify test-convert-svn-*
r12370 > [extensions]
Mads Kiilerich
check-code: fix check for trailing whitespace on continued lines too...
r17347 > convert =
Dan Villiom Podlaski Christiansen
tests: unify test-convert-svn-*
r12370 > EOF
$ svnadmin create svn-repo
$ svnadmin load -q svn-repo < "$TESTDIR/svn/encoding.svndump"
Convert while testing all possible outputs
Pierre-Yves David
progress: get the extremely verbose output out of default debug...
r25125 $ hg --debug convert svn-repo A-hg --config progress.debug=1
Dan Villiom Podlaski Christiansen
tests: unify test-convert-svn-*
r12370 initializing destination A-hg repository
Augie Fackler
tests: update expected output of svn encoding test...
r35467 reparent to file:/*/$TESTTMP/svn-repo (glob)
Dan Villiom Podlaski Christiansen
tests: unify test-convert-svn-*
r12370 run hg sink pre-conversion action
scanning source...
found trunk at 'trunk'
found tags at 'tags'
found branches at 'branches'
Mads Kiilerich
tests: use (esc) for all non-ASCII test output
r12942 found branch branch\xc3\xa9 at 5 (esc)
found branch branch\xc3\xa9e at 6 (esc)
Augie Fackler
convert: enable deterministic conversion progress bar for svn...
r22414 scanning: 1/4 revisions (25.00%)
Augie Fackler
tests: update expected output of svn encoding test...
r35467 reparent to file:/*/$TESTTMP/svn-repo/trunk (glob)
Dan Villiom Podlaski Christiansen
tests: unify test-convert-svn-*
r12370 fetching revision log for "/trunk" from 4 to 0
parsing revision 4 (2 changes)
parsing revision 3 (4 changes)
parsing revision 2 (3 changes)
parsing revision 1 (3 changes)
no copyfrom path, don't know what to do.
'/branches' is not under '/trunk', ignoring
'/tags' is not under '/trunk', ignoring
Augie Fackler
convert: enable deterministic conversion progress bar for svn...
r22414 scanning: 2/4 revisions (50.00%)
Augie Fackler
tests: update expected output of svn encoding test...
r35467 reparent to file:/*/$TESTTMP/svn-repo/branches/branch%C3%A9 (glob)
Mads Kiilerich
tests: use (esc) for all non-ASCII test output
r12942 fetching revision log for "/branches/branch\xc3\xa9" from 5 to 0 (esc)
Dan Villiom Podlaski Christiansen
tests: unify test-convert-svn-*
r12370 parsing revision 5 (1 changes)
Augie Fackler
tests: update expected output of svn encoding test...
r35467 reparent to file:/*/$TESTTMP/svn-repo (glob)
reparent to file:/*/$TESTTMP/svn-repo/branches/branch%C3%A9 (glob)
Mads Kiilerich
tests: use (esc) for all non-ASCII test output
r12942 found parent of branch /branches/branch\xc3\xa9 at 4: /trunk (esc)
Augie Fackler
convert: enable deterministic conversion progress bar for svn...
r22414 scanning: 3/4 revisions (75.00%)
Augie Fackler
tests: update expected output of svn encoding test...
r35467 reparent to file:/*/$TESTTMP/svn-repo/branches/branch%C3%A9e (glob)
Mads Kiilerich
tests: use (esc) for all non-ASCII test output
r12942 fetching revision log for "/branches/branch\xc3\xa9e" from 6 to 0 (esc)
Dan Villiom Podlaski Christiansen
tests: unify test-convert-svn-*
r12370 parsing revision 6 (1 changes)
Augie Fackler
tests: update expected output of svn encoding test...
r35467 reparent to file:/*/$TESTTMP/svn-repo (glob)
reparent to file:/*/$TESTTMP/svn-repo/branches/branch%C3%A9e (glob)
Mads Kiilerich
tests: use (esc) for all non-ASCII test output
r12942 found parent of branch /branches/branch\xc3\xa9e at 5: /branches/branch\xc3\xa9 (esc)
Augie Fackler
convert: enable deterministic conversion progress bar for svn...
r22414 scanning: 4/4 revisions (100.00%)
scanning: 5/4 revisions (125.00%)
scanning: 6/4 revisions (150.00%)
Dan Villiom Podlaski Christiansen
tests: unify test-convert-svn-*
r12370 sorting...
converting...
5 init projA
source: svn:afeb9c47-92ff-4c0c-9f72-e1f6eb8ac9af/trunk@1
converting: 0/6 revisions (0.00%)
Yuya Nishihara
commit: add debug message regarding manifest reuse
r39145 reusing manifest from p1 (no file change)
Mads Kiilerich
localrepo: show headline notes in commitctx before showing filenames...
r23749 committing changelog
Pierre-Yves David
caches: move the 'updating the branch cache' message in 'updatecaches'...
r32267 updating the branch cache
Dan Villiom Podlaski Christiansen
tests: unify test-convert-svn-*
r12370 4 hello
source: svn:afeb9c47-92ff-4c0c-9f72-e1f6eb8ac9af/trunk@2
converting: 1/6 revisions (16.67%)
Augie Fackler
tests: update expected output of svn encoding test...
r35467 reparent to file:/*/$TESTTMP/svn-repo/trunk (glob)
av6
convert: specify unit for ui.progress when scanning paths
r28471 scanning paths: /trunk/\xc3\xa0 0/3 paths (0.00%) (esc)
scanning paths: /trunk/\xc3\xa0/e\xcc\x81 1/3 paths (33.33%) (esc)
scanning paths: /trunk/\xc3\xa9 2/3 paths (66.67%) (esc)
Mads Kiilerich
localrepo: show headline notes in commitctx before showing filenames...
r23749 committing files:
Mads Kiilerich
tests: use (esc) for all non-ASCII test output
r12942 \xc3\xa0/e\xcc\x81 (esc)
av6
convert: specify unit for ui.progress when operating on files
r28470 getting files: \xc3\xa0/e\xcc\x81 1/2 files (50.00%) (esc)
Mads Kiilerich
tests: use (esc) for all non-ASCII test output
r12942 \xc3\xa9 (esc)
av6
convert: specify unit for ui.progress when operating on files
r28470 getting files: \xc3\xa9 2/2 files (100.00%) (esc)
Mads Kiilerich
localrepo: show headline notes in commitctx before showing filenames...
r23749 committing manifest
committing changelog
Pierre-Yves David
caches: move the 'updating the branch cache' message in 'updatecaches'...
r32267 updating the branch cache
Dan Villiom Podlaski Christiansen
tests: unify test-convert-svn-*
r12370 3 copy files
source: svn:afeb9c47-92ff-4c0c-9f72-e1f6eb8ac9af/trunk@3
converting: 2/6 revisions (33.33%)
av6
convert: specify unit for ui.progress when scanning paths
r28471 scanning paths: /trunk/\xc3\xa0 0/4 paths (0.00%) (esc)
Dan Villiom Podlaski Christiansen
tests: unify test-convert-svn-*
r12370 gone from -1
Augie Fackler
tests: update expected output of svn encoding test...
r35467 reparent to file:/*/$TESTTMP/svn-repo (glob)
reparent to file:/*/$TESTTMP/svn-repo/trunk (glob)
av6
convert: specify unit for ui.progress when scanning paths
r28471 scanning paths: /trunk/\xc3\xa8 1/4 paths (25.00%) (esc)
Mads Kiilerich
tests: use (esc) for all non-ASCII test output
r12942 copied to \xc3\xa8 from \xc3\xa9@2 (esc)
av6
convert: specify unit for ui.progress when scanning paths
r28471 scanning paths: /trunk/\xc3\xa9 2/4 paths (50.00%) (esc)
Dan Villiom Podlaski Christiansen
tests: unify test-convert-svn-*
r12370 gone from -1
Augie Fackler
tests: update expected output of svn encoding test...
r35467 reparent to file:/*/$TESTTMP/svn-repo (glob)
reparent to file:/*/$TESTTMP/svn-repo/trunk (glob)
av6
convert: specify unit for ui.progress when scanning paths
r28471 scanning paths: /trunk/\xc3\xb9 3/4 paths (75.00%) (esc)
Mads Kiilerich
tests: use (esc) for all non-ASCII test output
r12942 mark /trunk/\xc3\xb9 came from \xc3\xa0:2 (esc)
av6
convert: specify unit for ui.progress when operating on files
r28470 getting files: \xc3\xa0/e\xcc\x81 1/4 files (25.00%) (esc)
getting files: \xc3\xa9 2/4 files (50.00%) (esc)
Mads Kiilerich
localrepo: show headline notes in commitctx before showing filenames...
r23749 committing files:
Mads Kiilerich
tests: use (esc) for all non-ASCII test output
r12942 \xc3\xa8 (esc)
av6
convert: specify unit for ui.progress when operating on files
r28470 getting files: \xc3\xa8 3/4 files (75.00%) (esc)
Mads Kiilerich
tests: use (esc) for all non-ASCII test output
r12942 \xc3\xa8: copy \xc3\xa9:6b67ccefd5ce6de77e7ead4f5292843a0255329f (esc)
\xc3\xb9/e\xcc\x81 (esc)
av6
convert: specify unit for ui.progress when operating on files
r28470 getting files: \xc3\xb9/e\xcc\x81 4/4 files (100.00%) (esc)
Mads Kiilerich
tests: use (esc) for all non-ASCII test output
r12942 \xc3\xb9/e\xcc\x81: copy \xc3\xa0/e\xcc\x81:a9092a3d84a37b9993b5c73576f6de29b7ea50f6 (esc)
Mads Kiilerich
localrepo: show headline notes in commitctx before showing filenames...
r23749 committing manifest
committing changelog
Pierre-Yves David
caches: move the 'updating the branch cache' message in 'updatecaches'...
r32267 updating the branch cache
Dan Villiom Podlaski Christiansen
tests: unify test-convert-svn-*
r12370 2 remove files
source: svn:afeb9c47-92ff-4c0c-9f72-e1f6eb8ac9af/trunk@4
converting: 3/6 revisions (50.00%)
av6
convert: specify unit for ui.progress when scanning paths
r28471 scanning paths: /trunk/\xc3\xa8 0/2 paths (0.00%) (esc)
Dan Villiom Podlaski Christiansen
tests: unify test-convert-svn-*
r12370 gone from -1
Augie Fackler
tests: update expected output of svn encoding test...
r35467 reparent to file:/*/$TESTTMP/svn-repo (glob)
reparent to file:/*/$TESTTMP/svn-repo/trunk (glob)
av6
convert: specify unit for ui.progress when scanning paths
r28471 scanning paths: /trunk/\xc3\xb9 1/2 paths (50.00%) (esc)
Dan Villiom Podlaski Christiansen
tests: unify test-convert-svn-*
r12370 gone from -1
Augie Fackler
tests: update expected output of svn encoding test...
r35467 reparent to file:/*/$TESTTMP/svn-repo (glob)
reparent to file:/*/$TESTTMP/svn-repo/trunk (glob)
av6
convert: specify unit for ui.progress when operating on files
r28470 getting files: \xc3\xa8 1/2 files (50.00%) (esc)
getting files: \xc3\xb9/e\xcc\x81 2/2 files (100.00%) (esc)
Mads Kiilerich
localrepo: show headline notes in commitctx before showing filenames...
r23749 committing files:
committing manifest
committing changelog
Pierre-Yves David
caches: move the 'updating the branch cache' message in 'updatecaches'...
r32267 updating the branch cache
Dan Villiom Podlaski Christiansen
tests: unify test-convert-svn-*
r12370 1 branch to branch?
source: svn:afeb9c47-92ff-4c0c-9f72-e1f6eb8ac9af/branches/branch?@5
converting: 4/6 revisions (66.67%)
Augie Fackler
tests: update expected output of svn encoding test...
r35467 reparent to file:/*/$TESTTMP/svn-repo/branches/branch%C3%A9 (glob)
av6
convert: specify unit for ui.progress when scanning paths
r28471 scanning paths: /branches/branch\xc3\xa9 0/1 paths (0.00%) (esc)
Yuya Nishihara
commit: add debug message regarding manifest reuse
r39145 reusing manifest from p1 (no file change)
Mads Kiilerich
localrepo: show headline notes in commitctx before showing filenames...
r23749 committing changelog
Pierre-Yves David
caches: move the 'updating the branch cache' message in 'updatecaches'...
r32267 updating the branch cache
Dan Villiom Podlaski Christiansen
tests: unify test-convert-svn-*
r12370 0 branch to branch?e
source: svn:afeb9c47-92ff-4c0c-9f72-e1f6eb8ac9af/branches/branch?e@6
converting: 5/6 revisions (83.33%)
Augie Fackler
tests: update expected output of svn encoding test...
r35467 reparent to file:/*/$TESTTMP/svn-repo/branches/branch%C3%A9e (glob)
av6
convert: specify unit for ui.progress when scanning paths
r28471 scanning paths: /branches/branch\xc3\xa9e 0/1 paths (0.00%) (esc)
Yuya Nishihara
commit: add debug message regarding manifest reuse
r39145 reusing manifest from p1 (no file change)
Mads Kiilerich
localrepo: show headline notes in commitctx before showing filenames...
r23749 committing changelog
Pierre-Yves David
caches: move the 'updating the branch cache' message in 'updatecaches'...
r32267 updating the branch cache
Augie Fackler
tests: update expected output of svn encoding test...
r35467 reparent to file:/*/$TESTTMP/svn-repo (glob)
reparent to file:/*/$TESTTMP/svn-repo/branches/branch%C3%A9e (glob)
reparent to file:/*/$TESTTMP/svn-repo (glob)
reparent to file:/*/$TESTTMP/svn-repo/branches/branch%C3%A9e (glob)
Dan Villiom Podlaski Christiansen
tests: unify test-convert-svn-*
r12370 updating tags
Mads Kiilerich
localrepo: show headline notes in commitctx before showing filenames...
r23749 committing files:
Dan Villiom Podlaski Christiansen
tests: unify test-convert-svn-*
r12370 .hgtags
Mads Kiilerich
localrepo: show headline notes in commitctx before showing filenames...
r23749 committing manifest
committing changelog
Pierre-Yves David
caches: move the 'updating the branch cache' message in 'updatecaches'...
r32267 updating the branch cache
Dan Villiom Podlaski Christiansen
tests: unify test-convert-svn-*
r12370 run hg sink post-conversion action
$ cd A-hg
$ hg up
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
Check tags are in UTF-8
Mads Kiilerich
tests: use (esc) instead of other kinds of string escaping
r12943 $ cat .hgtags
Peter Arrenbrecht
localrepo: reuse parent manifest in commitctx if no files have changed...
r14162 e94e4422020e715add80525e8f0f46c9968689f1 branch\xc3\xa9e (esc)
f7e66f98380ed1e53a797c5c7a7a2616a7ab377d branch\xc3\xa9 (esc)
Dan Villiom Podlaski Christiansen
tests: unify test-convert-svn-*
r12370
$ cd ..
Manuel Jacob
py3: pass native string to urlreq.url2pathname()...
r45495
Manuel Jacob
convert: bail out in Subversion source if encountering non-ASCII HTTP(S) URL...
r45559 Subversion sources don't support non-ASCII characters in HTTP(S) URLs.
Matt Harbison
tests: ensure `$PYTHON` is quoted for Windows...
r47858 $ XFF=$("$PYTHON" -c 'from mercurial.utils.procutil import stdout; stdout.write(b"\xff")')
Manuel Jacob
convert: bail out in Subversion source if encountering non-ASCII HTTP(S) URL...
r45559 $ hg convert --source-type=svn http://localhost:$HGPORT/$XFF test
initializing destination test repository
Subversion sources don't support non-ASCII characters in HTTP(S) URLs. Please percent-encode them.
http://localhost:$HGPORT/\xff does not look like a Subversion repository (esc)
abort: http://localhost:$HGPORT/\xff: missing or unsupported repository (esc)
[255]
Manuel Jacob
convert: correctly convert paths to UTF-8 for Subversion...
r45561 In Subversion, paths are Unicode (encoded as UTF-8). Therefore paths that can't
be converted between UTF-8 and the locale encoding (which is always ASCII in
tests) don't work.
$ cp -R svn-repo $XFF
$ hg convert $XFF test
initializing destination test repository
Subversion requires that paths can be converted to Unicode using the current locale encoding (ascii)
\xff does not look like a CVS checkout (glob) (esc)
$TESTTMP/\xff does not look like a Git repository (esc)
\xff does not look like a Subversion repository (glob) (esc)
\xff is not a local Mercurial repository (glob) (esc)
\xff does not look like a darcs repository (glob) (esc)
\xff does not look like a monotone repository (glob) (esc)
\xff does not look like a GNU Arch repository (glob) (esc)
\xff does not look like a Bazaar repository (glob) (esc)
cannot find required "p4" tool
abort: \xff: missing or unsupported repository (glob) (esc)
[255]
Manuel Jacob
convert: convert URLs to UTF-8 for Subversion...
r45562 $ hg convert file://$TESTTMP/$XFF test
initializing destination test repository
Subversion requires that file URLs can be converted to Unicode using the current locale encoding (ascii)
file:/*/$TESTTMP/\xff does not look like a CVS checkout (glob) (esc)
$TESTTMP/file:$TESTTMP/\xff does not look like a Git repository (esc)
file:/*/$TESTTMP/\xff does not look like a Subversion repository (glob) (esc)
file:/*/$TESTTMP/\xff is not a local Mercurial repository (glob) (esc)
file:/*/$TESTTMP/\xff does not look like a darcs repository (glob) (esc)
file:/*/$TESTTMP/\xff does not look like a monotone repository (glob) (esc)
file:/*/$TESTTMP/\xff does not look like a GNU Arch repository (glob) (esc)
file:/*/$TESTTMP/\xff does not look like a Bazaar repository (glob) (esc)
file:/*/$TESTTMP/\xff does not look like a P4 repository (glob) (esc)
abort: file:/*/$TESTTMP/\xff: missing or unsupported repository (glob) (esc)
[255]
Manuel Jacob
convert: correctly convert paths to UTF-8 for Subversion...
r45561
Manuel Jacob
convert: handle percent-encoded bytes in file URLs like Subversion...
r45566 Subversion decodes percent-encoded bytes on the converted, UTF-8-encoded
string. Therefore, if the percent-encoded bytes aren't valid UTF-8, Subversion
would choke on them when converting them to the locale encoding.
Manuel Jacob
py3: pass native string to urlreq.url2pathname()...
r45495
Manuel Jacob
tests: use path inside test dir...
r45563 $ hg convert file://$TESTTMP/%FF test
Manuel Jacob
py3: pass native string to urlreq.url2pathname()...
r45495 initializing destination test repository
Manuel Jacob
convert: handle percent-encoded bytes in file URLs like Subversion...
r45566 Subversion does not support non-UTF-8 percent-encoded bytes in file URLs
Manuel Jacob
tests: use path inside test dir...
r45563 file:/*/$TESTTMP/%FF does not look like a CVS checkout (glob)
$TESTTMP/file:$TESTTMP/%FF does not look like a Git repository
file:/*/$TESTTMP/%FF does not look like a Subversion repository (glob)
file:/*/$TESTTMP/%FF is not a local Mercurial repository (glob)
file:/*/$TESTTMP/%FF does not look like a darcs repository (glob)
file:/*/$TESTTMP/%FF does not look like a monotone repository (glob)
file:/*/$TESTTMP/%FF does not look like a GNU Arch repository (glob)
file:/*/$TESTTMP/%FF does not look like a Bazaar repository (glob)
file:/*/$TESTTMP/%FF does not look like a P4 repository (glob)
abort: file:/*/$TESTTMP/%FF: missing or unsupported repository (glob)
Manuel Jacob
py3: pass native string to urlreq.url2pathname()...
r45495 [255]