From: Russ Cox Date: Sun, 29 Jan 2012 19:04:24 +0000 (-0500) Subject: codereview: fix initialization check X-Git-Tag: weekly.2012-02-07~237 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=fd693388e6f9dfb7f1a0c3980acdcef7aac77638;p=gostls13.git codereview: fix initialization check R=golang-dev, r CC=golang-dev https://golang.org/cl/5596046 --- diff --git a/lib/codereview/codereview.py b/lib/codereview/codereview.py index 1957d7cbb7..7630cdfe56 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", "")