mirror of
https://github.com/golang/go
synced 2024-11-25 00:17:58 -07:00
codereview: fix initialization check
R=golang-dev, r CC=golang-dev https://golang.org/cl/5596046
This commit is contained in:
parent
4a9138751a
commit
fd693388e6
@ -2177,9 +2177,12 @@ def reposetup(ui, repo):
|
|||||||
global codereview_disabled
|
global codereview_disabled
|
||||||
global defaultcc
|
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
|
global codereview_init
|
||||||
if codereview_init:
|
if codereview_init:
|
||||||
raise hg_util.Abort("codereview extension initialized twice")
|
return
|
||||||
codereview_init = True
|
codereview_init = True
|
||||||
|
|
||||||
remote = ui.config("paths", "default", "")
|
remote = ui.config("paths", "default", "")
|
||||||
|
Loading…
Reference in New Issue
Block a user