comparison tests/test-convert.t @ 25884:b810b59eca62 stable

convert: when converting from Perforce use original local encoding by default On Windows Perforce command line client uses default system locale to encode output. Using 'latin_1' causes locale-specific characters to be replaced with question marks. With this patch we will use default locale by default whilst allowing to specify it explicity with 'convert.p4.encoding' config option. This is a potentially breaking change for any scripts relying on output treated as in 'latin_1' encoding. Also because hgext.convert.convcmd overwrites detected default system locale with UTF-8 we had to introduce an import cycle in hgext.convert.p4 to retrieve originally detected encoding from hgext.convert.convcmd.
author Eugene Baranov <eug.baranov@gmail.com>
date Wed, 22 Jul 2015 16:57:11 +0100
parents 6fb55c6c6562
children e63d05fbae84
comparison
equal deleted inserted replaced
25882:97a9f7602014 25884:b810b59eca62
273 specification as source. It will convert all files in the source to a flat 273 specification as source. It will convert all files in the source to a flat
274 Mercurial repository, ignoring labels, branches and integrations. Note 274 Mercurial repository, ignoring labels, branches and integrations. Note
275 that when a depot path is given you then usually should specify a target 275 that when a depot path is given you then usually should specify a target
276 directory, because otherwise the target may be named "...-hg". 276 directory, because otherwise the target may be named "...-hg".
277 277
278 It is possible to limit the amount of source history to be converted by 278 The following options can be set with "--config":
279 specifying an initial Perforce revision: 279
280 280 convert.p4.encoding
281 specify the encoding to use when decoding standard output of
282 the Perforce command line tool. The default is default
283 system encoding.
281 convert.p4.startrev 284 convert.p4.startrev
282 specify initial Perforce revision (a Perforce changelist 285 specify initial Perforce revision (a Perforce changelist
283 number). 286 number).
284 287
285 Mercurial Destination 288 Mercurial Destination