tortoisehg / stable (http://tortoisehg.bitbucket.org/)
TortoiseHg repository. Main line of development in "default" branch. Releases, bugfixes, and documentation improvements in "stable" branch.
Clone this repository (size: 76.1 MB): HTTPS / SSH
$ hg clone http://bitbucket.org/tortoisehg/stable/
| commit 5078: | 2e352922a7cd |
| parent 5077: | 7e8868a30a34 |
| branch: | stable |
| tags: | 0.9.1.1 |
doc: schemes extension now ships with hg
Changed (Δ1.0 KB):
raw changeset »
doc/source/extensions.txt (0 lines added, 41 lines removed)
Up to file-list doc/source/extensions.txt:
| … | … | @@ -106,45 +106,4 @@ You may want to add it to your Mercurial |
106 |
106 |
[extensions] |
107 |
107 |
hgcr-gui= |
108 |
108 |
|
109 |
Schemes |
|
110 |
======= |
|
111 |
||
112 |
`Schemes <http://mercurial.selenic.com/wiki/SchemesExtension>`_ allows |
|
113 |
you to specify shortcuts for parent urls, for example:: |
|
114 |
||
115 |
[schemes] |
|
116 |
py = http://code.python.org/hg/ |
|
117 |
||
118 |
After that you can use it like:: |
|
119 |
||
120 |
hg clone py://trunk/ |
|
121 |
||
122 |
Of course, it is possible to supply custom urls for schemes with suffixes:: |
|
123 |
||
124 |
[schemes] |
|
125 |
ex = ssh://example.com/hg |
|
126 |
ex+http = http://hg.example.com/ |
|
127 |
||
128 |
Additionally there is support for some more complex schemas, for example used |
|
129 |
by Google Code:: |
|
130 |
||
131 |
[schemes] |
|
132 |
gcode = http://{1}.googlecode.com/hg/ |
|
133 |
||
134 |
The syntax is taken from Mercurial templates, and you have unlimited number of |
|
135 |
variables, starting with {1} and continuing with {2}, {3} and so on. This |
|
136 |
variables will receive parts of url supplied, splitted by /. Anything not |
|
137 |
specified as {part} will be just appended to an url. |
|
138 |
||
139 |
To use the schemes extension, add it to your Mercurial.ini along with |
|
140 |
some configuration:: |
|
141 |
||
142 |
[extensions] |
|
143 |
schemes = |
|
144 |
||
145 |
[schemes] |
|
146 |
bb = http://bitbucket.org/ |
|
147 |
bb+ssh = ssh://hg@bitbucket.org/ |
|
148 |
||
149 |
||
150 |
109 |
.. vim: noet ts=4 |
