hgext/__init__.py
author Bryan O'Sullivan <bryano@fb.com>
Tue, 04 Sep 2012 15:46:04 -0700
branchstable
changeset 17441 cb12d3ce5607
parent 1360 7d439981bec4
child 28450 155e3308289c
permissions -rw-r--r--
subrepo: encode unicode path names (issue3610) Subversion 1.7 changes its XML output to include an explicit encoding tag: <?xml version="1.0" encoding="UTF-8"?> This triggers xml.dom.minidom to always return unicode strings, causing other parts of the code to explode. We unconditionally encode path names before handing them back, which works with both str (actually a no-op) and unicode values.

# placeholder