From fd693388e6f9dfb7f1a0c3980acdcef7aac77638 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Sun, 29 Jan 2012 14:04:24 -0500 Subject: [PATCH] codereview: fix initialization check R=golang-dev, r CC=golang-dev https://golang.org/cl/5596046 --- lib/codereview/codereview.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/codereview/codereview.py b/lib/codereview/codereview.py index 1957d7cbb77..7630cdfe568 100644 --- a/lib/codereview/codereview.py +++ b/lib/codereview/codereview.py @@ -2177,9 +2177,12 @@ def reposetup(ui, repo): global codereview_disabled global defaultcc + # reposetup gets called both for the local repository + # and also for any repository we are pulling or pushing to. + # Only initialize the first time. global codereview_init if codereview_init: - raise hg_util.Abort("codereview extension initialized twice") + return codereview_init = True remote = ui.config("paths", "default", "")