review/rutil.py @ 87fcb432d230

Merged in kberridge/hg-review (pull request #6)

web: display branch name on index if other than 'default'
author Christophe de Vienne <cdevienne@gmail.com>
date Fri, 21 Nov 2014 18:38:48 +0100
parents 96afc843f1a7
children (none)
from mercurial import encoding

def tolocal(s):
    return encoding.tolocal(s.encode('UTF-8'))

def fromlocal(s):
    return s.decode(encoding.encoding, 'replace')