Commit fd693388 authored by Russ Cox's avatar Russ Cox

codereview: fix initialization check

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5596046
parent 4a913875
......@@ -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", "")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment