tests/test-convert-svn-encoding.t
changeset 12370 f98010f57a5e
parent 8887 0332f8b44e54
child 12377 a5b77eb0409b
equal deleted inserted replaced
12369:6f0d9d79111f 12370:f98010f57a5e
       
     1 
       
     2   $ "$TESTDIR/hghave" svn svn-bindings || exit 80
       
     3 
       
     4   $ cat > $HGRCPATH <<EOF
       
     5   > [extensions]
       
     6   > convert = 
       
     7   > graphlog =
       
     8   > EOF
       
     9 
       
    10   $ svnadmin create svn-repo
       
    11   $ svnadmin load -q svn-repo < "$TESTDIR/svn/encoding.svndump"
       
    12 
       
    13 Convert while testing all possible outputs
       
    14 
       
    15   $ hg --debug convert svn-repo A-hg
       
    16   initializing destination A-hg repository
       
    17   reparent to file://.*/test-convert-svn-encoding.t/svn-repo
       
    18   run hg sink pre-conversion action
       
    19   scanning source...
       
    20   found trunk at 'trunk'
       
    21   found tags at 'tags'
       
    22   found branches at 'branches'
       
    23   found branch branché at 5
       
    24   found branch branchée at 6
       
    25   scanning: 1 revisions
       
    26   reparent to file://.*/test-convert-svn-encoding.t/svn-repo/trunk
       
    27   fetching revision log for "/trunk" from 4 to 0
       
    28   parsing revision 4 (2 changes)
       
    29   parsing revision 3 (4 changes)
       
    30   parsing revision 2 (3 changes)
       
    31   parsing revision 1 (3 changes)
       
    32   no copyfrom path, don't know what to do.
       
    33   '/branches' is not under '/trunk', ignoring
       
    34   '/tags' is not under '/trunk', ignoring
       
    35   scanning: 2 revisions
       
    36   reparent to file://.*/test-convert-svn-encoding.t/svn-repo/branches/branch%C3%A9
       
    37   fetching revision log for "/branches/branché" from 5 to 0
       
    38   parsing revision 5 (1 changes)
       
    39   reparent to file://.*/test-convert-svn-encoding.t/svn-repo
       
    40   reparent to file://.*/test-convert-svn-encoding.t/svn-repo/branches/branch%C3%A9
       
    41   found parent of branch /branches/branché at 4: /trunk
       
    42   scanning: 3 revisions
       
    43   reparent to file://.*/test-convert-svn-encoding.t/svn-repo/branches/branch%C3%A9e
       
    44   fetching revision log for "/branches/branchée" from 6 to 0
       
    45   parsing revision 6 (1 changes)
       
    46   reparent to file://.*/test-convert-svn-encoding.t/svn-repo
       
    47   reparent to file://.*/test-convert-svn-encoding.t/svn-repo/branches/branch%C3%A9e
       
    48   found parent of branch /branches/branchée at 5: /branches/branché
       
    49   scanning: 4 revisions
       
    50   scanning: 5 revisions
       
    51   scanning: 6 revisions
       
    52   sorting...
       
    53   converting...
       
    54   5 init projA
       
    55   source: svn:afeb9c47-92ff-4c0c-9f72-e1f6eb8ac9af/trunk@1
       
    56   converting: 0/6 revisions (0.00%)
       
    57   4 hello
       
    58   source: svn:afeb9c47-92ff-4c0c-9f72-e1f6eb8ac9af/trunk@2
       
    59   converting: 1/6 revisions (16.67%)
       
    60   reparent to file://.*/test-convert-svn-encoding.t/svn-repo/trunk
       
    61   scanning paths: /trunk/à 0/3 (0.00%)
       
    62   scanning paths: /trunk/à/é 1/3 (33.33%)
       
    63   scanning paths: /trunk/é 2/3 (66.67%)
       
    64   à/é
       
    65   getting files: à/é 1/2 (50.00%)
       
    66   é
       
    67   getting files: é 2/2 (100.00%)
       
    68   3 copy files
       
    69   source: svn:afeb9c47-92ff-4c0c-9f72-e1f6eb8ac9af/trunk@3
       
    70   converting: 2/6 revisions (33.33%)
       
    71   scanning paths: /trunk/à 0/4 (0.00%)
       
    72   gone from -1
       
    73   reparent to file://.*/test-convert-svn-encoding.t/svn-repo
       
    74   reparent to file://.*/test-convert-svn-encoding.t/svn-repo/trunk
       
    75   scanning paths: /trunk/è 1/4 (25.00%)
       
    76   copied to è from é@2
       
    77   scanning paths: /trunk/é 2/4 (50.00%)
       
    78   gone from -1
       
    79   reparent to file://.*/test-convert-svn-encoding.t/svn-repo
       
    80   reparent to file://.*/test-convert-svn-encoding.t/svn-repo/trunk
       
    81   scanning paths: /trunk/ù 3/4 (75.00%)
       
    82   mark /trunk/ù came from à:2
       
    83   à/é
       
    84   getting files: à/é 1/4 (25.00%)
       
    85   è
       
    86   getting files: è 2/4 (50.00%)
       
    87    è: copy é:6b67ccefd5ce6de77e7ead4f5292843a0255329f
       
    88   é
       
    89   getting files: é 3/4 (75.00%)
       
    90   ù/é
       
    91   getting files: ù/é 4/4 (100.00%)
       
    92    ù/é: copy à/é:a9092a3d84a37b9993b5c73576f6de29b7ea50f6
       
    93   2 remove files
       
    94   source: svn:afeb9c47-92ff-4c0c-9f72-e1f6eb8ac9af/trunk@4
       
    95   converting: 3/6 revisions (50.00%)
       
    96   scanning paths: /trunk/è 0/2 (0.00%)
       
    97   gone from -1
       
    98   reparent to file://.*/test-convert-svn-encoding.t/svn-repo
       
    99   reparent to file://.*/test-convert-svn-encoding.t/svn-repo/trunk
       
   100   scanning paths: /trunk/ù 1/2 (50.00%)
       
   101   gone from -1
       
   102   reparent to file://.*/test-convert-svn-encoding.t/svn-repo
       
   103   reparent to file://.*/test-convert-svn-encoding.t/svn-repo/trunk
       
   104   è
       
   105   getting files: è 1/2 (50.00%)
       
   106   ù/é
       
   107   getting files: ù/é 2/2 (100.00%)
       
   108   1 branch to branch?
       
   109   source: svn:afeb9c47-92ff-4c0c-9f72-e1f6eb8ac9af/branches/branch?@5
       
   110   converting: 4/6 revisions (66.67%)
       
   111   reparent to file://.*/test-convert-svn-encoding.t/svn-repo/branches/branch%C3%A9
       
   112   scanning paths: /branches/branché 0/1 (0.00%)
       
   113   0 branch to branch?e
       
   114   source: svn:afeb9c47-92ff-4c0c-9f72-e1f6eb8ac9af/branches/branch?e@6
       
   115   converting: 5/6 revisions (83.33%)
       
   116   reparent to file://.*/test-convert-svn-encoding.t/svn-repo/branches/branch%C3%A9e
       
   117   scanning paths: /branches/branchée 0/1 (0.00%)
       
   118   reparent to file://.*/test-convert-svn-encoding.t/svn-repo
       
   119   reparent to file://.*/test-convert-svn-encoding.t/svn-repo/branches/branch%C3%A9e
       
   120   reparent to file://.*/test-convert-svn-encoding.t/svn-repo
       
   121   reparent to file://.*/test-convert-svn-encoding.t/svn-repo/branches/branch%C3%A9e
       
   122   updating tags
       
   123   .hgtags
       
   124   run hg sink post-conversion action
       
   125   $ cd A-hg
       
   126   $ hg up
       
   127   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
       
   128 
       
   129 Check tags are in UTF-8
       
   130 
       
   131   $ python -c "print '\n'.join([('%r' % l) for l in file('.hgtags', 'rb').readlines()])"
       
   132   '221c3fdaf24df5f14c0a64c597581e2eacfb47bb branch\xc3\xa9e\n'
       
   133   '7a40952c2db29cf00d9e31df3749e98d8a4bdcbf branch\xc3\xa9\n'
       
   134 
       
   135   $ cd ..