Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
780dbdc0
Commit
780dbdc0
authored
Nov 13, 2009
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
codereview: clpatch tweaks
R=agl1
https://golang.org/cl/152114
parent
511772c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
codereview.py
lib/codereview/codereview.py
+7
-3
No files found.
lib/codereview/codereview.py
View file @
780dbdc0
...
...
@@ -1352,10 +1352,14 @@ def DownloadCL(ui, repo, clname):
try
:
data
=
MySend
(
"/user_popup/"
+
nick
,
force_auth
=
False
)
except
:
return
None
,
None
,
"error looking up
%
s:
%
s"
%
(
nick
,
ExceptionDetail
())
ui
.
warn
(
"error looking up
%
s:
%
s
\n
"
%
(
nick
,
ExceptionDetail
()))
cl
.
original_author
=
nick
+
"@needtofix"
return
cl
,
diffdata
,
""
match
=
re
.
match
(
r"<b>(.*) \((.*)\)</b>"
,
data
)
if
not
match
or
match
.
group
(
2
)
!=
nick
:
return
None
,
None
,
"error looking up
%
s: cannot parse result"
%
(
nick
,)
if
not
match
:
return
None
,
None
,
"error looking up
%
s: cannot parse result
%
s"
%
(
nick
,
repr
(
data
))
if
match
.
group
(
1
)
!=
nick
and
match
.
group
(
2
)
!=
nick
:
return
None
,
None
,
"error looking up
%
s: got info for
%
s,
%
s"
%
(
nick
,
match
.
group
(
1
),
match
.
group
(
2
))
email
=
match
.
group
(
1
)
# Temporary hack until we move to the public code review server.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment