Show More
@@ -0,0 +1,28 b'' | |||||
|
1 | #!/bin/sh | |||
|
2 | # Test chains of near empty directories, terminating 3 different ways: | |||
|
3 | # - a1: file at level 4 (deepest) | |||
|
4 | # - b1: two dirs at level 3 | |||
|
5 | # - e1: file at level 2 | |||
|
6 | ||||
|
7 | echo % Set up the repo | |||
|
8 | hg init test | |||
|
9 | cd test | |||
|
10 | mkdir -p a1/a2/a3/a4 | |||
|
11 | mkdir -p b1/b2/b3/b4 | |||
|
12 | mkdir -p b1/b2/c3/c4 | |||
|
13 | mkdir -p d1/d2/d3/d4 | |||
|
14 | echo foo > a1/a2/a3/a4/foo | |||
|
15 | echo foo > b1/b2/b3/b4/foo | |||
|
16 | echo foo > b1/b2/c3/c4/foo | |||
|
17 | echo foo > d1/d2/d3/d4/foo | |||
|
18 | echo foo > d1/d2/foo | |||
|
19 | hg ci -Ama | |||
|
20 | ||||
|
21 | hg serve -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log | |||
|
22 | cat hg.pid >> $DAEMON_PIDS | |||
|
23 | ||||
|
24 | echo % manifest with descending | |||
|
25 | "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/file' | |||
|
26 | ||||
|
27 | echo % ERRORS ENCOUNTERED | |||
|
28 | cat errors.log |
@@ -0,0 +1,51 b'' | |||||
|
1 | % Set up the repo | |||
|
2 | adding a1/a2/a3/a4/foo | |||
|
3 | adding b1/b2/b3/b4/foo | |||
|
4 | adding b1/b2/c3/c4/foo | |||
|
5 | adding d1/d2/d3/d4/foo | |||
|
6 | adding d1/d2/foo | |||
|
7 | % manifest with descending | |||
|
8 | 200 Script output follows | |||
|
9 | ||||
|
10 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | |||
|
11 | <html> | |||
|
12 | <head> | |||
|
13 | <link rel="icon" href="/static/hgicon.png" type="image/png"> | |||
|
14 | <meta name="robots" content="index, nofollow" /> | |||
|
15 | <link rel="stylesheet" href="/static/style.css" type="text/css" /> | |||
|
16 | ||||
|
17 | <title>test: files for changeset 9087c84a0f5d</title> | |||
|
18 | </head> | |||
|
19 | <body> | |||
|
20 | ||||
|
21 | <div class="buttons"> | |||
|
22 | <a href="/log/0">changelog</a> | |||
|
23 | <a href="/shortlog/0">shortlog</a> | |||
|
24 | <a href="/graph">graph</a> | |||
|
25 | <a href="/tags">tags</a> | |||
|
26 | <a href="/rev/9087c84a0f5d">changeset</a> | |||
|
27 | ||||
|
28 | </div> | |||
|
29 | ||||
|
30 | <h2>files for changeset 9087c84a0f5d: /</h2> | |||
|
31 | ||||
|
32 | <table cellpadding="0" cellspacing="0"> | |||
|
33 | <tr class="parity0"> | |||
|
34 | <td><tt>drwxr-xr-x</tt> | |||
|
35 | <td> | |||
|
36 | <td> | |||
|
37 | <td><a href="/file/9087c84a0f5d/">[up]</a> | |||
|
38 | </tr> | |||
|
39 | <tr class="parity1"><td><tt>drwxr-xr-x</tt> <td> <td> <td><a href="/file/9087c84a0f5d/a1">a1/</a> <a href="/file/9087c84a0f5d/a1/a2/a3/a4">a2/a3/a4</a><tr class="parity0"><td><tt>drwxr-xr-x</tt> <td> <td> <td><a href="/file/9087c84a0f5d/b1">b1/</a> <a href="/file/9087c84a0f5d/b1/b2">b2</a><tr class="parity1"><td><tt>drwxr-xr-x</tt> <td> <td> <td><a href="/file/9087c84a0f5d/d1">d1/</a> <a href="/file/9087c84a0f5d/d1/d2">d2</a> | |||
|
40 | ||||
|
41 | </table> | |||
|
42 | ||||
|
43 | <div class="logo"> | |||
|
44 | <a href="http://www.selenic.com/mercurial/"> | |||
|
45 | <img src="/static/hglogo.png" width=75 height=90 border=0 alt="mercurial"></a> | |||
|
46 | </div> | |||
|
47 | ||||
|
48 | </body> | |||
|
49 | </html> | |||
|
50 | ||||
|
51 | % ERRORS ENCOUNTERED |
@@ -1,638 +1,651 b'' | |||||
1 | # |
|
1 | # | |
2 | # Copyright 21 May 2005 - (c) 2005 Jake Edge <jake@edge2.net> |
|
2 | # Copyright 21 May 2005 - (c) 2005 Jake Edge <jake@edge2.net> | |
3 | # Copyright 2005-2007 Matt Mackall <mpm@selenic.com> |
|
3 | # Copyright 2005-2007 Matt Mackall <mpm@selenic.com> | |
4 | # |
|
4 | # | |
5 | # This software may be used and distributed according to the terms |
|
5 | # This software may be used and distributed according to the terms | |
6 | # of the GNU General Public License, incorporated herein by reference. |
|
6 | # of the GNU General Public License, incorporated herein by reference. | |
7 |
|
7 | |||
8 | import os, mimetypes, re, cgi |
|
8 | import os, mimetypes, re, cgi | |
9 | import webutil |
|
9 | import webutil | |
10 | from mercurial import revlog, archival, templatefilters |
|
10 | from mercurial import revlog, archival, templatefilters | |
11 | from mercurial.node import short, hex, nullid |
|
11 | from mercurial.node import short, hex, nullid | |
12 | from mercurial.util import binary, datestr |
|
12 | from mercurial.util import binary, datestr | |
13 | from mercurial.repo import RepoError |
|
13 | from mercurial.repo import RepoError | |
14 | from common import paritygen, staticfile, get_contact, ErrorResponse |
|
14 | from common import paritygen, staticfile, get_contact, ErrorResponse | |
15 | from common import HTTP_OK, HTTP_FORBIDDEN, HTTP_NOT_FOUND |
|
15 | from common import HTTP_OK, HTTP_FORBIDDEN, HTTP_NOT_FOUND | |
16 | from mercurial import graphmod, util |
|
16 | from mercurial import graphmod, util | |
17 |
|
17 | |||
18 | # __all__ is populated with the allowed commands. Be sure to add to it if |
|
18 | # __all__ is populated with the allowed commands. Be sure to add to it if | |
19 | # you're adding a new command, or the new command won't work. |
|
19 | # you're adding a new command, or the new command won't work. | |
20 |
|
20 | |||
21 | __all__ = [ |
|
21 | __all__ = [ | |
22 | 'log', 'rawfile', 'file', 'changelog', 'shortlog', 'changeset', 'rev', |
|
22 | 'log', 'rawfile', 'file', 'changelog', 'shortlog', 'changeset', 'rev', | |
23 | 'manifest', 'tags', 'summary', 'filediff', 'diff', 'annotate', 'filelog', |
|
23 | 'manifest', 'tags', 'summary', 'filediff', 'diff', 'annotate', 'filelog', | |
24 | 'archive', 'static', 'graph', |
|
24 | 'archive', 'static', 'graph', | |
25 | ] |
|
25 | ] | |
26 |
|
26 | |||
27 | def log(web, req, tmpl): |
|
27 | def log(web, req, tmpl): | |
28 | if 'file' in req.form and req.form['file'][0]: |
|
28 | if 'file' in req.form and req.form['file'][0]: | |
29 | return filelog(web, req, tmpl) |
|
29 | return filelog(web, req, tmpl) | |
30 | else: |
|
30 | else: | |
31 | return changelog(web, req, tmpl) |
|
31 | return changelog(web, req, tmpl) | |
32 |
|
32 | |||
33 | def rawfile(web, req, tmpl): |
|
33 | def rawfile(web, req, tmpl): | |
34 | path = webutil.cleanpath(web.repo, req.form.get('file', [''])[0]) |
|
34 | path = webutil.cleanpath(web.repo, req.form.get('file', [''])[0]) | |
35 | if not path: |
|
35 | if not path: | |
36 | content = manifest(web, req, tmpl) |
|
36 | content = manifest(web, req, tmpl) | |
37 | req.respond(HTTP_OK, web.ctype) |
|
37 | req.respond(HTTP_OK, web.ctype) | |
38 | return content |
|
38 | return content | |
39 |
|
39 | |||
40 | try: |
|
40 | try: | |
41 | fctx = webutil.filectx(web.repo, req) |
|
41 | fctx = webutil.filectx(web.repo, req) | |
42 | except revlog.LookupError, inst: |
|
42 | except revlog.LookupError, inst: | |
43 | try: |
|
43 | try: | |
44 | content = manifest(web, req, tmpl) |
|
44 | content = manifest(web, req, tmpl) | |
45 | req.respond(HTTP_OK, web.ctype) |
|
45 | req.respond(HTTP_OK, web.ctype) | |
46 | return content |
|
46 | return content | |
47 | except ErrorResponse: |
|
47 | except ErrorResponse: | |
48 | raise inst |
|
48 | raise inst | |
49 |
|
49 | |||
50 | path = fctx.path() |
|
50 | path = fctx.path() | |
51 | text = fctx.data() |
|
51 | text = fctx.data() | |
52 | mt = mimetypes.guess_type(path)[0] |
|
52 | mt = mimetypes.guess_type(path)[0] | |
53 | if mt is None: |
|
53 | if mt is None: | |
54 | mt = binary(text) and 'application/octet-stream' or 'text/plain' |
|
54 | mt = binary(text) and 'application/octet-stream' or 'text/plain' | |
55 |
|
55 | |||
56 | req.respond(HTTP_OK, mt, path, len(text)) |
|
56 | req.respond(HTTP_OK, mt, path, len(text)) | |
57 | return [text] |
|
57 | return [text] | |
58 |
|
58 | |||
59 | def _filerevision(web, tmpl, fctx): |
|
59 | def _filerevision(web, tmpl, fctx): | |
60 | f = fctx.path() |
|
60 | f = fctx.path() | |
61 | text = fctx.data() |
|
61 | text = fctx.data() | |
62 | parity = paritygen(web.stripecount) |
|
62 | parity = paritygen(web.stripecount) | |
63 |
|
63 | |||
64 | if binary(text): |
|
64 | if binary(text): | |
65 | mt = mimetypes.guess_type(f)[0] or 'application/octet-stream' |
|
65 | mt = mimetypes.guess_type(f)[0] or 'application/octet-stream' | |
66 | text = '(binary:%s)' % mt |
|
66 | text = '(binary:%s)' % mt | |
67 |
|
67 | |||
68 | def lines(): |
|
68 | def lines(): | |
69 | for lineno, t in enumerate(text.splitlines(1)): |
|
69 | for lineno, t in enumerate(text.splitlines(1)): | |
70 | yield {"line": t, |
|
70 | yield {"line": t, | |
71 | "lineid": "l%d" % (lineno + 1), |
|
71 | "lineid": "l%d" % (lineno + 1), | |
72 | "linenumber": "% 6d" % (lineno + 1), |
|
72 | "linenumber": "% 6d" % (lineno + 1), | |
73 | "parity": parity.next()} |
|
73 | "parity": parity.next()} | |
74 |
|
74 | |||
75 | return tmpl("filerevision", |
|
75 | return tmpl("filerevision", | |
76 | file=f, |
|
76 | file=f, | |
77 | path=webutil.up(f), |
|
77 | path=webutil.up(f), | |
78 | text=lines(), |
|
78 | text=lines(), | |
79 | rev=fctx.rev(), |
|
79 | rev=fctx.rev(), | |
80 | node=hex(fctx.node()), |
|
80 | node=hex(fctx.node()), | |
81 | author=fctx.user(), |
|
81 | author=fctx.user(), | |
82 | date=fctx.date(), |
|
82 | date=fctx.date(), | |
83 | desc=fctx.description(), |
|
83 | desc=fctx.description(), | |
84 | branch=webutil.nodebranchnodefault(fctx), |
|
84 | branch=webutil.nodebranchnodefault(fctx), | |
85 | parent=webutil.siblings(fctx.parents()), |
|
85 | parent=webutil.siblings(fctx.parents()), | |
86 | child=webutil.siblings(fctx.children()), |
|
86 | child=webutil.siblings(fctx.children()), | |
87 | rename=webutil.renamelink(fctx), |
|
87 | rename=webutil.renamelink(fctx), | |
88 | permissions=fctx.manifest().flags(f)) |
|
88 | permissions=fctx.manifest().flags(f)) | |
89 |
|
89 | |||
90 | def file(web, req, tmpl): |
|
90 | def file(web, req, tmpl): | |
91 | path = webutil.cleanpath(web.repo, req.form.get('file', [''])[0]) |
|
91 | path = webutil.cleanpath(web.repo, req.form.get('file', [''])[0]) | |
92 | if not path: |
|
92 | if not path: | |
93 | return manifest(web, req, tmpl) |
|
93 | return manifest(web, req, tmpl) | |
94 | try: |
|
94 | try: | |
95 | return _filerevision(web, tmpl, webutil.filectx(web.repo, req)) |
|
95 | return _filerevision(web, tmpl, webutil.filectx(web.repo, req)) | |
96 | except revlog.LookupError, inst: |
|
96 | except revlog.LookupError, inst: | |
97 | try: |
|
97 | try: | |
98 | return manifest(web, req, tmpl) |
|
98 | return manifest(web, req, tmpl) | |
99 | except ErrorResponse: |
|
99 | except ErrorResponse: | |
100 | raise inst |
|
100 | raise inst | |
101 |
|
101 | |||
102 | def _search(web, tmpl, query): |
|
102 | def _search(web, tmpl, query): | |
103 |
|
103 | |||
104 | def changelist(**map): |
|
104 | def changelist(**map): | |
105 | cl = web.repo.changelog |
|
105 | cl = web.repo.changelog | |
106 | count = 0 |
|
106 | count = 0 | |
107 | qw = query.lower().split() |
|
107 | qw = query.lower().split() | |
108 |
|
108 | |||
109 | def revgen(): |
|
109 | def revgen(): | |
110 | for i in xrange(len(cl) - 1, 0, -100): |
|
110 | for i in xrange(len(cl) - 1, 0, -100): | |
111 | l = [] |
|
111 | l = [] | |
112 | for j in xrange(max(0, i - 100), i + 1): |
|
112 | for j in xrange(max(0, i - 100), i + 1): | |
113 | ctx = web.repo[j] |
|
113 | ctx = web.repo[j] | |
114 | l.append(ctx) |
|
114 | l.append(ctx) | |
115 | l.reverse() |
|
115 | l.reverse() | |
116 | for e in l: |
|
116 | for e in l: | |
117 | yield e |
|
117 | yield e | |
118 |
|
118 | |||
119 | for ctx in revgen(): |
|
119 | for ctx in revgen(): | |
120 | miss = 0 |
|
120 | miss = 0 | |
121 | for q in qw: |
|
121 | for q in qw: | |
122 | if not (q in ctx.user().lower() or |
|
122 | if not (q in ctx.user().lower() or | |
123 | q in ctx.description().lower() or |
|
123 | q in ctx.description().lower() or | |
124 | q in " ".join(ctx.files()).lower()): |
|
124 | q in " ".join(ctx.files()).lower()): | |
125 | miss = 1 |
|
125 | miss = 1 | |
126 | break |
|
126 | break | |
127 | if miss: |
|
127 | if miss: | |
128 | continue |
|
128 | continue | |
129 |
|
129 | |||
130 | count += 1 |
|
130 | count += 1 | |
131 | n = ctx.node() |
|
131 | n = ctx.node() | |
132 | showtags = webutil.showtag(web.repo, tmpl, 'changelogtag', n) |
|
132 | showtags = webutil.showtag(web.repo, tmpl, 'changelogtag', n) | |
133 |
|
133 | |||
134 | yield tmpl('searchentry', |
|
134 | yield tmpl('searchentry', | |
135 | parity=parity.next(), |
|
135 | parity=parity.next(), | |
136 | author=ctx.user(), |
|
136 | author=ctx.user(), | |
137 | parent=webutil.siblings(ctx.parents()), |
|
137 | parent=webutil.siblings(ctx.parents()), | |
138 | child=webutil.siblings(ctx.children()), |
|
138 | child=webutil.siblings(ctx.children()), | |
139 | changelogtag=showtags, |
|
139 | changelogtag=showtags, | |
140 | desc=ctx.description(), |
|
140 | desc=ctx.description(), | |
141 | date=ctx.date(), |
|
141 | date=ctx.date(), | |
142 | files=web.listfilediffs(tmpl, ctx.files(), n), |
|
142 | files=web.listfilediffs(tmpl, ctx.files(), n), | |
143 | rev=ctx.rev(), |
|
143 | rev=ctx.rev(), | |
144 | node=hex(n), |
|
144 | node=hex(n), | |
145 | tags=webutil.nodetagsdict(web.repo, n), |
|
145 | tags=webutil.nodetagsdict(web.repo, n), | |
146 | inbranch=webutil.nodeinbranch(web.repo, ctx), |
|
146 | inbranch=webutil.nodeinbranch(web.repo, ctx), | |
147 | branches=webutil.nodebranchdict(web.repo, ctx)) |
|
147 | branches=webutil.nodebranchdict(web.repo, ctx)) | |
148 |
|
148 | |||
149 | if count >= web.maxchanges: |
|
149 | if count >= web.maxchanges: | |
150 | break |
|
150 | break | |
151 |
|
151 | |||
152 | cl = web.repo.changelog |
|
152 | cl = web.repo.changelog | |
153 | parity = paritygen(web.stripecount) |
|
153 | parity = paritygen(web.stripecount) | |
154 |
|
154 | |||
155 | return tmpl('search', |
|
155 | return tmpl('search', | |
156 | query=query, |
|
156 | query=query, | |
157 | node=hex(cl.tip()), |
|
157 | node=hex(cl.tip()), | |
158 | entries=changelist, |
|
158 | entries=changelist, | |
159 | archives=web.archivelist("tip")) |
|
159 | archives=web.archivelist("tip")) | |
160 |
|
160 | |||
161 | def changelog(web, req, tmpl, shortlog = False): |
|
161 | def changelog(web, req, tmpl, shortlog = False): | |
162 | if 'node' in req.form: |
|
162 | if 'node' in req.form: | |
163 | ctx = webutil.changectx(web.repo, req) |
|
163 | ctx = webutil.changectx(web.repo, req) | |
164 | else: |
|
164 | else: | |
165 | if 'rev' in req.form: |
|
165 | if 'rev' in req.form: | |
166 | hi = req.form['rev'][0] |
|
166 | hi = req.form['rev'][0] | |
167 | else: |
|
167 | else: | |
168 | hi = len(web.repo) - 1 |
|
168 | hi = len(web.repo) - 1 | |
169 | try: |
|
169 | try: | |
170 | ctx = web.repo[hi] |
|
170 | ctx = web.repo[hi] | |
171 | except RepoError: |
|
171 | except RepoError: | |
172 | return _search(web, tmpl, hi) # XXX redirect to 404 page? |
|
172 | return _search(web, tmpl, hi) # XXX redirect to 404 page? | |
173 |
|
173 | |||
174 | def changelist(limit=0, **map): |
|
174 | def changelist(limit=0, **map): | |
175 | cl = web.repo.changelog |
|
175 | cl = web.repo.changelog | |
176 | l = [] # build a list in forward order for efficiency |
|
176 | l = [] # build a list in forward order for efficiency | |
177 | for i in xrange(start, end): |
|
177 | for i in xrange(start, end): | |
178 | ctx = web.repo[i] |
|
178 | ctx = web.repo[i] | |
179 | n = ctx.node() |
|
179 | n = ctx.node() | |
180 | showtags = webutil.showtag(web.repo, tmpl, 'changelogtag', n) |
|
180 | showtags = webutil.showtag(web.repo, tmpl, 'changelogtag', n) | |
181 |
|
181 | |||
182 | l.insert(0, {"parity": parity.next(), |
|
182 | l.insert(0, {"parity": parity.next(), | |
183 | "author": ctx.user(), |
|
183 | "author": ctx.user(), | |
184 | "parent": webutil.siblings(ctx.parents(), i - 1), |
|
184 | "parent": webutil.siblings(ctx.parents(), i - 1), | |
185 | "child": webutil.siblings(ctx.children(), i + 1), |
|
185 | "child": webutil.siblings(ctx.children(), i + 1), | |
186 | "changelogtag": showtags, |
|
186 | "changelogtag": showtags, | |
187 | "desc": ctx.description(), |
|
187 | "desc": ctx.description(), | |
188 | "date": ctx.date(), |
|
188 | "date": ctx.date(), | |
189 | "files": web.listfilediffs(tmpl, ctx.files(), n), |
|
189 | "files": web.listfilediffs(tmpl, ctx.files(), n), | |
190 | "rev": i, |
|
190 | "rev": i, | |
191 | "node": hex(n), |
|
191 | "node": hex(n), | |
192 | "tags": webutil.nodetagsdict(web.repo, n), |
|
192 | "tags": webutil.nodetagsdict(web.repo, n), | |
193 | "inbranch": webutil.nodeinbranch(web.repo, ctx), |
|
193 | "inbranch": webutil.nodeinbranch(web.repo, ctx), | |
194 | "branches": webutil.nodebranchdict(web.repo, ctx) |
|
194 | "branches": webutil.nodebranchdict(web.repo, ctx) | |
195 | }) |
|
195 | }) | |
196 |
|
196 | |||
197 | if limit > 0: |
|
197 | if limit > 0: | |
198 | l = l[:limit] |
|
198 | l = l[:limit] | |
199 |
|
199 | |||
200 | for e in l: |
|
200 | for e in l: | |
201 | yield e |
|
201 | yield e | |
202 |
|
202 | |||
203 | maxchanges = shortlog and web.maxshortchanges or web.maxchanges |
|
203 | maxchanges = shortlog and web.maxshortchanges or web.maxchanges | |
204 | cl = web.repo.changelog |
|
204 | cl = web.repo.changelog | |
205 | count = len(cl) |
|
205 | count = len(cl) | |
206 | pos = ctx.rev() |
|
206 | pos = ctx.rev() | |
207 | start = max(0, pos - maxchanges + 1) |
|
207 | start = max(0, pos - maxchanges + 1) | |
208 | end = min(count, start + maxchanges) |
|
208 | end = min(count, start + maxchanges) | |
209 | pos = end - 1 |
|
209 | pos = end - 1 | |
210 | parity = paritygen(web.stripecount, offset=start-end) |
|
210 | parity = paritygen(web.stripecount, offset=start-end) | |
211 |
|
211 | |||
212 | changenav = webutil.revnavgen(pos, maxchanges, count, web.repo.changectx) |
|
212 | changenav = webutil.revnavgen(pos, maxchanges, count, web.repo.changectx) | |
213 |
|
213 | |||
214 | return tmpl(shortlog and 'shortlog' or 'changelog', |
|
214 | return tmpl(shortlog and 'shortlog' or 'changelog', | |
215 | changenav=changenav, |
|
215 | changenav=changenav, | |
216 | node=hex(ctx.node()), |
|
216 | node=hex(ctx.node()), | |
217 | rev=pos, changesets=count, |
|
217 | rev=pos, changesets=count, | |
218 | entries=lambda **x: changelist(limit=0,**x), |
|
218 | entries=lambda **x: changelist(limit=0,**x), | |
219 | latestentry=lambda **x: changelist(limit=1,**x), |
|
219 | latestentry=lambda **x: changelist(limit=1,**x), | |
220 | archives=web.archivelist("tip")) |
|
220 | archives=web.archivelist("tip")) | |
221 |
|
221 | |||
222 | def shortlog(web, req, tmpl): |
|
222 | def shortlog(web, req, tmpl): | |
223 | return changelog(web, req, tmpl, shortlog = True) |
|
223 | return changelog(web, req, tmpl, shortlog = True) | |
224 |
|
224 | |||
225 | def changeset(web, req, tmpl): |
|
225 | def changeset(web, req, tmpl): | |
226 | ctx = webutil.changectx(web.repo, req) |
|
226 | ctx = webutil.changectx(web.repo, req) | |
227 | n = ctx.node() |
|
227 | n = ctx.node() | |
228 | showtags = webutil.showtag(web.repo, tmpl, 'changesettag', n) |
|
228 | showtags = webutil.showtag(web.repo, tmpl, 'changesettag', n) | |
229 | parents = ctx.parents() |
|
229 | parents = ctx.parents() | |
230 | p1 = parents[0].node() |
|
230 | p1 = parents[0].node() | |
231 |
|
231 | |||
232 | files = [] |
|
232 | files = [] | |
233 | parity = paritygen(web.stripecount) |
|
233 | parity = paritygen(web.stripecount) | |
234 | for f in ctx.files(): |
|
234 | for f in ctx.files(): | |
235 | template = f in ctx and 'filenodelink' or 'filenolink' |
|
235 | template = f in ctx and 'filenodelink' or 'filenolink' | |
236 | files.append(tmpl(template, |
|
236 | files.append(tmpl(template, | |
237 | node=hex(n), file=f, |
|
237 | node=hex(n), file=f, | |
238 | parity=parity.next())) |
|
238 | parity=parity.next())) | |
239 |
|
239 | |||
240 | diffs = web.diff(tmpl, p1, n, None) |
|
240 | diffs = web.diff(tmpl, p1, n, None) | |
241 | return tmpl('changeset', |
|
241 | return tmpl('changeset', | |
242 | diff=diffs, |
|
242 | diff=diffs, | |
243 | rev=ctx.rev(), |
|
243 | rev=ctx.rev(), | |
244 | node=hex(n), |
|
244 | node=hex(n), | |
245 | parent=webutil.siblings(parents), |
|
245 | parent=webutil.siblings(parents), | |
246 | child=webutil.siblings(ctx.children()), |
|
246 | child=webutil.siblings(ctx.children()), | |
247 | changesettag=showtags, |
|
247 | changesettag=showtags, | |
248 | author=ctx.user(), |
|
248 | author=ctx.user(), | |
249 | desc=ctx.description(), |
|
249 | desc=ctx.description(), | |
250 | date=ctx.date(), |
|
250 | date=ctx.date(), | |
251 | files=files, |
|
251 | files=files, | |
252 | archives=web.archivelist(hex(n)), |
|
252 | archives=web.archivelist(hex(n)), | |
253 | tags=webutil.nodetagsdict(web.repo, n), |
|
253 | tags=webutil.nodetagsdict(web.repo, n), | |
254 | branch=webutil.nodebranchnodefault(ctx), |
|
254 | branch=webutil.nodebranchnodefault(ctx), | |
255 | inbranch=webutil.nodeinbranch(web.repo, ctx), |
|
255 | inbranch=webutil.nodeinbranch(web.repo, ctx), | |
256 | branches=webutil.nodebranchdict(web.repo, ctx)) |
|
256 | branches=webutil.nodebranchdict(web.repo, ctx)) | |
257 |
|
257 | |||
258 | rev = changeset |
|
258 | rev = changeset | |
259 |
|
259 | |||
260 | def manifest(web, req, tmpl): |
|
260 | def manifest(web, req, tmpl): | |
261 | ctx = webutil.changectx(web.repo, req) |
|
261 | ctx = webutil.changectx(web.repo, req) | |
262 | path = webutil.cleanpath(web.repo, req.form.get('file', [''])[0]) |
|
262 | path = webutil.cleanpath(web.repo, req.form.get('file', [''])[0]) | |
263 | mf = ctx.manifest() |
|
263 | mf = ctx.manifest() | |
264 | node = ctx.node() |
|
264 | node = ctx.node() | |
265 |
|
265 | |||
266 | files = {} |
|
266 | files = {} | |
|
267 | dirs = {} | |||
267 | parity = paritygen(web.stripecount) |
|
268 | parity = paritygen(web.stripecount) | |
268 |
|
269 | |||
269 | if path and path[-1] != "/": |
|
270 | if path and path[-1] != "/": | |
270 | path += "/" |
|
271 | path += "/" | |
271 | l = len(path) |
|
272 | l = len(path) | |
272 | abspath = "/" + path |
|
273 | abspath = "/" + path | |
273 |
|
274 | |||
274 | for f, n in mf.items(): |
|
275 | for f, n in mf.items(): | |
275 | if f[:l] != path: |
|
276 | if f[:l] != path: | |
276 | continue |
|
277 | continue | |
277 | remain = f[l:] |
|
278 | remain = f[l:] | |
278 |
|
|
279 | elements = remain.split('/') | |
279 |
if |
|
280 | if len(elements) == 1: | |
280 |
remain = |
|
281 | files[remain] = f | |
281 | n = None |
|
282 | else: | |
282 | files[remain] = (f, n) |
|
283 | h = dirs # need to retain ref to dirs (root) | |
|
284 | for elem in elements[0:-1]: | |||
|
285 | if elem not in h: | |||
|
286 | h[elem] = {} | |||
|
287 | h = h[elem] | |||
|
288 | if len(h) > 1: | |||
|
289 | break | |||
|
290 | h[None] = None # denotes files present | |||
283 |
|
291 | |||
284 | if not files: |
|
292 | if not files and not dirs: | |
285 | raise ErrorResponse(HTTP_NOT_FOUND, 'path not found: ' + path) |
|
293 | raise ErrorResponse(HTTP_NOT_FOUND, 'path not found: ' + path) | |
286 |
|
294 | |||
287 | def filelist(**map): |
|
295 | def filelist(**map): | |
288 | for f in util.sort(files): |
|
296 | for f in util.sort(files): | |
289 |
full |
|
297 | full = files[f] | |
290 | if not fnode: |
|
|||
291 | continue |
|
|||
292 |
|
298 | |||
293 | fctx = ctx.filectx(full) |
|
299 | fctx = ctx.filectx(full) | |
294 | yield {"file": full, |
|
300 | yield {"file": full, | |
295 | "parity": parity.next(), |
|
301 | "parity": parity.next(), | |
296 | "basename": f, |
|
302 | "basename": f, | |
297 | "date": fctx.date(), |
|
303 | "date": fctx.date(), | |
298 | "size": fctx.size(), |
|
304 | "size": fctx.size(), | |
299 | "permissions": mf.flags(full)} |
|
305 | "permissions": mf.flags(full)} | |
300 |
|
306 | |||
301 | def dirlist(**map): |
|
307 | def dirlist(**map): | |
302 |
for |
|
308 | for d in util.sort(dirs): | |
303 | full, fnode = files[f] |
|
|||
304 | if fnode: |
|
|||
305 | continue |
|
|||
306 |
|
309 | |||
|
310 | emptydirs = [] | |||
|
311 | h = dirs[d] | |||
|
312 | while isinstance(h, dict) and len(h) == 1: | |||
|
313 | k,v = h.items()[0] | |||
|
314 | if v: | |||
|
315 | emptydirs.append(k) | |||
|
316 | h = v | |||
|
317 | ||||
|
318 | path = "%s%s" % (abspath, d) | |||
307 | yield {"parity": parity.next(), |
|
319 | yield {"parity": parity.next(), | |
308 |
"path": |
|
320 | "path": path, | |
309 | "basename": f[:-1]} |
|
321 | "emptydirs": "/".join(emptydirs), | |
|
322 | "basename": d} | |||
310 |
|
323 | |||
311 | return tmpl("manifest", |
|
324 | return tmpl("manifest", | |
312 | rev=ctx.rev(), |
|
325 | rev=ctx.rev(), | |
313 | node=hex(node), |
|
326 | node=hex(node), | |
314 | path=abspath, |
|
327 | path=abspath, | |
315 | up=webutil.up(abspath), |
|
328 | up=webutil.up(abspath), | |
316 | upparity=parity.next(), |
|
329 | upparity=parity.next(), | |
317 | fentries=filelist, |
|
330 | fentries=filelist, | |
318 | dentries=dirlist, |
|
331 | dentries=dirlist, | |
319 | archives=web.archivelist(hex(node)), |
|
332 | archives=web.archivelist(hex(node)), | |
320 | tags=webutil.nodetagsdict(web.repo, node), |
|
333 | tags=webutil.nodetagsdict(web.repo, node), | |
321 | inbranch=webutil.nodeinbranch(web.repo, ctx), |
|
334 | inbranch=webutil.nodeinbranch(web.repo, ctx), | |
322 | branches=webutil.nodebranchdict(web.repo, ctx)) |
|
335 | branches=webutil.nodebranchdict(web.repo, ctx)) | |
323 |
|
336 | |||
324 | def tags(web, req, tmpl): |
|
337 | def tags(web, req, tmpl): | |
325 | i = web.repo.tagslist() |
|
338 | i = web.repo.tagslist() | |
326 | i.reverse() |
|
339 | i.reverse() | |
327 | parity = paritygen(web.stripecount) |
|
340 | parity = paritygen(web.stripecount) | |
328 |
|
341 | |||
329 | def entries(notip=False,limit=0, **map): |
|
342 | def entries(notip=False,limit=0, **map): | |
330 | count = 0 |
|
343 | count = 0 | |
331 | for k, n in i: |
|
344 | for k, n in i: | |
332 | if notip and k == "tip": |
|
345 | if notip and k == "tip": | |
333 | continue |
|
346 | continue | |
334 | if limit > 0 and count >= limit: |
|
347 | if limit > 0 and count >= limit: | |
335 | continue |
|
348 | continue | |
336 | count = count + 1 |
|
349 | count = count + 1 | |
337 | yield {"parity": parity.next(), |
|
350 | yield {"parity": parity.next(), | |
338 | "tag": k, |
|
351 | "tag": k, | |
339 | "date": web.repo[n].date(), |
|
352 | "date": web.repo[n].date(), | |
340 | "node": hex(n)} |
|
353 | "node": hex(n)} | |
341 |
|
354 | |||
342 | return tmpl("tags", |
|
355 | return tmpl("tags", | |
343 | node=hex(web.repo.changelog.tip()), |
|
356 | node=hex(web.repo.changelog.tip()), | |
344 | entries=lambda **x: entries(False,0, **x), |
|
357 | entries=lambda **x: entries(False,0, **x), | |
345 | entriesnotip=lambda **x: entries(True,0, **x), |
|
358 | entriesnotip=lambda **x: entries(True,0, **x), | |
346 | latestentry=lambda **x: entries(True,1, **x)) |
|
359 | latestentry=lambda **x: entries(True,1, **x)) | |
347 |
|
360 | |||
348 | def summary(web, req, tmpl): |
|
361 | def summary(web, req, tmpl): | |
349 | i = web.repo.tagslist() |
|
362 | i = web.repo.tagslist() | |
350 | i.reverse() |
|
363 | i.reverse() | |
351 |
|
364 | |||
352 | def tagentries(**map): |
|
365 | def tagentries(**map): | |
353 | parity = paritygen(web.stripecount) |
|
366 | parity = paritygen(web.stripecount) | |
354 | count = 0 |
|
367 | count = 0 | |
355 | for k, n in i: |
|
368 | for k, n in i: | |
356 | if k == "tip": # skip tip |
|
369 | if k == "tip": # skip tip | |
357 | continue |
|
370 | continue | |
358 |
|
371 | |||
359 | count += 1 |
|
372 | count += 1 | |
360 | if count > 10: # limit to 10 tags |
|
373 | if count > 10: # limit to 10 tags | |
361 | break |
|
374 | break | |
362 |
|
375 | |||
363 | yield tmpl("tagentry", |
|
376 | yield tmpl("tagentry", | |
364 | parity=parity.next(), |
|
377 | parity=parity.next(), | |
365 | tag=k, |
|
378 | tag=k, | |
366 | node=hex(n), |
|
379 | node=hex(n), | |
367 | date=web.repo[n].date()) |
|
380 | date=web.repo[n].date()) | |
368 |
|
381 | |||
369 | def branches(**map): |
|
382 | def branches(**map): | |
370 | parity = paritygen(web.stripecount) |
|
383 | parity = paritygen(web.stripecount) | |
371 |
|
384 | |||
372 | b = web.repo.branchtags() |
|
385 | b = web.repo.branchtags() | |
373 | l = [(-web.repo.changelog.rev(n), n, t) for t, n in b.items()] |
|
386 | l = [(-web.repo.changelog.rev(n), n, t) for t, n in b.items()] | |
374 | for r,n,t in util.sort(l): |
|
387 | for r,n,t in util.sort(l): | |
375 | yield {'parity': parity.next(), |
|
388 | yield {'parity': parity.next(), | |
376 | 'branch': t, |
|
389 | 'branch': t, | |
377 | 'node': hex(n), |
|
390 | 'node': hex(n), | |
378 | 'date': web.repo[n].date()} |
|
391 | 'date': web.repo[n].date()} | |
379 |
|
392 | |||
380 | def changelist(**map): |
|
393 | def changelist(**map): | |
381 | parity = paritygen(web.stripecount, offset=start-end) |
|
394 | parity = paritygen(web.stripecount, offset=start-end) | |
382 | l = [] # build a list in forward order for efficiency |
|
395 | l = [] # build a list in forward order for efficiency | |
383 | for i in xrange(start, end): |
|
396 | for i in xrange(start, end): | |
384 | ctx = web.repo[i] |
|
397 | ctx = web.repo[i] | |
385 | n = ctx.node() |
|
398 | n = ctx.node() | |
386 | hn = hex(n) |
|
399 | hn = hex(n) | |
387 |
|
400 | |||
388 | l.insert(0, tmpl( |
|
401 | l.insert(0, tmpl( | |
389 | 'shortlogentry', |
|
402 | 'shortlogentry', | |
390 | parity=parity.next(), |
|
403 | parity=parity.next(), | |
391 | author=ctx.user(), |
|
404 | author=ctx.user(), | |
392 | desc=ctx.description(), |
|
405 | desc=ctx.description(), | |
393 | date=ctx.date(), |
|
406 | date=ctx.date(), | |
394 | rev=i, |
|
407 | rev=i, | |
395 | node=hn, |
|
408 | node=hn, | |
396 | tags=webutil.nodetagsdict(web.repo, n), |
|
409 | tags=webutil.nodetagsdict(web.repo, n), | |
397 | inbranch=webutil.nodeinbranch(web.repo, ctx), |
|
410 | inbranch=webutil.nodeinbranch(web.repo, ctx), | |
398 | branches=webutil.nodebranchdict(web.repo, ctx))) |
|
411 | branches=webutil.nodebranchdict(web.repo, ctx))) | |
399 |
|
412 | |||
400 | yield l |
|
413 | yield l | |
401 |
|
414 | |||
402 | cl = web.repo.changelog |
|
415 | cl = web.repo.changelog | |
403 | count = len(cl) |
|
416 | count = len(cl) | |
404 | start = max(0, count - web.maxchanges) |
|
417 | start = max(0, count - web.maxchanges) | |
405 | end = min(count, start + web.maxchanges) |
|
418 | end = min(count, start + web.maxchanges) | |
406 |
|
419 | |||
407 | return tmpl("summary", |
|
420 | return tmpl("summary", | |
408 | desc=web.config("web", "description", "unknown"), |
|
421 | desc=web.config("web", "description", "unknown"), | |
409 | owner=get_contact(web.config) or "unknown", |
|
422 | owner=get_contact(web.config) or "unknown", | |
410 | lastchange=cl.read(cl.tip())[2], |
|
423 | lastchange=cl.read(cl.tip())[2], | |
411 | tags=tagentries, |
|
424 | tags=tagentries, | |
412 | branches=branches, |
|
425 | branches=branches, | |
413 | shortlog=changelist, |
|
426 | shortlog=changelist, | |
414 | node=hex(cl.tip()), |
|
427 | node=hex(cl.tip()), | |
415 | archives=web.archivelist("tip")) |
|
428 | archives=web.archivelist("tip")) | |
416 |
|
429 | |||
417 | def filediff(web, req, tmpl): |
|
430 | def filediff(web, req, tmpl): | |
418 | fctx, ctx = None, None |
|
431 | fctx, ctx = None, None | |
419 | try: |
|
432 | try: | |
420 | fctx = webutil.filectx(web.repo, req) |
|
433 | fctx = webutil.filectx(web.repo, req) | |
421 | except LookupError: |
|
434 | except LookupError: | |
422 | ctx = webutil.changectx(web.repo, req) |
|
435 | ctx = webutil.changectx(web.repo, req) | |
423 | path = webutil.cleanpath(web.repo, req.form['file'][0]) |
|
436 | path = webutil.cleanpath(web.repo, req.form['file'][0]) | |
424 | if path not in ctx.files(): |
|
437 | if path not in ctx.files(): | |
425 | raise |
|
438 | raise | |
426 |
|
439 | |||
427 | if fctx is not None: |
|
440 | if fctx is not None: | |
428 | n = fctx.node() |
|
441 | n = fctx.node() | |
429 | path = fctx.path() |
|
442 | path = fctx.path() | |
430 | parents = fctx.parents() |
|
443 | parents = fctx.parents() | |
431 | p1 = parents and parents[0].node() or nullid |
|
444 | p1 = parents and parents[0].node() or nullid | |
432 | else: |
|
445 | else: | |
433 | n = ctx.node() |
|
446 | n = ctx.node() | |
434 | # path already defined in except clause |
|
447 | # path already defined in except clause | |
435 | parents = ctx.parents() |
|
448 | parents = ctx.parents() | |
436 | p1 = parents and parents[0].node() or nullid |
|
449 | p1 = parents and parents[0].node() or nullid | |
437 |
|
450 | |||
438 | diffs = web.diff(tmpl, p1, n, [path]) |
|
451 | diffs = web.diff(tmpl, p1, n, [path]) | |
439 | rename = fctx and webutil.renamelink(fctx) or [] |
|
452 | rename = fctx and webutil.renamelink(fctx) or [] | |
440 | ctx = fctx and fctx or ctx |
|
453 | ctx = fctx and fctx or ctx | |
441 | return tmpl("filediff", |
|
454 | return tmpl("filediff", | |
442 | file=path, |
|
455 | file=path, | |
443 | node=hex(n), |
|
456 | node=hex(n), | |
444 | rev=ctx.rev(), |
|
457 | rev=ctx.rev(), | |
445 | date=ctx.date(), |
|
458 | date=ctx.date(), | |
446 | desc=ctx.description(), |
|
459 | desc=ctx.description(), | |
447 | author=ctx.user(), |
|
460 | author=ctx.user(), | |
448 | rename=rename, |
|
461 | rename=rename, | |
449 | branch=webutil.nodebranchnodefault(ctx), |
|
462 | branch=webutil.nodebranchnodefault(ctx), | |
450 | parent=webutil.siblings(parents), |
|
463 | parent=webutil.siblings(parents), | |
451 | child=webutil.siblings(ctx.children()), |
|
464 | child=webutil.siblings(ctx.children()), | |
452 | diff=diffs) |
|
465 | diff=diffs) | |
453 |
|
466 | |||
454 | diff = filediff |
|
467 | diff = filediff | |
455 |
|
468 | |||
456 | def annotate(web, req, tmpl): |
|
469 | def annotate(web, req, tmpl): | |
457 | fctx = webutil.filectx(web.repo, req) |
|
470 | fctx = webutil.filectx(web.repo, req) | |
458 | f = fctx.path() |
|
471 | f = fctx.path() | |
459 | parity = paritygen(web.stripecount) |
|
472 | parity = paritygen(web.stripecount) | |
460 |
|
473 | |||
461 | def annotate(**map): |
|
474 | def annotate(**map): | |
462 | last = None |
|
475 | last = None | |
463 | if binary(fctx.data()): |
|
476 | if binary(fctx.data()): | |
464 | mt = (mimetypes.guess_type(fctx.path())[0] |
|
477 | mt = (mimetypes.guess_type(fctx.path())[0] | |
465 | or 'application/octet-stream') |
|
478 | or 'application/octet-stream') | |
466 | lines = enumerate([((fctx.filectx(fctx.filerev()), 1), |
|
479 | lines = enumerate([((fctx.filectx(fctx.filerev()), 1), | |
467 | '(binary:%s)' % mt)]) |
|
480 | '(binary:%s)' % mt)]) | |
468 | else: |
|
481 | else: | |
469 | lines = enumerate(fctx.annotate(follow=True, linenumber=True)) |
|
482 | lines = enumerate(fctx.annotate(follow=True, linenumber=True)) | |
470 | for lineno, ((f, targetline), l) in lines: |
|
483 | for lineno, ((f, targetline), l) in lines: | |
471 | fnode = f.filenode() |
|
484 | fnode = f.filenode() | |
472 |
|
485 | |||
473 | if last != fnode: |
|
486 | if last != fnode: | |
474 | last = fnode |
|
487 | last = fnode | |
475 |
|
488 | |||
476 | yield {"parity": parity.next(), |
|
489 | yield {"parity": parity.next(), | |
477 | "node": hex(f.node()), |
|
490 | "node": hex(f.node()), | |
478 | "rev": f.rev(), |
|
491 | "rev": f.rev(), | |
479 | "author": f.user(), |
|
492 | "author": f.user(), | |
480 | "desc": f.description(), |
|
493 | "desc": f.description(), | |
481 | "file": f.path(), |
|
494 | "file": f.path(), | |
482 | "targetline": targetline, |
|
495 | "targetline": targetline, | |
483 | "line": l, |
|
496 | "line": l, | |
484 | "lineid": "l%d" % (lineno + 1), |
|
497 | "lineid": "l%d" % (lineno + 1), | |
485 | "linenumber": "% 6d" % (lineno + 1)} |
|
498 | "linenumber": "% 6d" % (lineno + 1)} | |
486 |
|
499 | |||
487 | return tmpl("fileannotate", |
|
500 | return tmpl("fileannotate", | |
488 | file=f, |
|
501 | file=f, | |
489 | annotate=annotate, |
|
502 | annotate=annotate, | |
490 | path=webutil.up(f), |
|
503 | path=webutil.up(f), | |
491 | rev=fctx.rev(), |
|
504 | rev=fctx.rev(), | |
492 | node=hex(fctx.node()), |
|
505 | node=hex(fctx.node()), | |
493 | author=fctx.user(), |
|
506 | author=fctx.user(), | |
494 | date=fctx.date(), |
|
507 | date=fctx.date(), | |
495 | desc=fctx.description(), |
|
508 | desc=fctx.description(), | |
496 | rename=webutil.renamelink(fctx), |
|
509 | rename=webutil.renamelink(fctx), | |
497 | branch=webutil.nodebranchnodefault(fctx), |
|
510 | branch=webutil.nodebranchnodefault(fctx), | |
498 | parent=webutil.siblings(fctx.parents()), |
|
511 | parent=webutil.siblings(fctx.parents()), | |
499 | child=webutil.siblings(fctx.children()), |
|
512 | child=webutil.siblings(fctx.children()), | |
500 | permissions=fctx.manifest().flags(f)) |
|
513 | permissions=fctx.manifest().flags(f)) | |
501 |
|
514 | |||
502 | def filelog(web, req, tmpl): |
|
515 | def filelog(web, req, tmpl): | |
503 |
|
516 | |||
504 | try: |
|
517 | try: | |
505 | fctx = webutil.filectx(web.repo, req) |
|
518 | fctx = webutil.filectx(web.repo, req) | |
506 | f = fctx.path() |
|
519 | f = fctx.path() | |
507 | fl = fctx.filelog() |
|
520 | fl = fctx.filelog() | |
508 | except revlog.LookupError: |
|
521 | except revlog.LookupError: | |
509 | f = webutil.cleanpath(web.repo, req.form['file'][0]) |
|
522 | f = webutil.cleanpath(web.repo, req.form['file'][0]) | |
510 | fl = web.repo.file(f) |
|
523 | fl = web.repo.file(f) | |
511 | numrevs = len(fl) |
|
524 | numrevs = len(fl) | |
512 | if not numrevs: # file doesn't exist at all |
|
525 | if not numrevs: # file doesn't exist at all | |
513 | raise |
|
526 | raise | |
514 | rev = webutil.changectx(web.repo, req).rev() |
|
527 | rev = webutil.changectx(web.repo, req).rev() | |
515 | first = fl.linkrev(fl.node(0)) |
|
528 | first = fl.linkrev(fl.node(0)) | |
516 | if rev < first: # current rev is from before file existed |
|
529 | if rev < first: # current rev is from before file existed | |
517 | raise |
|
530 | raise | |
518 | frev = numrevs - 1 |
|
531 | frev = numrevs - 1 | |
519 | while fl.linkrev(fl.node(frev)) > rev: |
|
532 | while fl.linkrev(fl.node(frev)) > rev: | |
520 | frev -= 1 |
|
533 | frev -= 1 | |
521 | fctx = web.repo.filectx(f, fl.linkrev(fl.node(frev))) |
|
534 | fctx = web.repo.filectx(f, fl.linkrev(fl.node(frev))) | |
522 |
|
535 | |||
523 | count = fctx.filerev() + 1 |
|
536 | count = fctx.filerev() + 1 | |
524 | pagelen = web.maxshortchanges |
|
537 | pagelen = web.maxshortchanges | |
525 | start = max(0, fctx.filerev() - pagelen + 1) # first rev on this page |
|
538 | start = max(0, fctx.filerev() - pagelen + 1) # first rev on this page | |
526 | end = min(count, start + pagelen) # last rev on this page |
|
539 | end = min(count, start + pagelen) # last rev on this page | |
527 | parity = paritygen(web.stripecount, offset=start-end) |
|
540 | parity = paritygen(web.stripecount, offset=start-end) | |
528 |
|
541 | |||
529 | def entries(limit=0, **map): |
|
542 | def entries(limit=0, **map): | |
530 | l = [] |
|
543 | l = [] | |
531 |
|
544 | |||
532 | for i in xrange(start, end): |
|
545 | for i in xrange(start, end): | |
533 | ctx = fctx.filectx(i) |
|
546 | ctx = fctx.filectx(i) | |
534 |
|
547 | |||
535 | l.insert(0, {"parity": parity.next(), |
|
548 | l.insert(0, {"parity": parity.next(), | |
536 | "filerev": i, |
|
549 | "filerev": i, | |
537 | "file": f, |
|
550 | "file": f, | |
538 | "node": hex(ctx.node()), |
|
551 | "node": hex(ctx.node()), | |
539 | "author": ctx.user(), |
|
552 | "author": ctx.user(), | |
540 | "date": ctx.date(), |
|
553 | "date": ctx.date(), | |
541 | "rename": webutil.renamelink(fctx), |
|
554 | "rename": webutil.renamelink(fctx), | |
542 | "parent": webutil.siblings(fctx.parents()), |
|
555 | "parent": webutil.siblings(fctx.parents()), | |
543 | "child": webutil.siblings(fctx.children()), |
|
556 | "child": webutil.siblings(fctx.children()), | |
544 | "desc": ctx.description()}) |
|
557 | "desc": ctx.description()}) | |
545 |
|
558 | |||
546 | if limit > 0: |
|
559 | if limit > 0: | |
547 | l = l[:limit] |
|
560 | l = l[:limit] | |
548 |
|
561 | |||
549 | for e in l: |
|
562 | for e in l: | |
550 | yield e |
|
563 | yield e | |
551 |
|
564 | |||
552 | nodefunc = lambda x: fctx.filectx(fileid=x) |
|
565 | nodefunc = lambda x: fctx.filectx(fileid=x) | |
553 | nav = webutil.revnavgen(end - 1, pagelen, count, nodefunc) |
|
566 | nav = webutil.revnavgen(end - 1, pagelen, count, nodefunc) | |
554 | return tmpl("filelog", file=f, node=hex(fctx.node()), nav=nav, |
|
567 | return tmpl("filelog", file=f, node=hex(fctx.node()), nav=nav, | |
555 | entries=lambda **x: entries(limit=0, **x), |
|
568 | entries=lambda **x: entries(limit=0, **x), | |
556 | latestentry=lambda **x: entries(limit=1, **x)) |
|
569 | latestentry=lambda **x: entries(limit=1, **x)) | |
557 |
|
570 | |||
558 |
|
571 | |||
559 | def archive(web, req, tmpl): |
|
572 | def archive(web, req, tmpl): | |
560 | type_ = req.form.get('type', [None])[0] |
|
573 | type_ = req.form.get('type', [None])[0] | |
561 | allowed = web.configlist("web", "allow_archive") |
|
574 | allowed = web.configlist("web", "allow_archive") | |
562 | key = req.form['node'][0] |
|
575 | key = req.form['node'][0] | |
563 |
|
576 | |||
564 | if type_ not in web.archives: |
|
577 | if type_ not in web.archives: | |
565 | msg = 'Unsupported archive type: %s' % type_ |
|
578 | msg = 'Unsupported archive type: %s' % type_ | |
566 | raise ErrorResponse(HTTP_NOT_FOUND, msg) |
|
579 | raise ErrorResponse(HTTP_NOT_FOUND, msg) | |
567 |
|
580 | |||
568 | if not ((type_ in allowed or |
|
581 | if not ((type_ in allowed or | |
569 | web.configbool("web", "allow" + type_, False))): |
|
582 | web.configbool("web", "allow" + type_, False))): | |
570 | msg = 'Archive type not allowed: %s' % type_ |
|
583 | msg = 'Archive type not allowed: %s' % type_ | |
571 | raise ErrorResponse(HTTP_FORBIDDEN, msg) |
|
584 | raise ErrorResponse(HTTP_FORBIDDEN, msg) | |
572 |
|
585 | |||
573 | reponame = re.sub(r"\W+", "-", os.path.basename(web.reponame)) |
|
586 | reponame = re.sub(r"\W+", "-", os.path.basename(web.reponame)) | |
574 | cnode = web.repo.lookup(key) |
|
587 | cnode = web.repo.lookup(key) | |
575 | arch_version = key |
|
588 | arch_version = key | |
576 | if cnode == key or key == 'tip': |
|
589 | if cnode == key or key == 'tip': | |
577 | arch_version = short(cnode) |
|
590 | arch_version = short(cnode) | |
578 | name = "%s-%s" % (reponame, arch_version) |
|
591 | name = "%s-%s" % (reponame, arch_version) | |
579 | mimetype, artype, extension, encoding = web.archive_specs[type_] |
|
592 | mimetype, artype, extension, encoding = web.archive_specs[type_] | |
580 | headers = [ |
|
593 | headers = [ | |
581 | ('Content-Type', mimetype), |
|
594 | ('Content-Type', mimetype), | |
582 | ('Content-Disposition', 'attachment; filename=%s%s' % (name, extension)) |
|
595 | ('Content-Disposition', 'attachment; filename=%s%s' % (name, extension)) | |
583 | ] |
|
596 | ] | |
584 | if encoding: |
|
597 | if encoding: | |
585 | headers.append(('Content-Encoding', encoding)) |
|
598 | headers.append(('Content-Encoding', encoding)) | |
586 | req.header(headers) |
|
599 | req.header(headers) | |
587 | req.respond(HTTP_OK) |
|
600 | req.respond(HTTP_OK) | |
588 | archival.archive(web.repo, req, cnode, artype, prefix=name) |
|
601 | archival.archive(web.repo, req, cnode, artype, prefix=name) | |
589 | return [] |
|
602 | return [] | |
590 |
|
603 | |||
591 |
|
604 | |||
592 | def static(web, req, tmpl): |
|
605 | def static(web, req, tmpl): | |
593 | fname = req.form['file'][0] |
|
606 | fname = req.form['file'][0] | |
594 | # a repo owner may set web.static in .hg/hgrc to get any file |
|
607 | # a repo owner may set web.static in .hg/hgrc to get any file | |
595 | # readable by the user running the CGI script |
|
608 | # readable by the user running the CGI script | |
596 | static = web.config("web", "static", None, untrusted=False) |
|
609 | static = web.config("web", "static", None, untrusted=False) | |
597 | if not static: |
|
610 | if not static: | |
598 | tp = web.templatepath |
|
611 | tp = web.templatepath | |
599 | if isinstance(tp, str): |
|
612 | if isinstance(tp, str): | |
600 | tp = [tp] |
|
613 | tp = [tp] | |
601 | static = [os.path.join(p, 'static') for p in tp] |
|
614 | static = [os.path.join(p, 'static') for p in tp] | |
602 | return [staticfile(static, fname, req)] |
|
615 | return [staticfile(static, fname, req)] | |
603 |
|
616 | |||
604 | def graph(web, req, tmpl): |
|
617 | def graph(web, req, tmpl): | |
605 | rev = webutil.changectx(web.repo, req).rev() |
|
618 | rev = webutil.changectx(web.repo, req).rev() | |
606 | bg_height = 39 |
|
619 | bg_height = 39 | |
607 |
|
620 | |||
608 | max_rev = len(web.repo) - 1 |
|
621 | max_rev = len(web.repo) - 1 | |
609 | revcount = min(max_rev, int(req.form.get('revcount', [25])[0])) |
|
622 | revcount = min(max_rev, int(req.form.get('revcount', [25])[0])) | |
610 | revnode = web.repo.changelog.node(rev) |
|
623 | revnode = web.repo.changelog.node(rev) | |
611 | revnode_hex = hex(revnode) |
|
624 | revnode_hex = hex(revnode) | |
612 | uprev = min(max_rev, rev + revcount) |
|
625 | uprev = min(max_rev, rev + revcount) | |
613 | downrev = max(0, rev - revcount) |
|
626 | downrev = max(0, rev - revcount) | |
614 | lessrev = max(0, rev - revcount / 2) |
|
627 | lessrev = max(0, rev - revcount / 2) | |
615 |
|
628 | |||
616 | maxchanges = web.maxshortchanges or web.maxchanges |
|
629 | maxchanges = web.maxshortchanges or web.maxchanges | |
617 | count = len(web.repo) |
|
630 | count = len(web.repo) | |
618 | changenav = webutil.revnavgen(rev, maxchanges, count, web.repo.changectx) |
|
631 | changenav = webutil.revnavgen(rev, maxchanges, count, web.repo.changectx) | |
619 |
|
632 | |||
620 | tree = list(graphmod.graph(web.repo, rev, downrev)) |
|
633 | tree = list(graphmod.graph(web.repo, rev, downrev)) | |
621 | canvasheight = (len(tree) + 1) * bg_height - 27; |
|
634 | canvasheight = (len(tree) + 1) * bg_height - 27; | |
622 |
|
635 | |||
623 | data = [] |
|
636 | data = [] | |
624 | for i, (ctx, vtx, edges) in enumerate(tree): |
|
637 | for i, (ctx, vtx, edges) in enumerate(tree): | |
625 | node = short(ctx.node()) |
|
638 | node = short(ctx.node()) | |
626 | age = templatefilters.age(ctx.date()) |
|
639 | age = templatefilters.age(ctx.date()) | |
627 | desc = templatefilters.firstline(ctx.description()) |
|
640 | desc = templatefilters.firstline(ctx.description()) | |
628 | desc = cgi.escape(desc) |
|
641 | desc = cgi.escape(desc) | |
629 | user = cgi.escape(templatefilters.person(ctx.user())) |
|
642 | user = cgi.escape(templatefilters.person(ctx.user())) | |
630 | branch = ctx.branch() |
|
643 | branch = ctx.branch() | |
631 | branch = branch, web.repo.branchtags().get(branch) == ctx.node() |
|
644 | branch = branch, web.repo.branchtags().get(branch) == ctx.node() | |
632 | data.append((node, vtx, edges, desc, user, age, branch, ctx.tags())) |
|
645 | data.append((node, vtx, edges, desc, user, age, branch, ctx.tags())) | |
633 |
|
646 | |||
634 | return tmpl('graph', rev=rev, revcount=revcount, uprev=uprev, |
|
647 | return tmpl('graph', rev=rev, revcount=revcount, uprev=uprev, | |
635 | lessrev=lessrev, revcountmore=revcount and 2 * revcount or 1, |
|
648 | lessrev=lessrev, revcountmore=revcount and 2 * revcount or 1, | |
636 | revcountless=revcount / 2, downrev=downrev, |
|
649 | revcountless=revcount / 2, downrev=downrev, | |
637 | canvasheight=canvasheight, bg_height=bg_height, |
|
650 | canvasheight=canvasheight, bg_height=bg_height, | |
638 | jsdata=data, node=revnode_hex, changenav=changenav) |
|
651 | jsdata=data, node=revnode_hex, changenav=changenav) |
@@ -1,72 +1,72 b'' | |||||
1 | default = 'shortlog' |
|
1 | default = 'shortlog' | |
2 |
|
2 | |||
3 | mimetype = 'text/html; charset={encoding}' |
|
3 | mimetype = 'text/html; charset={encoding}' | |
4 | header = header.tmpl |
|
4 | header = header.tmpl | |
5 | footer = footer.tmpl |
|
5 | footer = footer.tmpl | |
6 | search = search.tmpl |
|
6 | search = search.tmpl | |
7 |
|
7 | |||
8 | changelog = shortlog.tmpl |
|
8 | changelog = shortlog.tmpl | |
9 | shortlog = shortlog.tmpl |
|
9 | shortlog = shortlog.tmpl | |
10 | shortlogentry = shortlogentry.tmpl |
|
10 | shortlogentry = shortlogentry.tmpl | |
11 | graph = graph.tmpl |
|
11 | graph = graph.tmpl | |
12 |
|
12 | |||
13 | naventry = '<a href="{url}log/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' |
|
13 | naventry = '<a href="{url}log/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' | |
14 | navshortentry = '<a href="{url}shortlog/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' |
|
14 | navshortentry = '<a href="{url}shortlog/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' | |
15 | navgraphentry = '<a href="{url}graph/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' |
|
15 | navgraphentry = '<a href="{url}graph/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' | |
16 | filenaventry = '<a href="{url}log/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{label|escape}</a> ' |
|
16 | filenaventry = '<a href="{url}log/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{label|escape}</a> ' | |
17 | filedifflink = '<a href="{url}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}</a> ' |
|
17 | filedifflink = '<a href="{url}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}</a> ' | |
18 | filenodelink = '<a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}</a> ' |
|
18 | filenodelink = '<a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}</a> ' | |
19 | filenolink = '{file|escape} ' |
|
19 | filenolink = '{file|escape} ' | |
20 | fileellipses = '...' |
|
20 | fileellipses = '...' | |
21 | changelogentry = shortlogentry.tmpl |
|
21 | changelogentry = shortlogentry.tmpl | |
22 | searchentry = shortlogentry.tmpl |
|
22 | searchentry = shortlogentry.tmpl | |
23 | changeset = changeset.tmpl |
|
23 | changeset = changeset.tmpl | |
24 | manifest = manifest.tmpl |
|
24 | manifest = manifest.tmpl | |
25 |
|
25 | |||
26 | direntry = '<tr class="fileline parity{parity}"><td class="name"><a href="{url}file/{node|short}{path|urlescape}{sessionvars%urlparameter}"><img src="{staticurl}coal-folder.png"> {basename|escape}/</a><td class="size"></td><td class="permissions">drwxr-xr-x</td></tr>' |
|
26 | direntry = '<tr class="fileline parity{parity}"><td class="name"><a href="{url}file/{node|short}{path|urlescape}{sessionvars%urlparameter}"><img src="{staticurl}coal-folder.png"> {basename|escape}/</a> <a href="{url}file/{node|short}{path|urlescape}/{emptydirs|urlescape}{sessionvars%urlparameter}">{emptydirs|escape}</a><td class="size"></td><td class="permissions">drwxr-xr-x</td></tr>' | |
27 | fileentry = '<tr class="fileline parity{parity}"><td class="filename"><a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}#l1"><img src="{staticurl}coal-file.png"> {basename|escape}</a></td><td class="size">{size}</td><td class="permissions">{permissions|permissions}</td></tr>' |
|
27 | fileentry = '<tr class="fileline parity{parity}"><td class="filename"><a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}#l1"><img src="{staticurl}coal-file.png"> {basename|escape}</a></td><td class="size">{size}</td><td class="permissions">{permissions|permissions}</td></tr>' | |
28 |
|
28 | |||
29 | filerevision = filerevision.tmpl |
|
29 | filerevision = filerevision.tmpl | |
30 | fileannotate = fileannotate.tmpl |
|
30 | fileannotate = fileannotate.tmpl | |
31 | filediff = filediff.tmpl |
|
31 | filediff = filediff.tmpl | |
32 | filelog = filelog.tmpl |
|
32 | filelog = filelog.tmpl | |
33 | fileline = '<tr class="parity{parity}"><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source">{line|escape}</td></tr>' |
|
33 | fileline = '<tr class="parity{parity}"><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source">{line|escape}</td></tr>' | |
34 | filelogentry = filelogentry.tmpl |
|
34 | filelogentry = filelogentry.tmpl | |
35 |
|
35 | |||
36 | annotateline = '<tr class="parity{parity}"><td class="annotate"><a href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#{targetline}" title="{node|short}: {desc|escape|firstline}">{author|user}@{rev}</a></td><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source">{line|escape}</td></tr>' |
|
36 | annotateline = '<tr class="parity{parity}"><td class="annotate"><a href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#{targetline}" title="{node|short}: {desc|escape|firstline}">{author|user}@{rev}</a></td><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source">{line|escape}</td></tr>' | |
37 |
|
37 | |||
38 | diffblock = '<table class="bigtable parity{parity}">{lines}</table>' |
|
38 | diffblock = '<table class="bigtable parity{parity}">{lines}</table>' | |
39 | difflineplus = '<tr><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source plusline">{line|escape}</td></tr>' |
|
39 | difflineplus = '<tr><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source plusline">{line|escape}</td></tr>' | |
40 | difflineminus = '<tr><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source minusline">{line|escape}</td></tr>' |
|
40 | difflineminus = '<tr><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source minusline">{line|escape}</td></tr>' | |
41 | difflineat = '<tr><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source atline">{line|escape}</td></tr>' |
|
41 | difflineat = '<tr><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source atline">{line|escape}</td></tr>' | |
42 | diffline = '<tr><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source">{line|escape}</td></tr>' |
|
42 | diffline = '<tr><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source">{line|escape}</td></tr>' | |
43 |
|
43 | |||
44 | changelogparent = '<tr><th class="parent">parent {rev}:</th><td class="parent"><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td></tr>' |
|
44 | changelogparent = '<tr><th class="parent">parent {rev}:</th><td class="parent"><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td></tr>' | |
45 |
|
45 | |||
46 | changesetparent = '<a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a> ' |
|
46 | changesetparent = '<a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a> ' | |
47 |
|
47 | |||
48 | filerevparent = '<a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{rename%filerename}{node|short}</a> ' |
|
48 | filerevparent = '<a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{rename%filerename}{node|short}</a> ' | |
49 | filerevchild = '<a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a> ' |
|
49 | filerevchild = '<a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a> ' | |
50 |
|
50 | |||
51 | filerename = '{file|escape}@' |
|
51 | filerename = '{file|escape}@' | |
52 | filelogrename = '<tr><th>base:</th><td><a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}@{node|short}</a></td></tr>' |
|
52 | filelogrename = '<tr><th>base:</th><td><a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}@{node|short}</a></td></tr>' | |
53 | fileannotateparent = '<tr><td class="metatag">parent:</td><td><a href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{rename%filerename}{node|short}</a></td></tr>' |
|
53 | fileannotateparent = '<tr><td class="metatag">parent:</td><td><a href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{rename%filerename}{node|short}</a></td></tr>' | |
54 | changesetchild = '<a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a>' |
|
54 | changesetchild = '<a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a>' | |
55 | changelogchild = '<tr><th class="child">child</th><td class="child"><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td></tr>' |
|
55 | changelogchild = '<tr><th class="child">child</th><td class="child"><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td></tr>' | |
56 | fileannotatechild = '<tr><td class="metatag">child:</td><td><a href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td></tr>' |
|
56 | fileannotatechild = '<tr><td class="metatag">child:</td><td><a href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td></tr>' | |
57 | tags = tags.tmpl |
|
57 | tags = tags.tmpl | |
58 | tagentry = '<tr class="tagEntry parity{parity}"><td><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{tag|escape}</a></td><td class="node">{node|short}</td></tr>' |
|
58 | tagentry = '<tr class="tagEntry parity{parity}"><td><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{tag|escape}</a></td><td class="node">{node|short}</td></tr>' | |
59 | changelogtag = '<span class="tag">{name|escape}</span> ' |
|
59 | changelogtag = '<span class="tag">{name|escape}</span> ' | |
60 | changesettag = '<span class="tag">{tag|escape}</span> ' |
|
60 | changesettag = '<span class="tag">{tag|escape}</span> ' | |
61 | filediffparent = '<tr><th class="parent">parent {rev}:</th><td class="parent"><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td></tr>' |
|
61 | filediffparent = '<tr><th class="parent">parent {rev}:</th><td class="parent"><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td></tr>' | |
62 | filelogparent = '<tr><th>parent {rev}:</th><td><a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td></tr>' |
|
62 | filelogparent = '<tr><th>parent {rev}:</th><td><a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td></tr>' | |
63 | filediffchild = '<tr><th class="child">child {rev}:</th><td class="child"><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td></tr>' |
|
63 | filediffchild = '<tr><th class="child">child {rev}:</th><td class="child"><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td></tr>' | |
64 | filelogchild = '<tr><th>child {rev}:</th><td><a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td></tr>' |
|
64 | filelogchild = '<tr><th>child {rev}:</th><td><a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td></tr>' | |
65 | indexentry = '<tr class="parity{parity}"><td><a href="{url}{sessionvars%urlparameter}">{name|escape}</a></td><td>{description}</td><td>{contact|obfuscate}</td><td class="age">{lastchange|age} ago</td><td class="indexlinks">{archives%indexarchiveentry}</td></tr>\n' |
|
65 | indexentry = '<tr class="parity{parity}"><td><a href="{url}{sessionvars%urlparameter}">{name|escape}</a></td><td>{description}</td><td>{contact|obfuscate}</td><td class="age">{lastchange|age} ago</td><td class="indexlinks">{archives%indexarchiveentry}</td></tr>\n' | |
66 | indexarchiveentry = '<a href="{url}archive/{node|short}{extension|urlescape}"> ↓{type|escape}</a>' |
|
66 | indexarchiveentry = '<a href="{url}archive/{node|short}{extension|urlescape}"> ↓{type|escape}</a>' | |
67 | index = index.tmpl |
|
67 | index = index.tmpl | |
68 | archiveentry = '<li><a href="{url}archive/{node|short}{extension|urlescape}">{type|escape}</a></li>' |
|
68 | archiveentry = '<li><a href="{url}archive/{node|short}{extension|urlescape}">{type|escape}</a></li>' | |
69 | notfound = notfound.tmpl |
|
69 | notfound = notfound.tmpl | |
70 | error = error.tmpl |
|
70 | error = error.tmpl | |
71 | urlparameter = '{separator}{name}={value|urlescape}' |
|
71 | urlparameter = '{separator}{name}={value|urlescape}' | |
72 | hiddenformentry = '<input type="hidden" name="{name}" value="{value|escape}" />' |
|
72 | hiddenformentry = '<input type="hidden" name="{name}" value="{value|escape}" />' |
@@ -1,66 +1,66 b'' | |||||
1 | default = 'summary' |
|
1 | default = 'summary' | |
2 | mimetype = 'text/html; charset={encoding}' |
|
2 | mimetype = 'text/html; charset={encoding}' | |
3 | header = header.tmpl |
|
3 | header = header.tmpl | |
4 | footer = footer.tmpl |
|
4 | footer = footer.tmpl | |
5 | search = search.tmpl |
|
5 | search = search.tmpl | |
6 | changelog = changelog.tmpl |
|
6 | changelog = changelog.tmpl | |
7 | summary = summary.tmpl |
|
7 | summary = summary.tmpl | |
8 | error = error.tmpl |
|
8 | error = error.tmpl | |
9 | notfound = notfound.tmpl |
|
9 | notfound = notfound.tmpl | |
10 | naventry = '<a href="{url}log/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' |
|
10 | naventry = '<a href="{url}log/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' | |
11 | navshortentry = '<a href="{url}shortlog/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' |
|
11 | navshortentry = '<a href="{url}shortlog/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' | |
12 | navgraphentry = '<a href="{url}graph/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' |
|
12 | navgraphentry = '<a href="{url}graph/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' | |
13 | filenaventry = '<a href="{url}log/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{label|escape}</a> ' |
|
13 | filenaventry = '<a href="{url}log/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{label|escape}</a> ' | |
14 | filedifflink = '<a href="#url#diff/#node|short#/#file|urlescape#{sessionvars%urlparameter}">#file|escape#</a> ' |
|
14 | filedifflink = '<a href="#url#diff/#node|short#/#file|urlescape#{sessionvars%urlparameter}">#file|escape#</a> ' | |
15 | filenodelink = '<tr class="parity#parity#"><td><a class="list" href="{url}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">#file|escape#</a></td><td></td><td class="link"><a href="#url#file/#node|short#/#file|urlescape#{sessionvars%urlparameter}">file</a> | <a href="#url#annotate/#node|short#/#file|urlescape#{sessionvars%urlparameter}">annotate</a> | <a href="#url#diff/#node|short#/#file|urlescape#{sessionvars%urlparameter}">diff</a> | <a href="#url#log/#node|short#/#file|urlescape#{sessionvars%urlparameter}">revisions</a></td></tr>' |
|
15 | filenodelink = '<tr class="parity#parity#"><td><a class="list" href="{url}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">#file|escape#</a></td><td></td><td class="link"><a href="#url#file/#node|short#/#file|urlescape#{sessionvars%urlparameter}">file</a> | <a href="#url#annotate/#node|short#/#file|urlescape#{sessionvars%urlparameter}">annotate</a> | <a href="#url#diff/#node|short#/#file|urlescape#{sessionvars%urlparameter}">diff</a> | <a href="#url#log/#node|short#/#file|urlescape#{sessionvars%urlparameter}">revisions</a></td></tr>' | |
16 | filenolink = '<tr class="parity#parity#"><td><a class="list" href="{url}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">#file|escape#</a></td><td></td><td class="link">file | annotate | <a href="#url#diff/#node|short#/#file|urlescape#{sessionvars%urlparameter}">diff</a> | <a href="#url#log/#node|short#/#file|urlescape#{sessionvars%urlparameter}">revisions</a></td></tr>' |
|
16 | filenolink = '<tr class="parity#parity#"><td><a class="list" href="{url}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">#file|escape#</a></td><td></td><td class="link">file | annotate | <a href="#url#diff/#node|short#/#file|urlescape#{sessionvars%urlparameter}">diff</a> | <a href="#url#log/#node|short#/#file|urlescape#{sessionvars%urlparameter}">revisions</a></td></tr>' | |
17 | fileellipses = '...' |
|
17 | fileellipses = '...' | |
18 | changelogentry = changelogentry.tmpl |
|
18 | changelogentry = changelogentry.tmpl | |
19 | searchentry = changelogentry.tmpl |
|
19 | searchentry = changelogentry.tmpl | |
20 | changeset = changeset.tmpl |
|
20 | changeset = changeset.tmpl | |
21 | manifest = manifest.tmpl |
|
21 | manifest = manifest.tmpl | |
22 | direntry = '<tr class="parity#parity#"><td style="font-family:monospace">drwxr-xr-x</td><td style="font-family:monospace"></td><td style="font-family:monospace"></td><td><a href="#url#file/#node|short##path|urlescape#{sessionvars%urlparameter}">#basename|escape#</a></td><td class="link"><a href="#url#file/#node|short##path|urlescape#{sessionvars%urlparameter}">files</a></td></tr>' |
|
22 | direntry = '<tr class="parity#parity#"><td style="font-family:monospace">drwxr-xr-x</td><td style="font-family:monospace"></td><td style="font-family:monospace"></td><td><a href="#url#file/#node|short##path|urlescape#{sessionvars%urlparameter}">#basename|escape#</a> <a href="#url#file/#node|short##path|urlescape#/#emptydirs|urlescape#{sessionvars%urlparameter}">#emptydirs|escape#</a></td><td class="link"><a href="#url#file/#node|short##path|urlescape#{sessionvars%urlparameter}">files</a></td></tr>' | |
23 | fileentry = '<tr class="parity#parity#"><td style="font-family:monospace">#permissions|permissions#</td><td style="font-family:monospace" align=right>#date|isodate#</td><td style="font-family:monospace" align=right>#size#</td><td class="list"><a class="list" href="#url#file/#node|short#/#file|urlescape#{sessionvars%urlparameter}">#basename|escape#</a></td><td class="link"><a href="#url#file/#node|short#/#file|urlescape#{sessionvars%urlparameter}">file</a> | <a href="#url#log/#node|short#/#file|urlescape#{sessionvars%urlparameter}">revisions</a> | <a href="#url#annotate/#node|short#/#file|urlescape#{sessionvars%urlparameter}">annotate</a></td></tr>' |
|
23 | fileentry = '<tr class="parity#parity#"><td style="font-family:monospace">#permissions|permissions#</td><td style="font-family:monospace" align=right>#date|isodate#</td><td style="font-family:monospace" align=right>#size#</td><td class="list"><a class="list" href="#url#file/#node|short#/#file|urlescape#{sessionvars%urlparameter}">#basename|escape#</a></td><td class="link"><a href="#url#file/#node|short#/#file|urlescape#{sessionvars%urlparameter}">file</a> | <a href="#url#log/#node|short#/#file|urlescape#{sessionvars%urlparameter}">revisions</a> | <a href="#url#annotate/#node|short#/#file|urlescape#{sessionvars%urlparameter}">annotate</a></td></tr>' | |
24 | filerevision = filerevision.tmpl |
|
24 | filerevision = filerevision.tmpl | |
25 | fileannotate = fileannotate.tmpl |
|
25 | fileannotate = fileannotate.tmpl | |
26 | filediff = filediff.tmpl |
|
26 | filediff = filediff.tmpl | |
27 | filelog = filelog.tmpl |
|
27 | filelog = filelog.tmpl | |
28 | fileline = '<div style="font-family:monospace" class="parity#parity#"><pre><a class="linenr" href="##lineid#" id="#lineid#">#linenumber#</a> #line|escape#</pre></div>' |
|
28 | fileline = '<div style="font-family:monospace" class="parity#parity#"><pre><a class="linenr" href="##lineid#" id="#lineid#">#linenumber#</a> #line|escape#</pre></div>' | |
29 | annotateline = '<tr style="font-family:monospace" class="parity#parity#"><td class="linenr" style="text-align: right;"><a href="#url#annotate/#node|short#/#file|urlescape#{sessionvars%urlparameter}#l{targetline}" title="{node|short}: {desc|escape|firstline}">#author|user#@#rev#</a></td><td><pre><a class="linenr" href="##lineid#" id="#lineid#">#linenumber#</a></pre></td><td><pre>#line|escape#</pre></td></tr>' |
|
29 | annotateline = '<tr style="font-family:monospace" class="parity#parity#"><td class="linenr" style="text-align: right;"><a href="#url#annotate/#node|short#/#file|urlescape#{sessionvars%urlparameter}#l{targetline}" title="{node|short}: {desc|escape|firstline}">#author|user#@#rev#</a></td><td><pre><a class="linenr" href="##lineid#" id="#lineid#">#linenumber#</a></pre></td><td><pre>#line|escape#</pre></td></tr>' | |
30 | difflineplus = '<span style="color:#008800;"><a class="linenr" href="##lineid#" id="#lineid#">#linenumber#</a> #line|escape#</span>' |
|
30 | difflineplus = '<span style="color:#008800;"><a class="linenr" href="##lineid#" id="#lineid#">#linenumber#</a> #line|escape#</span>' | |
31 | difflineminus = '<span style="color:#cc0000;"><a class="linenr" href="##lineid#" id="#lineid#">#linenumber#</a> #line|escape#</span>' |
|
31 | difflineminus = '<span style="color:#cc0000;"><a class="linenr" href="##lineid#" id="#lineid#">#linenumber#</a> #line|escape#</span>' | |
32 | difflineat = '<span style="color:#990099;"><a class="linenr" href="##lineid#" id="#lineid#">#linenumber#</a> #line|escape#</span>' |
|
32 | difflineat = '<span style="color:#990099;"><a class="linenr" href="##lineid#" id="#lineid#">#linenumber#</a> #line|escape#</span>' | |
33 | diffline = '<span><a class="linenr" href="##lineid#" id="#lineid#">#linenumber#</a> #line|escape#</span>' |
|
33 | diffline = '<span><a class="linenr" href="##lineid#" id="#lineid#">#linenumber#</a> #line|escape#</span>' | |
34 | changelogparent = '<tr><th class="parent">parent #rev#:</th><td class="parent"><a href="#url#rev/#node|short#{sessionvars%urlparameter}">#node|short#</a></td></tr>' |
|
34 | changelogparent = '<tr><th class="parent">parent #rev#:</th><td class="parent"><a href="#url#rev/#node|short#{sessionvars%urlparameter}">#node|short#</a></td></tr>' | |
35 | changesetbranch = '<tr><td>branch</td><td>{name}</td></tr>' |
|
35 | changesetbranch = '<tr><td>branch</td><td>{name}</td></tr>' | |
36 | changesetparent = '<tr><td>parent {rev}</td><td style="font-family:monospace"><a class="list" href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td></tr>' |
|
36 | changesetparent = '<tr><td>parent {rev}</td><td style="font-family:monospace"><a class="list" href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td></tr>' | |
37 | filerevbranch = '<tr><td>branch</td><td>{name}</td></tr>' |
|
37 | filerevbranch = '<tr><td>branch</td><td>{name}</td></tr>' | |
38 | filerevparent = '<tr><td>parent {rev}</td><td style="font-family:monospace"><a class="list" href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{rename%filerename}{node|short}</a></td></tr>' |
|
38 | filerevparent = '<tr><td>parent {rev}</td><td style="font-family:monospace"><a class="list" href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{rename%filerename}{node|short}</a></td></tr>' | |
39 | filerename = '{file|escape}@' |
|
39 | filerename = '{file|escape}@' | |
40 | filelogrename = '| <a href="{url}file/#node|short#/#file|urlescape#{sessionvars%urlparameter}">base</a>' |
|
40 | filelogrename = '| <a href="{url}file/#node|short#/#file|urlescape#{sessionvars%urlparameter}">base</a>' | |
41 | fileannotateparent = '<tr><td>parent {rev}</td><td style="font-family:monospace"><a class="list" href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{rename%filerename}{node|short}</a></td></tr>' |
|
41 | fileannotateparent = '<tr><td>parent {rev}</td><td style="font-family:monospace"><a class="list" href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{rename%filerename}{node|short}</a></td></tr>' | |
42 | changelogchild = '<tr><th class="child">child #rev#:</th><td class="child"><a href="{url}rev/#node|short#{sessionvars%urlparameter}">#node|short#</a></td></tr>' |
|
42 | changelogchild = '<tr><th class="child">child #rev#:</th><td class="child"><a href="{url}rev/#node|short#{sessionvars%urlparameter}">#node|short#</a></td></tr>' | |
43 | changesetchild = '<tr><td>child {rev}</td><td style="font-family:monospace"><a class="list" href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td></tr>' |
|
43 | changesetchild = '<tr><td>child {rev}</td><td style="font-family:monospace"><a class="list" href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td></tr>' | |
44 | filerevchild = '<tr><td>child {rev}</td><td style="font-family:monospace"><a class="list" href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td></tr>' |
|
44 | filerevchild = '<tr><td>child {rev}</td><td style="font-family:monospace"><a class="list" href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td></tr>' | |
45 | fileannotatechild = '<tr><td>child {rev}</td><td style="font-family:monospace"><a class="list" href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td></tr>' |
|
45 | fileannotatechild = '<tr><td>child {rev}</td><td style="font-family:monospace"><a class="list" href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td></tr>' | |
46 | tags = tags.tmpl |
|
46 | tags = tags.tmpl | |
47 | tagentry = '<tr class="parity#parity#"><td class="age"><i>#date|age# ago</i></td><td><a class="list" href="{url}rev/{node|short}{sessionvars%urlparameter}"><b>#tag|escape#</b></a></td><td class="link"><a href="{url}rev/#node|short#{sessionvars%urlparameter}">changeset</a> | <a href="{url}log/#node|short#{sessionvars%urlparameter}">changelog</a> | <a href="{url}file/#node|short#{sessionvars%urlparameter}">files</a></td></tr>' |
|
47 | tagentry = '<tr class="parity#parity#"><td class="age"><i>#date|age# ago</i></td><td><a class="list" href="{url}rev/{node|short}{sessionvars%urlparameter}"><b>#tag|escape#</b></a></td><td class="link"><a href="{url}rev/#node|short#{sessionvars%urlparameter}">changeset</a> | <a href="{url}log/#node|short#{sessionvars%urlparameter}">changelog</a> | <a href="{url}file/#node|short#{sessionvars%urlparameter}">files</a></td></tr>' | |
48 | branchentry = '<tr class="parity{parity}"><td class="age"><i>{date|age} ago</i></td><td><a class="list" href="{url}rev/{node|short}{sessionvars%urlparameter}"><b>{node|short}</b></a></td><td>{branch|escape}</td><td class="link"><a href="{url}rev/{node|short}{sessionvars%urlparameter}">changeset</a> | <a href="{url}log/{node|short}{sessionvars%urlparameter}">changelog</a> | <a href="{url}file/{node|short}{sessionvars%urlparameter}">files</a></td></tr>' |
|
48 | branchentry = '<tr class="parity{parity}"><td class="age"><i>{date|age} ago</i></td><td><a class="list" href="{url}rev/{node|short}{sessionvars%urlparameter}"><b>{node|short}</b></a></td><td>{branch|escape}</td><td class="link"><a href="{url}rev/{node|short}{sessionvars%urlparameter}">changeset</a> | <a href="{url}log/{node|short}{sessionvars%urlparameter}">changelog</a> | <a href="{url}file/{node|short}{sessionvars%urlparameter}">files</a></td></tr>' | |
49 | diffblock = '<pre>#lines#</pre>' |
|
49 | diffblock = '<pre>#lines#</pre>' | |
50 | filediffparent = '<tr><td>parent {rev}</td><td style="font-family:monospace"><a class="list" href="{url}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td></tr>' |
|
50 | filediffparent = '<tr><td>parent {rev}</td><td style="font-family:monospace"><a class="list" href="{url}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td></tr>' | |
51 | filelogparent = '<tr><td align="right">parent #rev#: </td><td><a href="{url}file/{node|short}/#file|urlescape#{sessionvars%urlparameter}">#node|short#</a></td></tr>' |
|
51 | filelogparent = '<tr><td align="right">parent #rev#: </td><td><a href="{url}file/{node|short}/#file|urlescape#{sessionvars%urlparameter}">#node|short#</a></td></tr>' | |
52 | filediffchild = '<tr><td>child {rev}</td><td style="font-family:monospace"><a class="list" href="{url}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td></tr>' |
|
52 | filediffchild = '<tr><td>child {rev}</td><td style="font-family:monospace"><a class="list" href="{url}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td></tr>' | |
53 | filelogchild = '<tr><td align="right">child #rev#: </td><td><a href="{url}file{node|short}/#file|urlescape#{sessionvars%urlparameter}">#node|short#</a></td></tr>' |
|
53 | filelogchild = '<tr><td align="right">child #rev#: </td><td><a href="{url}file{node|short}/#file|urlescape#{sessionvars%urlparameter}">#node|short#</a></td></tr>' | |
54 | shortlog = shortlog.tmpl |
|
54 | shortlog = shortlog.tmpl | |
55 | graph = graph.tmpl |
|
55 | graph = graph.tmpl | |
56 | tagtag = '<span class="tagtag" title="{name}">{name}</span> ' |
|
56 | tagtag = '<span class="tagtag" title="{name}">{name}</span> ' | |
57 | branchtag = '<span class="branchtag" title="{name}">{name}</span> ' |
|
57 | branchtag = '<span class="branchtag" title="{name}">{name}</span> ' | |
58 | inbranchtag = '<span class="inbranchtag" title="{name}">{name}</span> ' |
|
58 | inbranchtag = '<span class="inbranchtag" title="{name}">{name}</span> ' | |
59 | shortlogentry = '<tr class="parity#parity#"><td class="age"><i>#date|age# ago</i></td><td><i>#author|person#</i></td><td><a class="list" href="{url}rev/#node|short#{sessionvars%urlparameter}"><b>#desc|strip|firstline|escape#</b> <span class="logtags">{inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}</span></a></td><td class="link" nowrap><a href="{url}rev/#node|short#{sessionvars%urlparameter}">changeset</a> | <a href="{url}file/#node|short#{sessionvars%urlparameter}">files</a></td></tr>' |
|
59 | shortlogentry = '<tr class="parity#parity#"><td class="age"><i>#date|age# ago</i></td><td><i>#author|person#</i></td><td><a class="list" href="{url}rev/#node|short#{sessionvars%urlparameter}"><b>#desc|strip|firstline|escape#</b> <span class="logtags">{inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}</span></a></td><td class="link" nowrap><a href="{url}rev/#node|short#{sessionvars%urlparameter}">changeset</a> | <a href="{url}file/#node|short#{sessionvars%urlparameter}">files</a></td></tr>' | |
60 | filelogentry = '<tr class="parity#parity#"><td class="age"><i>#date|age# ago</i></td><td><a class="list" href="{url}rev/#node|short#{sessionvars%urlparameter}"><b>#desc|strip|firstline|escape#</b></a></td><td class="link"><a href="{url}file/#node|short#/#file|urlescape#{sessionvars%urlparameter}">file</a> | <a href="{url}diff/#node|short#/#file|urlescape#{sessionvars%urlparameter}">diff</a> | <a href="{url}annotate/#node|short#/#file|urlescape#{sessionvars%urlparameter}">annotate</a> #rename%filelogrename#</td></tr>' |
|
60 | filelogentry = '<tr class="parity#parity#"><td class="age"><i>#date|age# ago</i></td><td><a class="list" href="{url}rev/#node|short#{sessionvars%urlparameter}"><b>#desc|strip|firstline|escape#</b></a></td><td class="link"><a href="{url}file/#node|short#/#file|urlescape#{sessionvars%urlparameter}">file</a> | <a href="{url}diff/#node|short#/#file|urlescape#{sessionvars%urlparameter}">diff</a> | <a href="{url}annotate/#node|short#/#file|urlescape#{sessionvars%urlparameter}">annotate</a> #rename%filelogrename#</td></tr>' | |
61 | archiveentry = ' | <a href="{url}archive/{node|short}{extension}">#type|escape#</a> ' |
|
61 | archiveentry = ' | <a href="{url}archive/{node|short}{extension}">#type|escape#</a> ' | |
62 | indexentry = '<tr class="parity{parity}"><td><a class="list" href="{url}{sessionvars%urlparameter}"><b>{name|escape}</b></a></td><td>{description}</td><td>{contact|obfuscate}</td><td class="age">{lastchange|age} ago</td><td class="indexlinks">{archives%indexarchiveentry}</td><td><div class="rss_logo"><a href="{url}rss-log">RSS</a> <a href="{url}atom-log">Atom</a></div></td></tr>\n' |
|
62 | indexentry = '<tr class="parity{parity}"><td><a class="list" href="{url}{sessionvars%urlparameter}"><b>{name|escape}</b></a></td><td>{description}</td><td>{contact|obfuscate}</td><td class="age">{lastchange|age} ago</td><td class="indexlinks">{archives%indexarchiveentry}</td><td><div class="rss_logo"><a href="{url}rss-log">RSS</a> <a href="{url}atom-log">Atom</a></div></td></tr>\n' | |
63 | indexarchiveentry = ' <a href="{url}archive/{node|short}{extension}">{type|escape}</a> ' |
|
63 | indexarchiveentry = ' <a href="{url}archive/{node|short}{extension}">{type|escape}</a> ' | |
64 | index = index.tmpl |
|
64 | index = index.tmpl | |
65 | urlparameter = '#separator##name#=#value|urlescape#' |
|
65 | urlparameter = '#separator##name#=#value|urlescape#' | |
66 | hiddenformentry = '<input type="hidden" name="#name#" value="#value|escape#" />' |
|
66 | hiddenformentry = '<input type="hidden" name="#name#" value="#value|escape#" />' |
@@ -1,60 +1,60 b'' | |||||
1 | default = 'shortlog' |
|
1 | default = 'shortlog' | |
2 | mimetype = 'text/html; charset={encoding}' |
|
2 | mimetype = 'text/html; charset={encoding}' | |
3 | header = header.tmpl |
|
3 | header = header.tmpl | |
4 | footer = footer.tmpl |
|
4 | footer = footer.tmpl | |
5 | search = search.tmpl |
|
5 | search = search.tmpl | |
6 | changelog = changelog.tmpl |
|
6 | changelog = changelog.tmpl | |
7 | shortlog = shortlog.tmpl |
|
7 | shortlog = shortlog.tmpl | |
8 | shortlogentry = shortlogentry.tmpl |
|
8 | shortlogentry = shortlogentry.tmpl | |
9 | graph = graph.tmpl |
|
9 | graph = graph.tmpl | |
10 | naventry = '<a href="{url}log/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' |
|
10 | naventry = '<a href="{url}log/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' | |
11 | navshortentry = '<a href="{url}shortlog/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' |
|
11 | navshortentry = '<a href="{url}shortlog/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' | |
12 | navgraphentry = '<a href="{url}graph/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' |
|
12 | navgraphentry = '<a href="{url}graph/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' | |
13 | filenaventry = '<a href="{url}log/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{label|escape}</a> ' |
|
13 | filenaventry = '<a href="{url}log/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{label|escape}</a> ' | |
14 | filedifflink = '<a href="#url#diff/#node|short#/#file|urlescape#{sessionvars%urlparameter}">#file|escape#</a> ' |
|
14 | filedifflink = '<a href="#url#diff/#node|short#/#file|urlescape#{sessionvars%urlparameter}">#file|escape#</a> ' | |
15 | filenodelink = '<a href="#url#file/#node|short#/#file|urlescape#{sessionvars%urlparameter}">#file|escape#</a> ' |
|
15 | filenodelink = '<a href="#url#file/#node|short#/#file|urlescape#{sessionvars%urlparameter}">#file|escape#</a> ' | |
16 | filenolink = '{file|escape} ' |
|
16 | filenolink = '{file|escape} ' | |
17 | fileellipses = '...' |
|
17 | fileellipses = '...' | |
18 | changelogentry = changelogentry.tmpl |
|
18 | changelogentry = changelogentry.tmpl | |
19 | searchentry = changelogentry.tmpl |
|
19 | searchentry = changelogentry.tmpl | |
20 | changeset = changeset.tmpl |
|
20 | changeset = changeset.tmpl | |
21 | manifest = manifest.tmpl |
|
21 | manifest = manifest.tmpl | |
22 | direntry = '<tr class="parity#parity#"><td><tt>drwxr-xr-x</tt> <td> <td> <td><a href="#url#file/#node|short##path|urlescape#{sessionvars%urlparameter}">#basename|escape#/</a>' |
|
22 | direntry = '<tr class="parity#parity#"><td><tt>drwxr-xr-x</tt> <td> <td> <td><a href="#url#file/#node|short##path|urlescape#{sessionvars%urlparameter}">#basename|escape#/</a> <a href="#url#file/#node|short##path|urlescape#/#emptydirs|urlescape#{sessionvars%urlparameter}">#emptydirs|urlescape#</a>' | |
23 | fileentry = '<tr class="parity#parity#"><td><tt>#permissions|permissions#</tt> <td align=right><tt class="date">#date|isodate#</tt> <td align=right><tt>#size#</tt> <td><a href="#url#file/#node|short#/#file|urlescape#{sessionvars%urlparameter}">#basename|escape#</a>' |
|
23 | fileentry = '<tr class="parity#parity#"><td><tt>#permissions|permissions#</tt> <td align=right><tt class="date">#date|isodate#</tt> <td align=right><tt>#size#</tt> <td><a href="#url#file/#node|short#/#file|urlescape#{sessionvars%urlparameter}">#basename|escape#</a>' | |
24 | filerevision = filerevision.tmpl |
|
24 | filerevision = filerevision.tmpl | |
25 | fileannotate = fileannotate.tmpl |
|
25 | fileannotate = fileannotate.tmpl | |
26 | filediff = filediff.tmpl |
|
26 | filediff = filediff.tmpl | |
27 | filelog = filelog.tmpl |
|
27 | filelog = filelog.tmpl | |
28 | fileline = '<div class="parity#parity#"><a class="lineno" href="##lineid#" id="#lineid#">#linenumber#</a>#line|escape#</div>' |
|
28 | fileline = '<div class="parity#parity#"><a class="lineno" href="##lineid#" id="#lineid#">#linenumber#</a>#line|escape#</div>' | |
29 | filelogentry = filelogentry.tmpl |
|
29 | filelogentry = filelogentry.tmpl | |
30 | annotateline = '<tr class="parity#parity#"><td class="annotate"><a href="#url#annotate/#node|short#/#file|urlescape#{sessionvars%urlparameter}#l{targetline}" title="{node|short}: {desc|escape|firstline}">#author|user#@#rev#</a></td><td><a class="lineno" href="##lineid#" id="#lineid#">#linenumber#</a></td><td><pre>#line|escape#</pre></td></tr>' |
|
30 | annotateline = '<tr class="parity#parity#"><td class="annotate"><a href="#url#annotate/#node|short#/#file|urlescape#{sessionvars%urlparameter}#l{targetline}" title="{node|short}: {desc|escape|firstline}">#author|user#@#rev#</a></td><td><a class="lineno" href="##lineid#" id="#lineid#">#linenumber#</a></td><td><pre>#line|escape#</pre></td></tr>' | |
31 | difflineplus = '<span class="plusline"><a class="lineno" href="##lineid#" id="#lineid#">#linenumber#</a>#line|escape#</span>' |
|
31 | difflineplus = '<span class="plusline"><a class="lineno" href="##lineid#" id="#lineid#">#linenumber#</a>#line|escape#</span>' | |
32 | difflineminus = '<span class="minusline"><a class="lineno" href="##lineid#" id="#lineid#">#linenumber#</a>#line|escape#</span>' |
|
32 | difflineminus = '<span class="minusline"><a class="lineno" href="##lineid#" id="#lineid#">#linenumber#</a>#line|escape#</span>' | |
33 | difflineat = '<span class="atline"><a class="lineno" href="##lineid#" id="#lineid#">#linenumber#</a>#line|escape#</span>' |
|
33 | difflineat = '<span class="atline"><a class="lineno" href="##lineid#" id="#lineid#">#linenumber#</a>#line|escape#</span>' | |
34 | diffline = '<a class="lineno" href="##lineid#" id="#lineid#">#linenumber#</a>#line|escape#' |
|
34 | diffline = '<a class="lineno" href="##lineid#" id="#lineid#">#linenumber#</a>#line|escape#' | |
35 | changelogparent = '<tr><th class="parent">parent #rev#:</th><td class="parent"><a href="#url#rev/#node|short#{sessionvars%urlparameter}">#node|short#</a></td></tr>' |
|
35 | changelogparent = '<tr><th class="parent">parent #rev#:</th><td class="parent"><a href="#url#rev/#node|short#{sessionvars%urlparameter}">#node|short#</a></td></tr>' | |
36 | changesetparent = '<tr><th class="parent">parent #rev#:</th><td class="parent"><a href="#url#rev/#node|short#{sessionvars%urlparameter}">#node|short#</a></td></tr>' |
|
36 | changesetparent = '<tr><th class="parent">parent #rev#:</th><td class="parent"><a href="#url#rev/#node|short#{sessionvars%urlparameter}">#node|short#</a></td></tr>' | |
37 | filerevparent = '<tr><td class="metatag">parent:</td><td><a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{rename%filerename}{node|short}</a></td></tr>' |
|
37 | filerevparent = '<tr><td class="metatag">parent:</td><td><a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{rename%filerename}{node|short}</a></td></tr>' | |
38 | filerename = '{file|escape}@' |
|
38 | filerename = '{file|escape}@' | |
39 | filelogrename = '<tr><th>base:</th><td><a href="#url#file/#node|short#/#file|urlescape#{sessionvars%urlparameter}">#file|escape#@#node|short#</a></td></tr>' |
|
39 | filelogrename = '<tr><th>base:</th><td><a href="#url#file/#node|short#/#file|urlescape#{sessionvars%urlparameter}">#file|escape#@#node|short#</a></td></tr>' | |
40 | fileannotateparent = '<tr><td class="metatag">parent:</td><td><a href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{rename%filerename}{node|short}</a></td></tr>' |
|
40 | fileannotateparent = '<tr><td class="metatag">parent:</td><td><a href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{rename%filerename}{node|short}</a></td></tr>' | |
41 | changesetchild = '<tr><th class="child">child #rev#:</th><td class="child"><a href="#url#rev/#node|short#{sessionvars%urlparameter}">#node|short#</a></td></tr>' |
|
41 | changesetchild = '<tr><th class="child">child #rev#:</th><td class="child"><a href="#url#rev/#node|short#{sessionvars%urlparameter}">#node|short#</a></td></tr>' | |
42 | changelogchild = '<tr><th class="child">child #rev#:</th><td class="child"><a href="#url#rev/#node|short#{sessionvars%urlparameter}">#node|short#</a></td></tr>' |
|
42 | changelogchild = '<tr><th class="child">child #rev#:</th><td class="child"><a href="#url#rev/#node|short#{sessionvars%urlparameter}">#node|short#</a></td></tr>' | |
43 | filerevchild = '<tr><td class="metatag">child:</td><td><a href="#url#file/#node|short#/#file|urlescape#{sessionvars%urlparameter}">#node|short#</a></td></tr>' |
|
43 | filerevchild = '<tr><td class="metatag">child:</td><td><a href="#url#file/#node|short#/#file|urlescape#{sessionvars%urlparameter}">#node|short#</a></td></tr>' | |
44 | fileannotatechild = '<tr><td class="metatag">child:</td><td><a href="#url#annotate/#node|short#/#file|urlescape#{sessionvars%urlparameter}">#node|short#</a></td></tr>' |
|
44 | fileannotatechild = '<tr><td class="metatag">child:</td><td><a href="#url#annotate/#node|short#/#file|urlescape#{sessionvars%urlparameter}">#node|short#</a></td></tr>' | |
45 | tags = tags.tmpl |
|
45 | tags = tags.tmpl | |
46 | tagentry = '<li class="tagEntry parity#parity#"><tt class="node">#node#</tt> <a href="#url#rev/#node|short#{sessionvars%urlparameter}">#tag|escape#</a></li>' |
|
46 | tagentry = '<li class="tagEntry parity#parity#"><tt class="node">#node#</tt> <a href="#url#rev/#node|short#{sessionvars%urlparameter}">#tag|escape#</a></li>' | |
47 | diffblock = '<pre class="parity#parity#">#lines#</pre>' |
|
47 | diffblock = '<pre class="parity#parity#">#lines#</pre>' | |
48 | changelogtag = '<tr><th class="tag">tag:</th><td class="tag">#tag|escape#</td></tr>' |
|
48 | changelogtag = '<tr><th class="tag">tag:</th><td class="tag">#tag|escape#</td></tr>' | |
49 | changesettag = '<tr><th class="tag">tag:</th><td class="tag">#tag|escape#</td></tr>' |
|
49 | changesettag = '<tr><th class="tag">tag:</th><td class="tag">#tag|escape#</td></tr>' | |
50 | filediffparent = '<tr><th class="parent">parent #rev#:</th><td class="parent"><a href="#url#rev/#node|short#{sessionvars%urlparameter}">#node|short#</a></td></tr>' |
|
50 | filediffparent = '<tr><th class="parent">parent #rev#:</th><td class="parent"><a href="#url#rev/#node|short#{sessionvars%urlparameter}">#node|short#</a></td></tr>' | |
51 | filelogparent = '<tr><th>parent #rev#:</th><td><a href="#url#file/#node|short#/#file|urlescape#{sessionvars%urlparameter}">#node|short#</a></td></tr>' |
|
51 | filelogparent = '<tr><th>parent #rev#:</th><td><a href="#url#file/#node|short#/#file|urlescape#{sessionvars%urlparameter}">#node|short#</a></td></tr>' | |
52 | filediffchild = '<tr><th class="child">child #rev#:</th><td class="child"><a href="#url#rev/#node|short#{sessionvars%urlparameter}">#node|short#</a></td></tr>' |
|
52 | filediffchild = '<tr><th class="child">child #rev#:</th><td class="child"><a href="#url#rev/#node|short#{sessionvars%urlparameter}">#node|short#</a></td></tr>' | |
53 | filelogchild = '<tr><th>child #rev#:</th><td><a href="#url#file/#node|short#/#file|urlescape#{sessionvars%urlparameter}">#node|short#</a></td></tr>' |
|
53 | filelogchild = '<tr><th>child #rev#:</th><td><a href="#url#file/#node|short#/#file|urlescape#{sessionvars%urlparameter}">#node|short#</a></td></tr>' | |
54 | indexentry = '<tr class="parity#parity#"><td><a href="#url#{sessionvars%urlparameter}">#name|escape#</a></td><td>#description#</td><td>#contact|obfuscate#</td><td class="age">#lastchange|age# ago</td><td class="indexlinks"><a href="#url#rss-log">RSS</a> <a href="#url#atom-log">Atom</a> #archives%archiveentry#</td></tr>' |
|
54 | indexentry = '<tr class="parity#parity#"><td><a href="#url#{sessionvars%urlparameter}">#name|escape#</a></td><td>#description#</td><td>#contact|obfuscate#</td><td class="age">#lastchange|age# ago</td><td class="indexlinks"><a href="#url#rss-log">RSS</a> <a href="#url#atom-log">Atom</a> #archives%archiveentry#</td></tr>' | |
55 | index = index.tmpl |
|
55 | index = index.tmpl | |
56 | archiveentry = '<a href="#url#archive/#node|short##extension|urlescape#">#type|escape#</a> ' |
|
56 | archiveentry = '<a href="#url#archive/#node|short##extension|urlescape#">#type|escape#</a> ' | |
57 | notfound = notfound.tmpl |
|
57 | notfound = notfound.tmpl | |
58 | error = error.tmpl |
|
58 | error = error.tmpl | |
59 | urlparameter = '#separator##name#=#value|urlescape#' |
|
59 | urlparameter = '#separator##name#=#value|urlescape#' | |
60 | hiddenformentry = '<input type="hidden" name="#name#" value="#value|escape#" />' |
|
60 | hiddenformentry = '<input type="hidden" name="#name#" value="#value|escape#" />' |
@@ -1,73 +1,73 b'' | |||||
1 | default = 'shortlog' |
|
1 | default = 'shortlog' | |
2 |
|
2 | |||
3 | mimetype = 'text/html; charset={encoding}' |
|
3 | mimetype = 'text/html; charset={encoding}' | |
4 | header = header.tmpl |
|
4 | header = header.tmpl | |
5 | footer = ../coal/footer.tmpl |
|
5 | footer = ../coal/footer.tmpl | |
6 | search = ../coal/search.tmpl |
|
6 | search = ../coal/search.tmpl | |
7 |
|
7 | |||
8 | changelog = ../coal/shortlog.tmpl |
|
8 | changelog = ../coal/shortlog.tmpl | |
9 | shortlog = ../coal/shortlog.tmpl |
|
9 | shortlog = ../coal/shortlog.tmpl | |
10 | shortlogentry = ../coal/shortlogentry.tmpl |
|
10 | shortlogentry = ../coal/shortlogentry.tmpl | |
11 | graph = ../coal/graph.tmpl |
|
11 | graph = ../coal/graph.tmpl | |
12 |
|
12 | |||
13 | naventry = '<a href="{url}log/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' |
|
13 | naventry = '<a href="{url}log/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' | |
14 | navshortentry = '<a href="{url}shortlog/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' |
|
14 | navshortentry = '<a href="{url}shortlog/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' | |
15 | navgraphentry = '<a href="{url}graph/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' |
|
15 | navgraphentry = '<a href="{url}graph/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' | |
16 | filenaventry = '<a href="{url}log/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{label|escape}</a> ' |
|
16 | filenaventry = '<a href="{url}log/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{label|escape}</a> ' | |
17 | filedifflink = '<a href="{url}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}</a> ' |
|
17 | filedifflink = '<a href="{url}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}</a> ' | |
18 | filenodelink = '<a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}</a> ' |
|
18 | filenodelink = '<a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}</a> ' | |
19 | filenolink = '{file|escape} ' |
|
19 | filenolink = '{file|escape} ' | |
20 | fileellipses = '...' |
|
20 | fileellipses = '...' | |
21 | changelogentry = ../coal/shortlogentry.tmpl |
|
21 | changelogentry = ../coal/shortlogentry.tmpl | |
22 | searchentry = ../coal/shortlogentry.tmpl |
|
22 | searchentry = ../coal/shortlogentry.tmpl | |
23 | changeset = ../coal/changeset.tmpl |
|
23 | changeset = ../coal/changeset.tmpl | |
24 | manifest = ../coal/manifest.tmpl |
|
24 | manifest = ../coal/manifest.tmpl | |
25 |
|
25 | |||
26 | direntry = '<tr class="fileline parity{parity}"><td class="name"><a href="{url}file/{node|short}{path|urlescape}{sessionvars%urlparameter}"><img src="{staticurl}coal-folder.png"> {basename|escape}/</a><td class="size"></td><td class="permissions">drwxr-xr-x</td></tr>' |
|
26 | direntry = '<tr class="fileline parity{parity}"><td class="name"><a href="{url}file/{node|short}{path|urlescape}{sessionvars%urlparameter}"><img src="{staticurl}coal-folder.png"> {basename|escape}/</a> <a href="{url}file/{node|short}{path|urlescape}/{emptydirs|urlescape}{sessionvars%urlparameter}">{emptydirs|escape}</a><td class="size"></td><td class="permissions">drwxr-xr-x</td></tr>' | |
27 | fileentry = '<tr class="fileline parity{parity}"><td class="filename"><a href="{url}file/{node|short}/{file|urlescape}#l1{sessionvars%urlparameter}"><img src="{staticurl}coal-file.png"> {basename|escape}</a></td><td class="size">{size}</td><td class="permissions">{permissions|permissions}</td></tr>' |
|
27 | fileentry = '<tr class="fileline parity{parity}"><td class="filename"><a href="{url}file/{node|short}/{file|urlescape}#l1{sessionvars%urlparameter}"><img src="{staticurl}coal-file.png"> {basename|escape}</a></td><td class="size">{size}</td><td class="permissions">{permissions|permissions}</td></tr>' | |
28 |
|
28 | |||
29 | filerevision = ../coal/filerevision.tmpl |
|
29 | filerevision = ../coal/filerevision.tmpl | |
30 | fileannotate = ../coal/fileannotate.tmpl |
|
30 | fileannotate = ../coal/fileannotate.tmpl | |
31 | filediff = ../coal/filediff.tmpl |
|
31 | filediff = ../coal/filediff.tmpl | |
32 | filelog = ../coal/filelog.tmpl |
|
32 | filelog = ../coal/filelog.tmpl | |
33 | fileline = '<tr class="parity{parity}"><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source">{line|escape}</td></tr>' |
|
33 | fileline = '<tr class="parity{parity}"><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source">{line|escape}</td></tr>' | |
34 | filelogentry = ../coal/filelogentry.tmpl |
|
34 | filelogentry = ../coal/filelogentry.tmpl | |
35 |
|
35 | |||
36 | annotateline = '<tr class="parity{parity}"><td class="annotate"><a href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#{targetline}" title="{node|short}: {desc|escape|firstline}">{author|user}@{rev}</a></td><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source">{line|escape}</td></tr>' |
|
36 | annotateline = '<tr class="parity{parity}"><td class="annotate"><a href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#{targetline}" title="{node|short}: {desc|escape|firstline}">{author|user}@{rev}</a></td><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source">{line|escape}</td></tr>' | |
37 |
|
37 | |||
38 | diffblock = '<table class="bigtable parity{parity}">{lines}</table>' |
|
38 | diffblock = '<table class="bigtable parity{parity}">{lines}</table>' | |
39 | difflineplus = '<tr><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source plusline">{line|escape}</td></tr>' |
|
39 | difflineplus = '<tr><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source plusline">{line|escape}</td></tr>' | |
40 | difflineminus = '<tr><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source minusline">{line|escape}</td></tr>' |
|
40 | difflineminus = '<tr><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source minusline">{line|escape}</td></tr>' | |
41 | difflineat = '<tr><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source atline">{line|escape}</td></tr>' |
|
41 | difflineat = '<tr><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source atline">{line|escape}</td></tr>' | |
42 | diffline = '<tr><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source">{line|escape}</td></tr>' |
|
42 | diffline = '<tr><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source">{line|escape}</td></tr>' | |
43 |
|
43 | |||
44 | changelogparent = '<tr><th class="parent">parent {rev}:</th><td class="parent"><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td></tr>' |
|
44 | changelogparent = '<tr><th class="parent">parent {rev}:</th><td class="parent"><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td></tr>' | |
45 |
|
45 | |||
46 | changesetparent = '<a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a> ' |
|
46 | changesetparent = '<a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a> ' | |
47 |
|
47 | |||
48 | filerevparent = '<a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{rename%filerename}{node|short}</a> ' |
|
48 | filerevparent = '<a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{rename%filerename}{node|short}</a> ' | |
49 | filerevchild = '<a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a> ' |
|
49 | filerevchild = '<a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a> ' | |
50 |
|
50 | |||
51 | filerename = '{file|escape}@' |
|
51 | filerename = '{file|escape}@' | |
52 | filelogrename = '<tr><th>base:</th><td><a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}@{node|short}</a></td></tr>' |
|
52 | filelogrename = '<tr><th>base:</th><td><a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}@{node|short}</a></td></tr>' | |
53 | fileannotateparent = '<tr><td class="metatag">parent:</td><td><a href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{rename%filerename}{node|short}</a></td></tr>' |
|
53 | fileannotateparent = '<tr><td class="metatag">parent:</td><td><a href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{rename%filerename}{node|short}</a></td></tr>' | |
54 | changesetchild = '<a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a>' |
|
54 | changesetchild = '<a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a>' | |
55 | changelogchild = '<tr><th class="child">child</th><td class="child"><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td></tr>' |
|
55 | changelogchild = '<tr><th class="child">child</th><td class="child"><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td></tr>' | |
56 | fileannotatechild = '<tr><td class="metatag">child:</td><td><a href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td></tr>' |
|
56 | fileannotatechild = '<tr><td class="metatag">child:</td><td><a href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td></tr>' | |
57 | tags = ../coal/tags.tmpl |
|
57 | tags = ../coal/tags.tmpl | |
58 | tagentry = '<tr class="tagEntry parity{parity}"><td><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{tag|escape}</a></td><td class="node">{node|short}</td></tr>' |
|
58 | tagentry = '<tr class="tagEntry parity{parity}"><td><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{tag|escape}</a></td><td class="node">{node|short}</td></tr>' | |
59 | changelogtag = '<tr><th class="tag">tag:</th><td class="tag">{tag|escape}</td></tr>' |
|
59 | changelogtag = '<tr><th class="tag">tag:</th><td class="tag">{tag|escape}</td></tr>' | |
60 | changelogtag = '<span class="tag">{name|escape}</span> ' |
|
60 | changelogtag = '<span class="tag">{name|escape}</span> ' | |
61 | changesettag = '<span class="tag">{tag|escape}</span> ' |
|
61 | changesettag = '<span class="tag">{tag|escape}</span> ' | |
62 | filediffparent = '<tr><th class="parent">parent {rev}:</th><td class="parent"><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td></tr>' |
|
62 | filediffparent = '<tr><th class="parent">parent {rev}:</th><td class="parent"><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td></tr>' | |
63 | filelogparent = '<tr><th>parent {rev}:</th><td><a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td></tr>' |
|
63 | filelogparent = '<tr><th>parent {rev}:</th><td><a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td></tr>' | |
64 | filediffchild = '<tr><th class="child">child {rev}:</th><td class="child"><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td></tr>' |
|
64 | filediffchild = '<tr><th class="child">child {rev}:</th><td class="child"><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td></tr>' | |
65 | filelogchild = '<tr><th>child {rev}:</th><td><a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td></tr>' |
|
65 | filelogchild = '<tr><th>child {rev}:</th><td><a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td></tr>' | |
66 | indexentry = '<tr class="parity{parity}"><td><a href="{url}{sessionvars%urlparameter}">{name|escape}</a></td><td>{description}</td><td>{contact|obfuscate}</td><td class="age">{lastchange|age} ago</td><td class="indexlinks">{archives%indexarchiveentry}</td></tr>\n' |
|
66 | indexentry = '<tr class="parity{parity}"><td><a href="{url}{sessionvars%urlparameter}">{name|escape}</a></td><td>{description}</td><td>{contact|obfuscate}</td><td class="age">{lastchange|age} ago</td><td class="indexlinks">{archives%indexarchiveentry}</td></tr>\n' | |
67 | indexarchiveentry = '<a href="{url}archive/{node|short}{extension|urlescape}"> ↓{type|escape}</a>' |
|
67 | indexarchiveentry = '<a href="{url}archive/{node|short}{extension|urlescape}"> ↓{type|escape}</a>' | |
68 | index = ../coal/index.tmpl |
|
68 | index = ../coal/index.tmpl | |
69 | archiveentry = '<li><a href="{url}archive/{node|short}{extension|urlescape}">{type|escape}</a></li>' |
|
69 | archiveentry = '<li><a href="{url}archive/{node|short}{extension|urlescape}">{type|escape}</a></li>' | |
70 | notfound = ../coal/notfound.tmpl |
|
70 | notfound = ../coal/notfound.tmpl | |
71 | error = ../coal/error.tmpl |
|
71 | error = ../coal/error.tmpl | |
72 | urlparameter = '{separator}{name}={value|urlescape}' |
|
72 | urlparameter = '{separator}{name}={value|urlescape}' | |
73 | hiddenformentry = '<input type="hidden" name="{name}" value="{value|escape}" />' |
|
73 | hiddenformentry = '<input type="hidden" name="{name}" value="{value|escape}" />' |
General Comments 0
You need to be logged in to leave comments.
Login now