mirror of
https://github.com/golang/go
synced 2024-11-21 16:34:42 -07:00
codereview: Initialize "found" in codereview.py.
Fixes #2569 (hg undo crashes when CL not found). R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5489052
This commit is contained in:
parent
055b4f7ea0
commit
a3008e235e
@ -1490,6 +1490,7 @@ def clpatch_or_undo(ui, repo, clname, opts, mode):
|
||||
# Mercurial will fall over long before the change log
|
||||
# sequence numbers get to be 7 digits long.
|
||||
if re.match('^[0-9]{7,}$', clname):
|
||||
found = False
|
||||
for r in hg_log(ui, repo, keyword="codereview.appspot.com/"+clname, limit=100, template="{node}\n").split():
|
||||
rev = repo[r]
|
||||
# Last line with a code review URL is the actual review URL.
|
||||
|
Loading…
Reference in New Issue
Block a user