Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9.1, 0.9.1.1, and 0.9.2

stable doc: improve extensions page

Changeset 5268850bf953

Parent 16034221ff6b

by Steve Borho

Changes to one file · Browse files at 5268850bf953 Showing diff from parent 16034221ff6b Diff from another changeset...

 
53
54
55
56
 
57
58
59
 
106
107
108
 
 
109
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
110
 
53
54
55
 
56
57
58
59
 
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
@@ -53,7 +53,7 @@
 Hgcr-gui  ========   -CodeReview management tool +`CodeReview <http://bitbucket.org/glimchb/hgcr-gui/wiki/Home>`_ management tool    * This extension allows you to manage reviews for your code in any project you like.  * It helps to keep the review management inside the mercurial. @@ -106,5 +106,45 @@
  [extensions]   hgcr-gui=   +Schemes +=======   +`Schemes <http://mercurial.selenic.com/wiki/SchemesExtension>`_ allows +you to specify shortcuts for parent urls, for example:: + + [schemes] + py = http://code.python.org/hg/ + +After that you can use it like:: + + hg clone py://trunk/ + +Of course, it is possible to supply custom urls for schemes with suffixes:: + + [schemes] + ex = ssh://example.com/hg + ex+http = http://hg.example.com/ + +Additionally there is support for some more complex schemas, for example used +by Google Code:: + + [schemes] + gcode = http://{1}.googlecode.com/hg/ + +The syntax is taken from Mercurial templates, and you have unlimited number of +variables, starting with {1} and continuing with {2}, {3} and so on. This +variables will receive parts of url supplied, splitted by /. Anything not +specified as {part} will be just appended to an url. + +To use the schemes extension, add it to your Mercurial.ini along with +some configuration:: + + [extensions] + schemes = + + [schemes] + bb = http://bitbucket.org/ + bb+ssh = ssh://hg@bitbucket.org/ + +  .. vim: noet ts=4