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

Matt Mackall mpm at selenic.com
Fri Jun 29 22:15:09 CDT 2012


On Sat, 2012-06-30 at 00:43 +0400, Nikolaj Sjujskij wrote:
> # 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.

Please check out:

http://mercurial.selenic.com/wiki/EncodingStrategy

The current code is considered correct.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list