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