[issue2763] Tags in system encoding are not working in hg v1.8.2

Sergey Antonov bugs at mercurial.selenic.com
Wed Apr 13 12:54:50 UTC 2011


New submission from Sergey Antonov <sergant_ at mail.ru>:

I've just found that hg v1.8.2 does not understand tags in system encoding 
on Windows.

This is a regression from v1.7.2, where it works.

Here is a test (using cp1251, because by default on russian the oem codepage 
in console is 866 and different from system code page):

chcp 1251
hg init
echo 1 > 1.txt
hg add 1.txt
hg ci -m "init"
hg tag -l "Метка"
hg tags

The output is:
Метка                              0:f704bf341821
tip                                0:f704bf341821

Now, trying to update to tag:

hg up -r "Метка"
abort: unknown revision 'Метка'!

While hg v1.7.2 on the same repository shows:

hg up -r "Метка"
0 files updated, 0 files merged, 0 files removed, 0 files unresolved

----------
messages: 16052
nosy: zzsergant
priority: bug
status: unread
title: Tags in system encoding are not working in hg v1.8.2
topic: tags

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2763>
____________________________________________________


More information about the Mercurial-devel mailing list