Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
e8fcf600
Commit
e8fcf600
authored
Jul 14, 2010
by
Evan Shaw
Committed by
Russ Cox
Jul 14, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
codereview: Fix for Mercurial >= 1.6
R=rsc, adg, rsc1 CC=golang-dev
https://golang.org/cl/1804041
parent
dc60c5a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
lib/codereview/codereview.py
lib/codereview/codereview.py
+6
-2
No files found.
lib/codereview/codereview.py
View file @
e8fcf600
...
...
@@ -592,7 +592,11 @@ def getremote(ui, repo, opts):
# delete it in an attempt to "help"
proxy
=
os
.
environ
.
get
(
'http_proxy'
)
source
=
hg
.
parseurl
(
ui
.
expandpath
(
"default"
),
None
)[
0
]
other
=
hg
.
repository
(
cmdutil
.
remoteui
(
repo
,
opts
),
source
)
try
:
remoteui
=
hg
.
remoteui
# hg 1.6
except
:
remoteui
=
cmdutil
.
remoteui
other
=
hg
.
repository
(
remoteui
(
repo
,
opts
),
source
)
if
proxy
is
not
None
:
os
.
environ
[
'http_proxy'
]
=
proxy
return
other
...
...
@@ -2856,7 +2860,7 @@ class MercurialVCS(VersionControlSystem):
if not err:
self.base_rev = mqparent
else:
self.base_rev = RunShell(["
hg
", "
parent
", "
-
q
"]).split(':')[1].strip()
self.base_rev = RunShell(["
hg
", "
parent
s
", "
-
q
"]).split(':')[1].strip()
def _GetRelPath(self, filename):
"""Get relative path of a file according to the current directory,
given its logical path in the repo."""
...
...
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