[PATCH STABLE] record: display filename in local encoding when asking about file inclusion

Nikolaj Sjujskij sterkrig at myopera.com
Fri Jun 29 15:55:11 CDT 2012


> # HG changeset patch
> # User Nikolaj Sjujskij <sterkrig at myopera.com>
> # Date 1341002447 -14400
> # Node ID 023ecef662bba83047243678a56fa3c4d756e75f
> # Parent  1cdd0ebce8dc11983fcc58f1279c8350f8d66b14
> record: display filename in local encoding when asking about file  
> inclusion
>
> When constructing message about whether to include a file into  
> changeset/patch,
> record uses `repr(filename)`. This results in unreadable mess when  
> filename
> isn't ASCII. The patch replaces `repr` with `encoding.tolocal`, ensuring  
> proper
> conversion and hence readability.
  I may have missed or done something plain stupid here (I'm afraid I  
haven't grasped hg's encoding concepts), so please comment if I had taken  
the wrong approach.


More information about the Mercurial-devel mailing list