Fixing commit author with broken character encoding

Gregor Mückl gmueckl at gregor-mueckl.de
Thu May 2 14:02:34 UTC 2019


Hi!

I have a repository with a commit that I apparently made with a 
misconfigured mercurial instance. Specificially, my author string seems 
to have been broken so that my last name was mangled into something that 
seems to be utterly broken. I can't tell you what the string in the 
commit looks like because I cannot reconstruct how different clients try 
to convert it before displaying it...

So, whatever I try to match that particular author name in an authormap 
file for hg convert, I can't get it to match because I don't know (a) 
what the actually stored internal string looks like and (b) how to 
reconstruct it so that hg can match it.

Is there a way to get hg convert to do a fuzzy match or pattern match 
for author names? Is there at least a way to get hg to dump the log or 
anything else containing the raw author string *without* any potential 
encoding conversion?

Regards
Gregor Mückl



More information about the Mercurial mailing list