From dbf6215dd62cc30851a954bb3d741e8fdcbffc6d Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Thu, 17 May 2012 02:54:03 +0800 Subject: [PATCH] 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 --- lib/codereview/codereview.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/codereview/codereview.py b/lib/codereview/codereview.py index b72cd86b076..d26df2a5f18 100644 --- a/lib/codereview/codereview.py +++ b/lib/codereview/codereview.py @@ -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