hg qrefresh doesn't honor "--encoding" for "--logfile"

Marc Strapetz marc.strapetz at syntevo.com
Tue Nov 20 14:50:49 UTC 2012


On 16.11.2012 20:56, Matt Mackall wrote:
> On Fri, 2012-11-16 at 19:47 +0100, Marc Strapetz wrote:
>> It seems that:
>>
>>  hg qrefresh --encoding utf-8 --logfile <file>
>>
>> still tries to process the log-file with platform encoding. When using:
>>
>>  hg commit --encoding utf-8 --logfile <file>
>>
>> with the same <file>, contents are properly interpreted as UTF-8.
>>
>> $ hg --version
>> Mercurial Distributed SCM (version 2.2.3)
>> (see http://mercurial.selenic.com for more information)
> 
> Please file a bug so we don't lose track of this:
> 
> http://mercurial.selenic.com/wiki/BugTracker
> 
> I'm 99.99% sure something else is going on. Neither mq nor commit have
> any encoding logic at all, so it's impossible for them to behave
> differently here. All the encoding handling for commit messages happens
> in a single place, the low-level function that adds changelog messages
> to the store.

OK. Sorry, this was my fault: actually the

 qrefresh --encoding utf-8 --log-file

was working correctly, but later there was another

 qrefresh --currentdate --currentuser

without changing the commit message, however also without --encoding,
which corrupted the commit message again. I've now added --encoding
utf-8 there as well as to qimport (what seems to be necessary when
rearranging patches) and all is working well now.

-Marc







More information about the Mercurial mailing list