annotate templates/downloads/index.html @ 438:5f35d50faa86

Mark Python 2.4/2.5 as not supported Point to supported python versions wiki page
author timeless@gmail.com
date Fri, 04 Dec 2015 04:31:27 -0500
parents 2b0669fed7a8
children dddeb7831aa1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
397
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
1 {% extends "base.html" %}
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
2
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
3 {% block content %}
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
4
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
5 <h1>Mercurial downloads</h1>
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
6 <script language="javascript">
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
7 var versions = Downloader.versions();
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
8 var more = Downloader.maxversions &&
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
9 versions.length > Downloader.maxversions;
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
10
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
11 // Show tables for Downloader.maxversions versions
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
12 for (i in versions) {
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
13 if (more && i >= Downloader.maxversions)
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
14 break;
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
15 // Need to localize this variable to closure it correctly
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
16 var current = versions[i];
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
17 document.write(Downloader.table(versions[i], function (o) {
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
18 return o.version == current;
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
19 }));
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
20 }
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
21
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
22 function exposeversions (node) {
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
23 // Emit but do not render tables for remaining versions
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
24 var html = ''
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
25 for (i in versions) {
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
26 if (i < Downloader.maxversions)
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
27 continue;
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
28 // Need to localize this variable to closure it correctly
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
29 var current = versions[i];
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
30 html += Downloader.table(versions[i], function (o) {
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
31 return o.version == current;
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
32 });
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
33 }
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
34 node.innerHTML = html;
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
35 }
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
36
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
37 if (more) {
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
38 document.write('\
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
39 <div onclick="exposeversions(this);">\
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
40 <center id="more">[more versions]</center>\
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
41 </div>\
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
42 <br/>\
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
43 ');
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
44 }
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
45 </script>
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
46
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
47 <h5>Development Repositories</h5>
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
48 <dl>
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
49 <dt>Main</dt>
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
50 <dd>The main development repository of the Mercurial maintainer
436
2b0669fed7a8 update domain to www.mercurial-scm.org
timeless@gmail.com
parents: 414
diff changeset
51 <a href="https://www.mercurial-scm.org/wiki/mpm">Matt Mackall</a>
397
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
52 can be found at <a href="http://selenic.com/hg">
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
53 http://selenic.com/hg</a>.</dd>
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
54 <dt>Crew</dt>
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
55 <dd>The development repository of the <a
436
2b0669fed7a8 update domain to www.mercurial-scm.org
timeless@gmail.com
parents: 414
diff changeset
56 href="https://www.mercurial-scm.org/wiki/CrewRepository">
397
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
57 Mercurial Crew</a>
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
58 can be found at <a href="http://hg.intevation.org/mercurial/crew">
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
59 http://hg.intevation.org/mercurial/crew</a>.</dd>
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
60 </dl>
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
61
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
62 <h5>Requirements</h5>
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
63 <dl>
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
64 <dt>Python</dt>
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
65 <dd>Mercurial uses <a href="http://www.python.org">Python</a>
438
5f35d50faa86 Mark Python 2.4/2.5 as not supported
timeless@gmail.com
parents: 436
diff changeset
66 (versions <em>2.6</em> through <em>2.7</em>). Most
397
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
67 ready-to-run Mercurial distributions include Python or use
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
68 the Python that comes with your operating system. When
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
69 building from source you should confirm that an appropriate
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
70 Python version is available.</dd>
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
71 </dl>
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
72
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
73 <h5>Older Releases</h5>
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
74 <dl>
438
5f35d50faa86 Mark Python 2.4/2.5 as not supported
timeless@gmail.com
parents: 436
diff changeset
75 <dt>Python versions<dt>
5f35d50faa86 Mark Python 2.4/2.5 as not supported
timeless@gmail.com
parents: 436
diff changeset
76 <dd>For more information about version support, see
5f35d50faa86 Mark Python 2.4/2.5 as not supported
timeless@gmail.com
parents: 436
diff changeset
77 <a href="https://www.mercurial-scm.org/wiki/SupportedPythonVersions">Supported
5f35d50faa86 Mark Python 2.4/2.5 as not supported
timeless@gmail.com
parents: 436
diff changeset
78 Python Versions</a> on the wiki.</dd>
5f35d50faa86 Mark Python 2.4/2.5 as not supported
timeless@gmail.com
parents: 436
diff changeset
79 <dt>Python 2.5</dt>
5f35d50faa86 Mark Python 2.4/2.5 as not supported
timeless@gmail.com
parents: 436
diff changeset
80 <dd><a href="/release/mercurial-3.4.2.tar.gz">Mercurial 3.4.2</a>
5f35d50faa86 Mark Python 2.4/2.5 as not supported
timeless@gmail.com
parents: 436
diff changeset
81 is the last release to support Python 2.5. Use this if you
5f35d50faa86 Mark Python 2.4/2.5 as not supported
timeless@gmail.com
parents: 436
diff changeset
82 need to run Mercurial on very old platforms and you cannot update
5f35d50faa86 Mark Python 2.4/2.5 as not supported
timeless@gmail.com
parents: 436
diff changeset
83 your Python installation.</dd>
5f35d50faa86 Mark Python 2.4/2.5 as not supported
timeless@gmail.com
parents: 436
diff changeset
84 <dt>Python 2.4</dt>
5f35d50faa86 Mark Python 2.4/2.5 as not supported
timeless@gmail.com
parents: 436
diff changeset
85 <dd><a href="/release/mercurial-3.4.2.tar.gz">Mercurial 3.4.2</a>
5f35d50faa86 Mark Python 2.4/2.5 as not supported
timeless@gmail.com
parents: 436
diff changeset
86 is the last release to support Python 2.4. Use this if you
5f35d50faa86 Mark Python 2.4/2.5 as not supported
timeless@gmail.com
parents: 436
diff changeset
87 need to run Mercurial on very old platforms and you cannot update
5f35d50faa86 Mark Python 2.4/2.5 as not supported
timeless@gmail.com
parents: 436
diff changeset
88 your Python installation.</dd>
397
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
89 <dt>Python 2.3</dt>
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
90 <dd><a href="/release/mercurial-1.2.1.tar.gz">Mercurial 1.2.1</a>
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
91 is the last release to support Python 2.3. Use this if you
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
92 need to run Mercurial on very old platforms and you cannot update
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
93 your Python installation.</dd>
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
94 <dt>Older source releases</dt>
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
95 <dd><a href="/release/">All previous source releases</a> are available
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
96 to download.</dd>
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
97 </dl>
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
98
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
99 {% endblock %}
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
100 {% block sidebar %}
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
101 <h3>Get started</h3>
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
102 <p>Mercurial is written in Python with platform independence in mind.
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
103 As a result, Mercurial is available on
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
104 <a href="http://www.microsoft.com/windows">Microsoft Windows</a>,
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
105 <a href="http://kernel.org">GNU/Linux</a>,
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
106 <a href="http://www.apple.com">Mac OS X</a>,
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
107 <a href="http://oracle.com/solaris">Solaris 11 Express</a> and others.
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
108 You can either download a binary package for the system of your choice or
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
109 build it from sources.</p>
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
110
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
111 <p>Windows users are likely to enjoy the <a href="http://tortoisehg.org">TortoiseHg</a>
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
112 GUI the most. It integrates Mercurial directly into your explorer.</p>
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
113
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
114 <p>Packages for common Linux, BSD and Solaris distributions can be
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
115 installed from the system specific repositories</p>
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
116 <p>
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
117 <pre>
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
118 # Debian/Ubuntu
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
119 $ apt-get install mercurial
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
120
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
121 # Fedora
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
122 $ yum install mercurial
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
123
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
124 # Gentoo
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
125 $ emerge mercurial
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
126
414
3d0f1f7cee05 downloads: add macos homebrew install instructions
David Soria Parra <davidsp@fb.com>
parents: 397
diff changeset
127 # Mac OS (homebrew)
3d0f1f7cee05 downloads: add macos homebrew install instructions
David Soria Parra <davidsp@fb.com>
parents: 397
diff changeset
128 $ brew install mercurial
3d0f1f7cee05 downloads: add macos homebrew install instructions
David Soria Parra <davidsp@fb.com>
parents: 397
diff changeset
129
397
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
130 # FreeBSD
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
131 $ cd /usr/ports/devel/mercurial
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
132 $ make install
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
133
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
134 # Solaris 11 Express
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
135 $ pkg install SUNWmercurial
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
136 </pre>
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
137 </p>
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents:
diff changeset
138 {% endblock %}