Debian Codegraph @

doc/html/ext-schemes.html

raw
1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 <meta name="generator" content="Docutils 0.21.2: https://docutils.sourceforge.io/" />
7 <title>schemes</title>
8 <link rel="stylesheet" href="../style.css" type="text/css" />
9 </head>
10 <body>
11 <div class="document" id="schemes">
12 <span id="ext-schemes"></span>
13 <h1 class="title">schemes</h1>
14
15 <div class="contents htmlonly topic" id="contents">
16 <p class="topic-title"><a class="reference internal" href="#top">Contents</a></p>
17 <ul class="simple">
18 <li><a class="reference internal" href="#description" id="toc-entry-1">Description</a></li>
19 <li><a class="reference internal" href="#commands" id="toc-entry-2">Commands</a></li>
20 </ul>
21 </div>
22 <p>extend schemes with shortcuts to repository swarms</p>
23 <div class="section" id="description">
24 <h1><a class="toc-backref" href="#contents">Description</a></h1>
25 <p>This extension allows you to specify shortcuts for parent URLs with a
26 lot of repositories to act like a scheme, for example:</p>
27 <pre class="literal-block">
28 [schemes]
29 py = http://code.python.org/hg/
30 </pre>
31 <p>After that you can use it like:</p>
32 <pre class="literal-block">
33 hg clone py://trunk/
34 </pre>
35 <p>Additionally there is support for some more complex schemas, for
36 example used by Google Code:</p>
37 <pre class="literal-block">
38 [schemes]
39 gcode = http://{1}.googlecode.com/hg/
40 </pre>
41 <p>The syntax is taken from Mercurial templates, and you have unlimited
42 number of variables, starting with <tt class="docutils literal">{1}</tt> and continuing with
43 <tt class="docutils literal">{2}</tt>, <tt class="docutils literal">{3}</tt> and so on. This variables will receive parts of URL
44 supplied, split by <tt class="docutils literal">/</tt>. Anything not specified as <tt class="docutils literal">{part}</tt> will be
45 just appended to an URL.</p>
46 <p>For convenience, the extension adds these schemes by default:</p>
47 <pre class="literal-block">
48 [schemes]
49 py = http://hg.python.org/
50 bb = https://bitbucket.org/
51 bb+ssh = ssh://hg&#64;bitbucket.org/
52 gcode = https://{1}.googlecode.com/hg/
53 kiln = https://{1}.kilnhg.com/Repo/
54 </pre>
55 <p>You can override a predefined scheme by defining a new scheme with the
56 same name.</p>
57 </div>
58 <div class="section" id="commands">
59 <h1><a class="toc-backref" href="#contents">Commands</a></h1>
60 </div>
61 </div>
62 </body>
63 </html>