Mercurial > evolve
comparison tests/test-topic.t @ 6610:ae7c75c43f92 stable
topic: properly decode topic and topic namespace after reading from disk
Looks like we forgot that the bytes read from disk should be converted to the
local encoding. The way it's done in this patch is how branch is handled in
core.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Mon, 11 Dec 2023 16:15:10 -0300 |
parents | 3d16c9a8cf3a |
children | 1dc008b6ad21 |
comparison
equal
deleted
inserted
replaced
6598:536d950753e6 | 6610:ae7c75c43f92 |
---|---|
320 $ hg topic | 320 $ hg topic |
321 * topicflag (0 changesets) | 321 * topicflag (0 changesets) |
322 | 322 |
323 Non-ascii topic name | 323 Non-ascii topic name |
324 | 324 |
325 $ hg topic --clear | |
326 clearing empty topic "topicflag" | |
325 $ hg --encoding utf-8 topic æ | 327 $ hg --encoding utf-8 topic æ |
326 $ hg topics | 328 marked working directory as topic: \xc3\xa6 (esc) |
327 * \xc3\xa6 (0 changesets) (esc) | 329 $ hg --encoding utf-8 topics |
330 * æ (0 changesets) (esc) | |
331 $ hg --encoding ascii topics | |
332 * ? (0 changesets) (esc) | |
328 $ hg --encoding latin1 topics | 333 $ hg --encoding latin1 topics |
329 * \xc3\xa6 (0 changesets) (esc) | 334 * \xe6 (0 changesets) (esc) |
330 | 335 |
331 $ hg --encoding utf-8 topic © | 336 $ hg --encoding utf-8 topic © |
332 abort: invalid topic name: '\xc2\xa9' (esc) | 337 abort: invalid topic name: '\xc2\xa9' (esc) |
333 (topic names can only consist of alphanumeric, '-' '_' and '.' characters) | 338 (topic names can only consist of alphanumeric, '-' '_' and '.' characters) |
334 [10] | 339 [10] |