1
0
mirror of https://github.com/golang/go synced 2024-11-21 17:04:42 -07:00

codereview: fix initialization check

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5596046
This commit is contained in:
Russ Cox 2012-01-29 14:04:24 -05:00
parent 4a9138751a
commit fd693388e6

View File

@ -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", "")