Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
mercurial-devel
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mercurial
mercurial-devel
Commits
1d8e9637
Commit
1d8e9637
authored
19 years ago
by
mpm
Browse files
Options
Downloads
Patches
Plain Diff
Change hg: protocol name to http: and http: to old-http:
hg: will continue to work for a bit old-http: will be phased out soon
parent
0eb6e2c9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README
+1
-1
1 addition, 1 deletion
README
mercurial/hg.py
+6
-2
6 additions, 2 deletions
mercurial/hg.py
with
7 additions
and
3 deletions
README
+
1
−
1
View file @
1d8e9637
...
...
@@ -79,7 +79,7 @@
foo$ hg serve -n "My repo" -p 80
# merge changes from a remote machine
bar$ hg merge h
g
://foo/
bar$ hg merge h
ttp
://foo/
bar$ hg co # checkout the result
# Set up a CGI server on your webserver
...
...
This diff is collapsed.
Click to expand it.
mercurial/hg.py
+
6
−
2
View file @
1d8e9637
...
...
@@ -812,7 +812,7 @@
class
remoterepository
:
def
__init__
(
self
,
ui
,
path
):
self
.
url
=
path
.
replace
(
"
hg://
"
,
"
http://
"
,
1
)
self
.
url
=
path
self
.
ui
=
ui
def
do_cmd
(
self
,
cmd
,
**
args
):
...
...
@@ -847,4 +847,6 @@
yield
zd
.
decompress
(
d
)
def
repository
(
ui
,
path
=
None
,
create
=
0
):
if
path
and
path
[:
7
]
==
"
http://
"
:
return
remoterepository
(
ui
,
path
)
if
path
and
path
[:
5
]
==
"
hg://
"
:
...
...
@@ -850,5 +852,7 @@
if
path
and
path
[:
5
]
==
"
hg://
"
:
return
remoterepository
(
ui
,
path
)
return
remoterepository
(
ui
,
path
.
replace
(
"
hg://
"
,
"
http://
"
))
if
path
and
path
[:
11
]
==
"
old-http://
"
:
return
localrepository
(
ui
,
path
.
replace
(
"
old-http://
"
,
"
http://
"
))
else
:
return
localrepository
(
ui
,
path
,
create
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment