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
08e65f79
Commit
08e65f79
authored
Jul 17, 2010
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
codereview: make 'hg submit' work with Mercurial 1.6
R=r CC=golang-dev
https://golang.org/cl/1841044
parent
e692977a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
codereview.py
lib/codereview/codereview.py
+7
-1
No files found.
lib/codereview/codereview.py
View file @
08e65f79
...
@@ -54,6 +54,12 @@ except:
...
@@ -54,6 +54,12 @@ except:
from
mercurial.version
import
version
as
v
from
mercurial.version
import
version
as
v
hgversion
=
v
.
get_version
()
hgversion
=
v
.
get_version
()
try
:
from
mercurial.discovery
import
findcommonincoming
except
:
def
findcommonincoming
(
repo
,
remote
):
return
repo
.
findcommonincoming
(
remote
)
oldMessage
=
"""
oldMessage
=
"""
The code review extension requires Mercurial 1.3 or newer.
The code review extension requires Mercurial 1.3 or newer.
...
@@ -602,7 +608,7 @@ def getremote(ui, repo, opts):
...
@@ -602,7 +608,7 @@ def getremote(ui, repo, opts):
return
other
return
other
def
Incoming
(
ui
,
repo
,
opts
):
def
Incoming
(
ui
,
repo
,
opts
):
_
,
incoming
,
_
=
repo
.
findcommonincoming
(
getremote
(
ui
,
repo
,
opts
))
_
,
incoming
,
_
=
findcommonincoming
(
repo
,
getremote
(
ui
,
repo
,
opts
))
return
incoming
return
incoming
def
EditCL
(
ui
,
repo
,
cl
):
def
EditCL
(
ui
,
repo
,
cl
):
...
...
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