##// END OF EJS Templates
replace old-http:// syntax by static-http:// and deprecate the redundant hg://
Benoit Boissinot -
r2431:d90a9d7c default
parent child Browse files
Show More
@@ -31,7 +31,7 b' revision::'
31 repository path::
31 repository path::
32 either the pathname of a local repository or the URI of a remote
32 either the pathname of a local repository or the URI of a remote
33 repository. There are two available URI protocols, http:// which is
33 repository. There are two available URI protocols, http:// which is
34 fast and the old-http:// protocol which is much slower but does not
34 fast and the static-http:// protocol which is much slower but does not
35 require a special server on the web host.
35 require a special server on the web host.
36
36
37
37
@@ -70,7 +70,7 b' revision::'
70 repository path::
70 repository path::
71 ローカルのリポジトリのパス名かリモートのリポジトリの URI を表
71 ローカルのリポジトリのパス名かリモートのリポジトリの URI を表
72 します。URI のプロトコルとしては現在 2 つが利用可能です。
72 します。URI のプロトコルとしては現在 2 つが利用可能です。
73 http:// は高速で、old-http:// は遅いですがウェブのホストに特別
73 http:// は高速で、static-http:// は遅いですがウェブのホストに特別
74 なサーバを必要としません。
74 なサーバを必要としません。
75
75
76 コマンド
76 コマンド
@@ -8,6 +8,7 b''
8 from node import *
8 from node import *
9 from repo import *
9 from repo import *
10 from demandload import *
10 from demandload import *
11 from i18n import gettext as _
11 demandload(globals(), "localrepo bundlerepo httprepo sshrepo statichttprepo")
12 demandload(globals(), "localrepo bundlerepo httprepo sshrepo statichttprepo")
12
13
13 def repository(ui, path=None, create=0):
14 def repository(ui, path=None, create=0):
@@ -17,11 +18,18 b' def repository(ui, path=None, create=0):'
17 if path.startswith("https://"):
18 if path.startswith("https://"):
18 return httprepo.httpsrepository(ui, path)
19 return httprepo.httpsrepository(ui, path)
19 if path.startswith("hg://"):
20 if path.startswith("hg://"):
21 ui.warn(_("hg:// syntax is deprecated, "
22 "please use http:// instead\n"))
20 return httprepo.httprepository(
23 return httprepo.httprepository(
21 ui, path.replace("hg://", "http://"))
24 ui, path.replace("hg://", "http://"))
22 if path.startswith("old-http://"):
25 if path.startswith("old-http://"):
26 ui.warn(_("old-http:// syntax is deprecated, "
27 "please use static-http:// instead\n"))
23 return statichttprepo.statichttprepository(
28 return statichttprepo.statichttprepository(
24 ui, path.replace("old-http://", "http://"))
29 ui, path.replace("old-http://", "http://"))
30 if path.startswith("static-http://"):
31 return statichttprepo.statichttprepository(
32 ui, path.replace("static-http://", "http://"))
25 if path.startswith("ssh://"):
33 if path.startswith("ssh://"):
26 return sshrepo.sshrepository(ui, path)
34 return sshrepo.sshrepository(ui, path)
27 if path.startswith("bundle://"):
35 if path.startswith("bundle://"):
@@ -1,6 +1,6 b''
1 #!/bin/sh
1 #!/bin/sh
2
2
3 http_proxy= hg clone old-http://localhost:20059/ copy
3 http_proxy= hg clone static-http://localhost:20059/ copy
4 echo $?
4 echo $?
5 ls copy 2>/dev/null || echo copy: No such file or directory
5 ls copy 2>/dev/null || echo copy: No such file or directory
6
6
@@ -31,7 +31,7 b' hg tip'
31
31
32 cd ..
32 cd ..
33
33
34 http_proxy= hg clone old-http://localhost:20059/remote local
34 http_proxy= hg clone static-http://localhost:20059/remote local
35
35
36 cd local
36 cd local
37 hg verify
37 hg verify
@@ -19,6 +19,6 b' crosschecking files in changesets and ma'
19 checking files
19 checking files
20 1 files, 1 changesets, 1 total revisions
20 1 files, 1 changesets, 1 total revisions
21 foo
21 foo
22 pulling from old-http://localhost:20059/remote
22 pulling from static-http://localhost:20059/remote
23 searching for changes
23 searching for changes
24 no changes found
24 no changes found
General Comments 0
You need to be logged in to leave comments. Login now