review/rutil.py @ d483f003d230

Change the mercurial minimum version

the obsstore api was added in mercurial 2.3.
I did _not_ tested with this version though, so we may have to
change it if issues are encountered.
author Christophe de Vienne <cdevienne@gmail.com>
date Fri, 21 Nov 2014 17:04:06 +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')