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
0e816f59
Commit
0e816f59
authored
Nov 01, 2010
by
Fazlul Shahriar
Committed by
Russ Cox
Nov 01, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
codereview: fix 'hg sync' and 'hg download' in Python 2.7
Fixes #1218. R=rsc CC=golang-dev
https://golang.org/cl/2664041
parent
270bad39
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
codereview.py
lib/codereview/codereview.py
+2
-2
No files found.
lib/codereview/codereview.py
View file @
0e816f59
...
@@ -1508,7 +1508,7 @@ def IsRietveldSubmitted(ui, clname, hex):
...
@@ -1508,7 +1508,7 @@ def IsRietveldSubmitted(ui, clname, hex):
if
feed
is
None
:
if
feed
is
None
:
return
False
return
False
for
sum
in
feed
.
findall
(
"{http://www.w3.org/2005/Atom}entry/{http://www.w3.org/2005/Atom}summary"
):
for
sum
in
feed
.
findall
(
"{http://www.w3.org/2005/Atom}entry/{http://www.w3.org/2005/Atom}summary"
):
text
=
sum
.
findtext
(
""
,
None
)
.
strip
()
text
=
sum
.
text
.
strip
()
m
=
re
.
match
(
'
\
*
\
*
\
* Submitted as [^*]*?([0-9a-f]+)
\
*
\
*
\
*'
,
text
)
m
=
re
.
match
(
'
\
*
\
*
\
* Submitted as [^*]*?([0-9a-f]+)
\
*
\
*
\
*'
,
text
)
if
m
is
not
None
and
len
(
m
.
group
(
1
))
>=
8
and
hex
.
startswith
(
m
.
group
(
1
)):
if
m
is
not
None
and
len
(
m
.
group
(
1
))
>=
8
and
hex
.
startswith
(
m
.
group
(
1
)):
return
True
return
True
...
@@ -1542,7 +1542,7 @@ def DownloadCL(ui, repo, clname):
...
@@ -1542,7 +1542,7 @@ def DownloadCL(ui, repo, clname):
# Find author - first entry will be author who created CL.
# Find author - first entry will be author who created CL.
nick
=
None
nick
=
None
for
author
in
feed
.
findall
(
"{http://www.w3.org/2005/Atom}entry/{http://www.w3.org/2005/Atom}author/{http://www.w3.org/2005/Atom}name"
):
for
author
in
feed
.
findall
(
"{http://www.w3.org/2005/Atom}entry/{http://www.w3.org/2005/Atom}author/{http://www.w3.org/2005/Atom}name"
):
nick
=
author
.
findtext
(
""
,
None
)
.
strip
()
nick
=
author
.
text
.
strip
()
break
break
if
not
nick
:
if
not
nick
:
return
None
,
None
,
"CL has no author"
return
None
,
None
,
"CL has no author"
...
...
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