mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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
1 changed files with 4 additions and 1 deletions
|
|
@ -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", "")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue