##// END OF EJS Templates
convert/svn: test svn tags encoding
Patrick Mezard -
r8887:0332f8b4 default
parent child Browse files
Show More
@@ -103,7 +103,10 b' class converter_source(object):'
103 raise NotImplementedError()
103 raise NotImplementedError()
104
104
105 def gettags(self):
105 def gettags(self):
106 """Return the tags as a dictionary of name: revision"""
106 """Return the tags as a dictionary of name: revision
107
108 Tag names must be UTF-8 strings.
109 """
107 raise NotImplementedError()
110 raise NotImplementedError()
108
111
109 def recode(self, s, encoding=None):
112 def recode(self, s, encoding=None):
@@ -198,7 +201,9 b' class converter_sink(object):'
198
201
199 def puttags(self, tags):
202 def puttags(self, tags):
200 """Put tags into sink.
203 """Put tags into sink.
201 tags: {tagname: sink_rev_id, ...}"""
204
205 tags: {tagname: sink_rev_id, ...} where tagname is an UTF-8 string.
206 """
202 raise NotImplementedError()
207 raise NotImplementedError()
203
208
204 def setbranch(self, branch, pbranches):
209 def setbranch(self, branch, pbranches):
@@ -1,6 +1,6 b''
1 SVN-fs-dump-format-version: 2
1 SVN-fs-dump-format-version: 2
2
2
3 UUID: 7ec0009b-ac71-43a6-9416-7fc295ee5ca1
3 UUID: afeb9c47-92ff-4c0c-9f72-e1f6eb8ac9af
4
4
5 Revision-number: 0
5 Revision-number: 0
6 Prop-content-length: 56
6 Prop-content-length: 56
@@ -9,7 +9,7 b' Content-length: 56'
9 K 8
9 K 8
10 svn:date
10 svn:date
11 V 27
11 V 27
12 2009-06-21T15:50:22.535630Z
12 2009-06-21T16:34:55.835945Z
13 PROPS-END
13 PROPS-END
14
14
15 Revision-number: 1
15 Revision-number: 1
@@ -27,7 +27,7 b' pmezard'
27 K 8
27 K 8
28 svn:date
28 svn:date
29 V 27
29 V 27
30 2009-06-21T15:50:22.584588Z
30 2009-06-21T16:34:55.909545Z
31 PROPS-END
31 PROPS-END
32
32
33 Node-path: branches
33 Node-path: branches
@@ -72,7 +72,7 b' pmezard'
72 K 8
72 K 8
73 svn:date
73 svn:date
74 V 27
74 V 27
75 2009-06-21T15:50:23.143007Z
75 2009-06-21T16:34:56.150049Z
76 PROPS-END
76 PROPS-END
77
77
78 Node-path: trunk/à
78 Node-path: trunk/à
@@ -125,7 +125,7 b' pmezard'
125 K 8
125 K 8
126 svn:date
126 svn:date
127 V 27
127 V 27
128 2009-06-21T15:50:26.088415Z
128 2009-06-21T16:34:59.089402Z
129 PROPS-END
129 PROPS-END
130
130
131 Node-path: trunk/è
131 Node-path: trunk/è
@@ -167,7 +167,7 b' pmezard'
167 K 8
167 K 8
168 svn:date
168 svn:date
169 V 27
169 V 27
170 2009-06-21T15:50:27.162784Z
170 2009-06-21T16:35:00.165121Z
171 PROPS-END
171 PROPS-END
172
172
173 Node-path: trunk/è
173 Node-path: trunk/è
@@ -193,7 +193,7 b' pmezard'
193 K 8
193 K 8
194 svn:date
194 svn:date
195 V 27
195 V 27
196 2009-06-21T15:50:30.079728Z
196 2009-06-21T16:35:03.079138Z
197 PROPS-END
197 PROPS-END
198
198
199 Node-path: branches/branché
199 Node-path: branches/branché
@@ -218,7 +218,7 b' pmezard'
218 K 8
218 K 8
219 svn:date
219 svn:date
220 V 27
220 V 27
221 2009-06-21T15:50:33.072456Z
221 2009-06-21T16:35:06.060801Z
222 PROPS-END
222 PROPS-END
223
223
224 Node-path: branches/branchée
224 Node-path: branches/branchée
@@ -228,3 +228,53 b' Node-copyfrom-rev: 5'
228 Node-copyfrom-path: branches/branché
228 Node-copyfrom-path: branches/branché
229
229
230
230
231 Revision-number: 7
232 Prop-content-length: 110
233 Content-length: 110
234
235 K 7
236 svn:log
237 V 9
238 tag trunk
239 K 10
240 svn:author
241 V 7
242 pmezard
243 K 8
244 svn:date
245 V 27
246 2009-06-21T16:35:09.061530Z
247 PROPS-END
248
249 Node-path: tags/branché
250 Node-kind: dir
251 Node-action: add
252 Node-copyfrom-rev: 6
253 Node-copyfrom-path: trunk
254
255
256 Revision-number: 8
257 Prop-content-length: 114
258 Content-length: 114
259
260 K 7
261 svn:log
262 V 12
263 tag branché
264 K 10
265 svn:author
266 V 7
267 pmezard
268 K 8
269 svn:date
270 V 27
271 2009-06-21T16:35:11.068562Z
272 PROPS-END
273
274 Node-path: tags/branchée
275 Node-kind: dir
276 Node-action: add
277 Node-copyfrom-rev: 6
278 Node-copyfrom-path: branches/branchée
279
280
@@ -45,6 +45,13 b' svn up'
45 svn cp branches/branché branches/branchée
45 svn cp branches/branché branches/branchée
46 echo a >> branches/branché/a
46 echo a >> branches/branché/a
47 svn ci -m 'branch to branchée'
47 svn ci -m 'branch to branchée'
48
49 # Create tag with weird name
50 svn up
51 svn cp trunk tags/branché
52 svn ci -m 'tag trunk'
53 svn cp branches/branchée tags/branchée
54 svn ci -m 'tag branché'
48 cd ..
55 cd ..
49
56
50 svnadmin dump svn-repo > ../encoding.svndump
57 svnadmin dump svn-repo > ../encoding.svndump
@@ -10,4 +10,8 b' cat "$TESTDIR/svn/encoding.svndump" | sv'
10
10
11 echo '% convert while testing all possible outputs'
11 echo '% convert while testing all possible outputs'
12 hg --debug convert svn-repo A-hg > /dev/null
12 hg --debug convert svn-repo A-hg > /dev/null
13
13 cd A-hg
14 hg up
15 echo '% check tags are in UTF-8'
16 python -c "print '\n'.join([('%r' % l) for l in file('.hgtags', 'rb').readlines()])"
17 cd ..
@@ -1,1 +1,5 b''
1 % convert while testing all possible outputs
1 % convert while testing all possible outputs
2 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
3 % check tags are in UTF-8
4 '1c1b4062874e8197a68e7ce9e498479a37d0215c branch\xc3\xa9e\n'
5 'edc96568720ef79eefa6372677b18d855de3abee branch\xc3\xa9\n'
General Comments 0
You need to be logged in to leave comments. Login now