codereview: support mercurial 2.2.1

We explicitly use plainformatter to avoid the
        user's debug setting changing our behavior.
        Fixes #3603.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6201069
This commit is contained in:
Shenghou Ma 2012-05-17 02:54:03 +08:00
parent c816d8c59f
commit dbf6215dd6

View file

@ -3343,6 +3343,10 @@ class FakeMercurialUI(object):
return self
def status(self, *args, **opts):
pass
def formatter(self, topic, opts):
from mercurial.formatter import plainformatter
return plainformatter(self, topic, opts)
def readconfig(self, *args, **opts):
pass