Show More
@@ -1,1477 +1,1478 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 of the |
|
5 | # This software may be used and distributed according to the terms of the | |
6 | # GNU General Public License version 2 or any later version. |
|
6 | # GNU General Public License version 2 or any later version. | |
7 |
|
7 | |||
8 | from __future__ import absolute_import |
|
8 | from __future__ import absolute_import | |
9 |
|
9 | |||
10 | import copy |
|
10 | import copy | |
11 | import mimetypes |
|
11 | import mimetypes | |
12 | import os |
|
12 | import os | |
13 | import re |
|
13 | import re | |
14 |
|
14 | |||
15 | from ..i18n import _ |
|
15 | from ..i18n import _ | |
16 | from ..node import hex, short |
|
16 | from ..node import hex, short | |
17 |
|
17 | |||
18 | from .common import ( |
|
18 | from .common import ( | |
19 | ErrorResponse, |
|
19 | ErrorResponse, | |
20 | HTTP_FORBIDDEN, |
|
20 | HTTP_FORBIDDEN, | |
21 | HTTP_NOT_FOUND, |
|
21 | HTTP_NOT_FOUND, | |
22 | get_contact, |
|
22 | get_contact, | |
23 | paritygen, |
|
23 | paritygen, | |
24 | staticfile, |
|
24 | staticfile, | |
25 | ) |
|
25 | ) | |
26 |
|
26 | |||
27 | from .. import ( |
|
27 | from .. import ( | |
28 | archival, |
|
28 | archival, | |
29 | dagop, |
|
29 | dagop, | |
30 | encoding, |
|
30 | encoding, | |
31 | error, |
|
31 | error, | |
32 | graphmod, |
|
32 | graphmod, | |
33 | pycompat, |
|
33 | pycompat, | |
34 | revset, |
|
34 | revset, | |
35 | revsetlang, |
|
35 | revsetlang, | |
36 | scmutil, |
|
36 | scmutil, | |
37 | smartset, |
|
37 | smartset, | |
38 | templater, |
|
38 | templater, | |
39 | templateutil, |
|
39 | templateutil, | |
40 | ) |
|
40 | ) | |
41 |
|
41 | |||
42 | from ..utils import ( |
|
42 | from ..utils import ( | |
43 | stringutil, |
|
43 | stringutil, | |
44 | ) |
|
44 | ) | |
45 |
|
45 | |||
46 | from . import ( |
|
46 | from . import ( | |
47 | webutil, |
|
47 | webutil, | |
48 | ) |
|
48 | ) | |
49 |
|
49 | |||
50 | __all__ = [] |
|
50 | __all__ = [] | |
51 | commands = {} |
|
51 | commands = {} | |
52 |
|
52 | |||
53 | class webcommand(object): |
|
53 | class webcommand(object): | |
54 | """Decorator used to register a web command handler. |
|
54 | """Decorator used to register a web command handler. | |
55 |
|
55 | |||
56 | The decorator takes as its positional arguments the name/path the |
|
56 | The decorator takes as its positional arguments the name/path the | |
57 | command should be accessible under. |
|
57 | command should be accessible under. | |
58 |
|
58 | |||
59 | When called, functions receive as arguments a ``requestcontext``, |
|
59 | When called, functions receive as arguments a ``requestcontext``, | |
60 | ``wsgirequest``, and a templater instance for generatoring output. |
|
60 | ``wsgirequest``, and a templater instance for generatoring output. | |
61 | The functions should populate the ``rctx.res`` object with details |
|
61 | The functions should populate the ``rctx.res`` object with details | |
62 | about the HTTP response. |
|
62 | about the HTTP response. | |
63 |
|
63 | |||
64 | The function returns a generator to be consumed by the WSGI application. |
|
64 | The function returns a generator to be consumed by the WSGI application. | |
65 | For most commands, this should be the result from |
|
65 | For most commands, this should be the result from | |
66 | ``web.res.sendresponse()``. Many commands will call ``web.sendtemplate()`` |
|
66 | ``web.res.sendresponse()``. Many commands will call ``web.sendtemplate()`` | |
67 | to render a template. |
|
67 | to render a template. | |
68 |
|
68 | |||
69 | Usage: |
|
69 | Usage: | |
70 |
|
70 | |||
71 | @webcommand('mycommand') |
|
71 | @webcommand('mycommand') | |
72 | def mycommand(web): |
|
72 | def mycommand(web): | |
73 | pass |
|
73 | pass | |
74 | """ |
|
74 | """ | |
75 |
|
75 | |||
76 | def __init__(self, name): |
|
76 | def __init__(self, name): | |
77 | self.name = name |
|
77 | self.name = name | |
78 |
|
78 | |||
79 | def __call__(self, func): |
|
79 | def __call__(self, func): | |
80 | __all__.append(self.name) |
|
80 | __all__.append(self.name) | |
81 | commands[self.name] = func |
|
81 | commands[self.name] = func | |
82 | return func |
|
82 | return func | |
83 |
|
83 | |||
84 | @webcommand('log') |
|
84 | @webcommand('log') | |
85 | def log(web): |
|
85 | def log(web): | |
86 | """ |
|
86 | """ | |
87 | /log[/{revision}[/{path}]] |
|
87 | /log[/{revision}[/{path}]] | |
88 | -------------------------- |
|
88 | -------------------------- | |
89 |
|
89 | |||
90 | Show repository or file history. |
|
90 | Show repository or file history. | |
91 |
|
91 | |||
92 | For URLs of the form ``/log/{revision}``, a list of changesets starting at |
|
92 | For URLs of the form ``/log/{revision}``, a list of changesets starting at | |
93 | the specified changeset identifier is shown. If ``{revision}`` is not |
|
93 | the specified changeset identifier is shown. If ``{revision}`` is not | |
94 | defined, the default is ``tip``. This form is equivalent to the |
|
94 | defined, the default is ``tip``. This form is equivalent to the | |
95 | ``changelog`` handler. |
|
95 | ``changelog`` handler. | |
96 |
|
96 | |||
97 | For URLs of the form ``/log/{revision}/{file}``, the history for a specific |
|
97 | For URLs of the form ``/log/{revision}/{file}``, the history for a specific | |
98 | file will be shown. This form is equivalent to the ``filelog`` handler. |
|
98 | file will be shown. This form is equivalent to the ``filelog`` handler. | |
99 | """ |
|
99 | """ | |
100 |
|
100 | |||
101 | if web.req.qsparams.get('file'): |
|
101 | if web.req.qsparams.get('file'): | |
102 | return filelog(web) |
|
102 | return filelog(web) | |
103 | else: |
|
103 | else: | |
104 | return changelog(web) |
|
104 | return changelog(web) | |
105 |
|
105 | |||
106 | @webcommand('rawfile') |
|
106 | @webcommand('rawfile') | |
107 | def rawfile(web): |
|
107 | def rawfile(web): | |
108 | guessmime = web.configbool('web', 'guessmime') |
|
108 | guessmime = web.configbool('web', 'guessmime') | |
109 |
|
109 | |||
110 | path = webutil.cleanpath(web.repo, web.req.qsparams.get('file', '')) |
|
110 | path = webutil.cleanpath(web.repo, web.req.qsparams.get('file', '')) | |
111 | if not path: |
|
111 | if not path: | |
112 | return manifest(web) |
|
112 | return manifest(web) | |
113 |
|
113 | |||
114 | try: |
|
114 | try: | |
115 | fctx = webutil.filectx(web.repo, web.req) |
|
115 | fctx = webutil.filectx(web.repo, web.req) | |
116 | except error.LookupError as inst: |
|
116 | except error.LookupError as inst: | |
117 | try: |
|
117 | try: | |
118 | return manifest(web) |
|
118 | return manifest(web) | |
119 | except ErrorResponse: |
|
119 | except ErrorResponse: | |
120 | raise inst |
|
120 | raise inst | |
121 |
|
121 | |||
122 | path = fctx.path() |
|
122 | path = fctx.path() | |
123 | text = fctx.data() |
|
123 | text = fctx.data() | |
124 | mt = 'application/binary' |
|
124 | mt = 'application/binary' | |
125 | if guessmime: |
|
125 | if guessmime: | |
126 | mt = mimetypes.guess_type(path)[0] |
|
126 | mt = mimetypes.guess_type(path)[0] | |
127 | if mt is None: |
|
127 | if mt is None: | |
128 | if stringutil.binary(text): |
|
128 | if stringutil.binary(text): | |
129 | mt = 'application/binary' |
|
129 | mt = 'application/binary' | |
130 | else: |
|
130 | else: | |
131 | mt = 'text/plain' |
|
131 | mt = 'text/plain' | |
132 | if mt.startswith('text/'): |
|
132 | if mt.startswith('text/'): | |
133 | mt += '; charset="%s"' % encoding.encoding |
|
133 | mt += '; charset="%s"' % encoding.encoding | |
134 |
|
134 | |||
135 | web.res.headers['Content-Type'] = mt |
|
135 | web.res.headers['Content-Type'] = mt | |
136 | filename = (path.rpartition('/')[-1] |
|
136 | filename = (path.rpartition('/')[-1] | |
137 | .replace('\\', '\\\\').replace('"', '\\"')) |
|
137 | .replace('\\', '\\\\').replace('"', '\\"')) | |
138 | web.res.headers['Content-Disposition'] = 'inline; filename="%s"' % filename |
|
138 | web.res.headers['Content-Disposition'] = 'inline; filename="%s"' % filename | |
139 | web.res.setbodybytes(text) |
|
139 | web.res.setbodybytes(text) | |
140 | return web.res.sendresponse() |
|
140 | return web.res.sendresponse() | |
141 |
|
141 | |||
142 | def _filerevision(web, fctx): |
|
142 | def _filerevision(web, fctx): | |
143 | f = fctx.path() |
|
143 | f = fctx.path() | |
144 | text = fctx.data() |
|
144 | text = fctx.data() | |
145 | parity = paritygen(web.stripecount) |
|
145 | parity = paritygen(web.stripecount) | |
146 | ishead = fctx.filerev() in fctx.filelog().headrevs() |
|
146 | ishead = fctx.filerev() in fctx.filelog().headrevs() | |
147 |
|
147 | |||
148 | if stringutil.binary(text): |
|
148 | if stringutil.binary(text): | |
149 | mt = mimetypes.guess_type(f)[0] or 'application/octet-stream' |
|
149 | mt = mimetypes.guess_type(f)[0] or 'application/octet-stream' | |
150 | text = '(binary:%s)' % mt |
|
150 | text = '(binary:%s)' % mt | |
151 |
|
151 | |||
152 | def lines(context): |
|
152 | def lines(context): | |
153 | for lineno, t in enumerate(text.splitlines(True)): |
|
153 | for lineno, t in enumerate(text.splitlines(True)): | |
154 | yield {"line": t, |
|
154 | yield {"line": t, | |
155 | "lineid": "l%d" % (lineno + 1), |
|
155 | "lineid": "l%d" % (lineno + 1), | |
156 | "linenumber": "% 6d" % (lineno + 1), |
|
156 | "linenumber": "% 6d" % (lineno + 1), | |
157 | "parity": next(parity)} |
|
157 | "parity": next(parity)} | |
158 |
|
158 | |||
159 | return web.sendtemplate( |
|
159 | return web.sendtemplate( | |
160 | 'filerevision', |
|
160 | 'filerevision', | |
161 | file=f, |
|
161 | file=f, | |
162 | path=webutil.up(f), |
|
162 | path=webutil.up(f), | |
163 | text=templateutil.mappinggenerator(lines), |
|
163 | text=templateutil.mappinggenerator(lines), | |
164 | symrev=webutil.symrevorshortnode(web.req, fctx), |
|
164 | symrev=webutil.symrevorshortnode(web.req, fctx), | |
165 | rename=webutil.renamelink(fctx), |
|
165 | rename=webutil.renamelink(fctx), | |
166 | permissions=fctx.manifest().flags(f), |
|
166 | permissions=fctx.manifest().flags(f), | |
167 | ishead=int(ishead), |
|
167 | ishead=int(ishead), | |
168 | **pycompat.strkwargs(webutil.commonentry(web.repo, fctx))) |
|
168 | **pycompat.strkwargs(webutil.commonentry(web.repo, fctx))) | |
169 |
|
169 | |||
170 | @webcommand('file') |
|
170 | @webcommand('file') | |
171 | def file(web): |
|
171 | def file(web): | |
172 | """ |
|
172 | """ | |
173 | /file/{revision}[/{path}] |
|
173 | /file/{revision}[/{path}] | |
174 | ------------------------- |
|
174 | ------------------------- | |
175 |
|
175 | |||
176 | Show information about a directory or file in the repository. |
|
176 | Show information about a directory or file in the repository. | |
177 |
|
177 | |||
178 | Info about the ``path`` given as a URL parameter will be rendered. |
|
178 | Info about the ``path`` given as a URL parameter will be rendered. | |
179 |
|
179 | |||
180 | If ``path`` is a directory, information about the entries in that |
|
180 | If ``path`` is a directory, information about the entries in that | |
181 | directory will be rendered. This form is equivalent to the ``manifest`` |
|
181 | directory will be rendered. This form is equivalent to the ``manifest`` | |
182 | handler. |
|
182 | handler. | |
183 |
|
183 | |||
184 | If ``path`` is a file, information about that file will be shown via |
|
184 | If ``path`` is a file, information about that file will be shown via | |
185 | the ``filerevision`` template. |
|
185 | the ``filerevision`` template. | |
186 |
|
186 | |||
187 | If ``path`` is not defined, information about the root directory will |
|
187 | If ``path`` is not defined, information about the root directory will | |
188 | be rendered. |
|
188 | be rendered. | |
189 | """ |
|
189 | """ | |
190 | if web.req.qsparams.get('style') == 'raw': |
|
190 | if web.req.qsparams.get('style') == 'raw': | |
191 | return rawfile(web) |
|
191 | return rawfile(web) | |
192 |
|
192 | |||
193 | path = webutil.cleanpath(web.repo, web.req.qsparams.get('file', '')) |
|
193 | path = webutil.cleanpath(web.repo, web.req.qsparams.get('file', '')) | |
194 | if not path: |
|
194 | if not path: | |
195 | return manifest(web) |
|
195 | return manifest(web) | |
196 | try: |
|
196 | try: | |
197 | return _filerevision(web, webutil.filectx(web.repo, web.req)) |
|
197 | return _filerevision(web, webutil.filectx(web.repo, web.req)) | |
198 | except error.LookupError as inst: |
|
198 | except error.LookupError as inst: | |
199 | try: |
|
199 | try: | |
200 | return manifest(web) |
|
200 | return manifest(web) | |
201 | except ErrorResponse: |
|
201 | except ErrorResponse: | |
202 | raise inst |
|
202 | raise inst | |
203 |
|
203 | |||
204 | def _search(web): |
|
204 | def _search(web): | |
205 | MODE_REVISION = 'rev' |
|
205 | MODE_REVISION = 'rev' | |
206 | MODE_KEYWORD = 'keyword' |
|
206 | MODE_KEYWORD = 'keyword' | |
207 | MODE_REVSET = 'revset' |
|
207 | MODE_REVSET = 'revset' | |
208 |
|
208 | |||
209 | def revsearch(ctx): |
|
209 | def revsearch(ctx): | |
210 | yield ctx |
|
210 | yield ctx | |
211 |
|
211 | |||
212 | def keywordsearch(query): |
|
212 | def keywordsearch(query): | |
213 | lower = encoding.lower |
|
213 | lower = encoding.lower | |
214 | qw = lower(query).split() |
|
214 | qw = lower(query).split() | |
215 |
|
215 | |||
216 | def revgen(): |
|
216 | def revgen(): | |
217 | cl = web.repo.changelog |
|
217 | cl = web.repo.changelog | |
218 | for i in xrange(len(web.repo) - 1, 0, -100): |
|
218 | for i in xrange(len(web.repo) - 1, 0, -100): | |
219 | l = [] |
|
219 | l = [] | |
220 | for j in cl.revs(max(0, i - 99), i): |
|
220 | for j in cl.revs(max(0, i - 99), i): | |
221 | ctx = web.repo[j] |
|
221 | ctx = web.repo[j] | |
222 | l.append(ctx) |
|
222 | l.append(ctx) | |
223 | l.reverse() |
|
223 | l.reverse() | |
224 | for e in l: |
|
224 | for e in l: | |
225 | yield e |
|
225 | yield e | |
226 |
|
226 | |||
227 | for ctx in revgen(): |
|
227 | for ctx in revgen(): | |
228 | miss = 0 |
|
228 | miss = 0 | |
229 | for q in qw: |
|
229 | for q in qw: | |
230 | if not (q in lower(ctx.user()) or |
|
230 | if not (q in lower(ctx.user()) or | |
231 | q in lower(ctx.description()) or |
|
231 | q in lower(ctx.description()) or | |
232 | q in lower(" ".join(ctx.files()))): |
|
232 | q in lower(" ".join(ctx.files()))): | |
233 | miss = 1 |
|
233 | miss = 1 | |
234 | break |
|
234 | break | |
235 | if miss: |
|
235 | if miss: | |
236 | continue |
|
236 | continue | |
237 |
|
237 | |||
238 | yield ctx |
|
238 | yield ctx | |
239 |
|
239 | |||
240 | def revsetsearch(revs): |
|
240 | def revsetsearch(revs): | |
241 | for r in revs: |
|
241 | for r in revs: | |
242 | yield web.repo[r] |
|
242 | yield web.repo[r] | |
243 |
|
243 | |||
244 | searchfuncs = { |
|
244 | searchfuncs = { | |
245 | MODE_REVISION: (revsearch, 'exact revision search'), |
|
245 | MODE_REVISION: (revsearch, 'exact revision search'), | |
246 | MODE_KEYWORD: (keywordsearch, 'literal keyword search'), |
|
246 | MODE_KEYWORD: (keywordsearch, 'literal keyword search'), | |
247 | MODE_REVSET: (revsetsearch, 'revset expression search'), |
|
247 | MODE_REVSET: (revsetsearch, 'revset expression search'), | |
248 | } |
|
248 | } | |
249 |
|
249 | |||
250 | def getsearchmode(query): |
|
250 | def getsearchmode(query): | |
251 | try: |
|
251 | try: | |
252 | ctx = scmutil.revsymbol(web.repo, query) |
|
252 | ctx = scmutil.revsymbol(web.repo, query) | |
253 | except (error.RepoError, error.LookupError): |
|
253 | except (error.RepoError, error.LookupError): | |
254 | # query is not an exact revision pointer, need to |
|
254 | # query is not an exact revision pointer, need to | |
255 | # decide if it's a revset expression or keywords |
|
255 | # decide if it's a revset expression or keywords | |
256 | pass |
|
256 | pass | |
257 | else: |
|
257 | else: | |
258 | return MODE_REVISION, ctx |
|
258 | return MODE_REVISION, ctx | |
259 |
|
259 | |||
260 | revdef = 'reverse(%s)' % query |
|
260 | revdef = 'reverse(%s)' % query | |
261 | try: |
|
261 | try: | |
262 | tree = revsetlang.parse(revdef) |
|
262 | tree = revsetlang.parse(revdef) | |
263 | except error.ParseError: |
|
263 | except error.ParseError: | |
264 | # can't parse to a revset tree |
|
264 | # can't parse to a revset tree | |
265 | return MODE_KEYWORD, query |
|
265 | return MODE_KEYWORD, query | |
266 |
|
266 | |||
267 | if revsetlang.depth(tree) <= 2: |
|
267 | if revsetlang.depth(tree) <= 2: | |
268 | # no revset syntax used |
|
268 | # no revset syntax used | |
269 | return MODE_KEYWORD, query |
|
269 | return MODE_KEYWORD, query | |
270 |
|
270 | |||
271 | if any((token, (value or '')[:3]) == ('string', 're:') |
|
271 | if any((token, (value or '')[:3]) == ('string', 're:') | |
272 | for token, value, pos in revsetlang.tokenize(revdef)): |
|
272 | for token, value, pos in revsetlang.tokenize(revdef)): | |
273 | return MODE_KEYWORD, query |
|
273 | return MODE_KEYWORD, query | |
274 |
|
274 | |||
275 | funcsused = revsetlang.funcsused(tree) |
|
275 | funcsused = revsetlang.funcsused(tree) | |
276 | if not funcsused.issubset(revset.safesymbols): |
|
276 | if not funcsused.issubset(revset.safesymbols): | |
277 | return MODE_KEYWORD, query |
|
277 | return MODE_KEYWORD, query | |
278 |
|
278 | |||
279 | mfunc = revset.match(web.repo.ui, revdef, |
|
279 | mfunc = revset.match(web.repo.ui, revdef, | |
280 | lookup=revset.lookupfn(web.repo)) |
|
280 | lookup=revset.lookupfn(web.repo)) | |
281 | try: |
|
281 | try: | |
282 | revs = mfunc(web.repo) |
|
282 | revs = mfunc(web.repo) | |
283 | return MODE_REVSET, revs |
|
283 | return MODE_REVSET, revs | |
284 | # ParseError: wrongly placed tokens, wrongs arguments, etc |
|
284 | # ParseError: wrongly placed tokens, wrongs arguments, etc | |
285 | # RepoLookupError: no such revision, e.g. in 'revision:' |
|
285 | # RepoLookupError: no such revision, e.g. in 'revision:' | |
286 | # Abort: bookmark/tag not exists |
|
286 | # Abort: bookmark/tag not exists | |
287 | # LookupError: ambiguous identifier, e.g. in '(bc)' on a large repo |
|
287 | # LookupError: ambiguous identifier, e.g. in '(bc)' on a large repo | |
288 | except (error.ParseError, error.RepoLookupError, error.Abort, |
|
288 | except (error.ParseError, error.RepoLookupError, error.Abort, | |
289 | LookupError): |
|
289 | LookupError): | |
290 | return MODE_KEYWORD, query |
|
290 | return MODE_KEYWORD, query | |
291 |
|
291 | |||
292 | def changelist(context): |
|
292 | def changelist(context): | |
293 | count = 0 |
|
293 | count = 0 | |
294 |
|
294 | |||
295 | for ctx in searchfunc[0](funcarg): |
|
295 | for ctx in searchfunc[0](funcarg): | |
296 | count += 1 |
|
296 | count += 1 | |
297 | n = ctx.node() |
|
297 | n = ctx.node() | |
298 | showtags = webutil.showtag(web.repo, 'changelogtag', n) |
|
298 | showtags = webutil.showtag(web.repo, 'changelogtag', n) | |
299 | files = webutil.listfilediffs(ctx.files(), n, web.maxfiles) |
|
299 | files = webutil.listfilediffs(ctx.files(), n, web.maxfiles) | |
300 |
|
300 | |||
301 | lm = webutil.commonentry(web.repo, ctx) |
|
301 | lm = webutil.commonentry(web.repo, ctx) | |
302 | lm.update({ |
|
302 | lm.update({ | |
303 | 'parity': next(parity), |
|
303 | 'parity': next(parity), | |
304 | 'changelogtag': showtags, |
|
304 | 'changelogtag': showtags, | |
305 | 'files': files, |
|
305 | 'files': files, | |
306 | }) |
|
306 | }) | |
307 | yield lm |
|
307 | yield lm | |
308 |
|
308 | |||
309 | if count >= revcount: |
|
309 | if count >= revcount: | |
310 | break |
|
310 | break | |
311 |
|
311 | |||
312 | query = web.req.qsparams['rev'] |
|
312 | query = web.req.qsparams['rev'] | |
313 | revcount = web.maxchanges |
|
313 | revcount = web.maxchanges | |
314 | if 'revcount' in web.req.qsparams: |
|
314 | if 'revcount' in web.req.qsparams: | |
315 | try: |
|
315 | try: | |
316 | revcount = int(web.req.qsparams.get('revcount', revcount)) |
|
316 | revcount = int(web.req.qsparams.get('revcount', revcount)) | |
317 | revcount = max(revcount, 1) |
|
317 | revcount = max(revcount, 1) | |
318 | web.tmpl.defaults['sessionvars']['revcount'] = revcount |
|
318 | web.tmpl.defaults['sessionvars']['revcount'] = revcount | |
319 | except ValueError: |
|
319 | except ValueError: | |
320 | pass |
|
320 | pass | |
321 |
|
321 | |||
322 | lessvars = copy.copy(web.tmpl.defaults['sessionvars']) |
|
322 | lessvars = copy.copy(web.tmpl.defaults['sessionvars']) | |
323 | lessvars['revcount'] = max(revcount // 2, 1) |
|
323 | lessvars['revcount'] = max(revcount // 2, 1) | |
324 | lessvars['rev'] = query |
|
324 | lessvars['rev'] = query | |
325 | morevars = copy.copy(web.tmpl.defaults['sessionvars']) |
|
325 | morevars = copy.copy(web.tmpl.defaults['sessionvars']) | |
326 | morevars['revcount'] = revcount * 2 |
|
326 | morevars['revcount'] = revcount * 2 | |
327 | morevars['rev'] = query |
|
327 | morevars['rev'] = query | |
328 |
|
328 | |||
329 | mode, funcarg = getsearchmode(query) |
|
329 | mode, funcarg = getsearchmode(query) | |
330 |
|
330 | |||
331 | if 'forcekw' in web.req.qsparams: |
|
331 | if 'forcekw' in web.req.qsparams: | |
332 | showforcekw = '' |
|
332 | showforcekw = '' | |
333 | showunforcekw = searchfuncs[mode][1] |
|
333 | showunforcekw = searchfuncs[mode][1] | |
334 | mode = MODE_KEYWORD |
|
334 | mode = MODE_KEYWORD | |
335 | funcarg = query |
|
335 | funcarg = query | |
336 | else: |
|
336 | else: | |
337 | if mode != MODE_KEYWORD: |
|
337 | if mode != MODE_KEYWORD: | |
338 | showforcekw = searchfuncs[MODE_KEYWORD][1] |
|
338 | showforcekw = searchfuncs[MODE_KEYWORD][1] | |
339 | else: |
|
339 | else: | |
340 | showforcekw = '' |
|
340 | showforcekw = '' | |
341 | showunforcekw = '' |
|
341 | showunforcekw = '' | |
342 |
|
342 | |||
343 | searchfunc = searchfuncs[mode] |
|
343 | searchfunc = searchfuncs[mode] | |
344 |
|
344 | |||
345 | tip = web.repo['tip'] |
|
345 | tip = web.repo['tip'] | |
346 | parity = paritygen(web.stripecount) |
|
346 | parity = paritygen(web.stripecount) | |
347 |
|
347 | |||
348 | return web.sendtemplate( |
|
348 | return web.sendtemplate( | |
349 | 'search', |
|
349 | 'search', | |
350 | query=query, |
|
350 | query=query, | |
351 | node=tip.hex(), |
|
351 | node=tip.hex(), | |
352 | symrev='tip', |
|
352 | symrev='tip', | |
353 | entries=templateutil.mappinggenerator(changelist, name='searchentry'), |
|
353 | entries=templateutil.mappinggenerator(changelist, name='searchentry'), | |
354 | archives=web.archivelist('tip'), |
|
354 | archives=web.archivelist('tip'), | |
355 | morevars=morevars, |
|
355 | morevars=morevars, | |
356 | lessvars=lessvars, |
|
356 | lessvars=lessvars, | |
357 | modedesc=searchfunc[1], |
|
357 | modedesc=searchfunc[1], | |
358 | showforcekw=showforcekw, |
|
358 | showforcekw=showforcekw, | |
359 | showunforcekw=showunforcekw) |
|
359 | showunforcekw=showunforcekw) | |
360 |
|
360 | |||
361 | @webcommand('changelog') |
|
361 | @webcommand('changelog') | |
362 | def changelog(web, shortlog=False): |
|
362 | def changelog(web, shortlog=False): | |
363 | """ |
|
363 | """ | |
364 | /changelog[/{revision}] |
|
364 | /changelog[/{revision}] | |
365 | ----------------------- |
|
365 | ----------------------- | |
366 |
|
366 | |||
367 | Show information about multiple changesets. |
|
367 | Show information about multiple changesets. | |
368 |
|
368 | |||
369 | If the optional ``revision`` URL argument is absent, information about |
|
369 | If the optional ``revision`` URL argument is absent, information about | |
370 | all changesets starting at ``tip`` will be rendered. If the ``revision`` |
|
370 | all changesets starting at ``tip`` will be rendered. If the ``revision`` | |
371 | argument is present, changesets will be shown starting from the specified |
|
371 | argument is present, changesets will be shown starting from the specified | |
372 | revision. |
|
372 | revision. | |
373 |
|
373 | |||
374 | If ``revision`` is absent, the ``rev`` query string argument may be |
|
374 | If ``revision`` is absent, the ``rev`` query string argument may be | |
375 | defined. This will perform a search for changesets. |
|
375 | defined. This will perform a search for changesets. | |
376 |
|
376 | |||
377 | The argument for ``rev`` can be a single revision, a revision set, |
|
377 | The argument for ``rev`` can be a single revision, a revision set, | |
378 | or a literal keyword to search for in changeset data (equivalent to |
|
378 | or a literal keyword to search for in changeset data (equivalent to | |
379 | :hg:`log -k`). |
|
379 | :hg:`log -k`). | |
380 |
|
380 | |||
381 | The ``revcount`` query string argument defines the maximum numbers of |
|
381 | The ``revcount`` query string argument defines the maximum numbers of | |
382 | changesets to render. |
|
382 | changesets to render. | |
383 |
|
383 | |||
384 | For non-searches, the ``changelog`` template will be rendered. |
|
384 | For non-searches, the ``changelog`` template will be rendered. | |
385 | """ |
|
385 | """ | |
386 |
|
386 | |||
387 | query = '' |
|
387 | query = '' | |
388 | if 'node' in web.req.qsparams: |
|
388 | if 'node' in web.req.qsparams: | |
389 | ctx = webutil.changectx(web.repo, web.req) |
|
389 | ctx = webutil.changectx(web.repo, web.req) | |
390 | symrev = webutil.symrevorshortnode(web.req, ctx) |
|
390 | symrev = webutil.symrevorshortnode(web.req, ctx) | |
391 | elif 'rev' in web.req.qsparams: |
|
391 | elif 'rev' in web.req.qsparams: | |
392 | return _search(web) |
|
392 | return _search(web) | |
393 | else: |
|
393 | else: | |
394 | ctx = web.repo['tip'] |
|
394 | ctx = web.repo['tip'] | |
395 | symrev = 'tip' |
|
395 | symrev = 'tip' | |
396 |
|
396 | |||
397 | def changelist(): |
|
397 | def changelist(): | |
398 | revs = [] |
|
398 | revs = [] | |
399 | if pos != -1: |
|
399 | if pos != -1: | |
400 | revs = web.repo.changelog.revs(pos, 0) |
|
400 | revs = web.repo.changelog.revs(pos, 0) | |
401 |
|
401 | |||
402 | for entry in webutil.changelistentries(web, revs, revcount, parity): |
|
402 | for entry in webutil.changelistentries(web, revs, revcount, parity): | |
403 | yield entry |
|
403 | yield entry | |
404 |
|
404 | |||
405 | if shortlog: |
|
405 | if shortlog: | |
406 | revcount = web.maxshortchanges |
|
406 | revcount = web.maxshortchanges | |
407 | else: |
|
407 | else: | |
408 | revcount = web.maxchanges |
|
408 | revcount = web.maxchanges | |
409 |
|
409 | |||
410 | if 'revcount' in web.req.qsparams: |
|
410 | if 'revcount' in web.req.qsparams: | |
411 | try: |
|
411 | try: | |
412 | revcount = int(web.req.qsparams.get('revcount', revcount)) |
|
412 | revcount = int(web.req.qsparams.get('revcount', revcount)) | |
413 | revcount = max(revcount, 1) |
|
413 | revcount = max(revcount, 1) | |
414 | web.tmpl.defaults['sessionvars']['revcount'] = revcount |
|
414 | web.tmpl.defaults['sessionvars']['revcount'] = revcount | |
415 | except ValueError: |
|
415 | except ValueError: | |
416 | pass |
|
416 | pass | |
417 |
|
417 | |||
418 | lessvars = copy.copy(web.tmpl.defaults['sessionvars']) |
|
418 | lessvars = copy.copy(web.tmpl.defaults['sessionvars']) | |
419 | lessvars['revcount'] = max(revcount // 2, 1) |
|
419 | lessvars['revcount'] = max(revcount // 2, 1) | |
420 | morevars = copy.copy(web.tmpl.defaults['sessionvars']) |
|
420 | morevars = copy.copy(web.tmpl.defaults['sessionvars']) | |
421 | morevars['revcount'] = revcount * 2 |
|
421 | morevars['revcount'] = revcount * 2 | |
422 |
|
422 | |||
423 | count = len(web.repo) |
|
423 | count = len(web.repo) | |
424 | pos = ctx.rev() |
|
424 | pos = ctx.rev() | |
425 | parity = paritygen(web.stripecount) |
|
425 | parity = paritygen(web.stripecount) | |
426 |
|
426 | |||
427 | changenav = webutil.revnav(web.repo).gen(pos, revcount, count) |
|
427 | changenav = webutil.revnav(web.repo).gen(pos, revcount, count) | |
428 |
|
428 | |||
429 | entries = list(changelist()) |
|
429 | entries = list(changelist()) | |
430 | latestentry = entries[:1] |
|
430 | latestentry = entries[:1] | |
431 | if len(entries) > revcount: |
|
431 | if len(entries) > revcount: | |
432 | nextentry = entries[-1:] |
|
432 | nextentry = entries[-1:] | |
433 | entries = entries[:-1] |
|
433 | entries = entries[:-1] | |
434 | else: |
|
434 | else: | |
435 | nextentry = [] |
|
435 | nextentry = [] | |
436 |
|
436 | |||
437 | return web.sendtemplate( |
|
437 | return web.sendtemplate( | |
438 | 'shortlog' if shortlog else 'changelog', |
|
438 | 'shortlog' if shortlog else 'changelog', | |
439 | changenav=changenav, |
|
439 | changenav=changenav, | |
440 | node=ctx.hex(), |
|
440 | node=ctx.hex(), | |
441 | rev=pos, |
|
441 | rev=pos, | |
442 | symrev=symrev, |
|
442 | symrev=symrev, | |
443 | changesets=count, |
|
443 | changesets=count, | |
444 | entries=templateutil.mappinglist(entries), |
|
444 | entries=templateutil.mappinglist(entries), | |
445 | latestentry=templateutil.mappinglist(latestentry), |
|
445 | latestentry=templateutil.mappinglist(latestentry), | |
446 | nextentry=templateutil.mappinglist(nextentry), |
|
446 | nextentry=templateutil.mappinglist(nextentry), | |
447 | archives=web.archivelist('tip'), |
|
447 | archives=web.archivelist('tip'), | |
448 | revcount=revcount, |
|
448 | revcount=revcount, | |
449 | morevars=morevars, |
|
449 | morevars=morevars, | |
450 | lessvars=lessvars, |
|
450 | lessvars=lessvars, | |
451 | query=query) |
|
451 | query=query) | |
452 |
|
452 | |||
453 | @webcommand('shortlog') |
|
453 | @webcommand('shortlog') | |
454 | def shortlog(web): |
|
454 | def shortlog(web): | |
455 | """ |
|
455 | """ | |
456 | /shortlog |
|
456 | /shortlog | |
457 | --------- |
|
457 | --------- | |
458 |
|
458 | |||
459 | Show basic information about a set of changesets. |
|
459 | Show basic information about a set of changesets. | |
460 |
|
460 | |||
461 | This accepts the same parameters as the ``changelog`` handler. The only |
|
461 | This accepts the same parameters as the ``changelog`` handler. The only | |
462 | difference is the ``shortlog`` template will be rendered instead of the |
|
462 | difference is the ``shortlog`` template will be rendered instead of the | |
463 | ``changelog`` template. |
|
463 | ``changelog`` template. | |
464 | """ |
|
464 | """ | |
465 | return changelog(web, shortlog=True) |
|
465 | return changelog(web, shortlog=True) | |
466 |
|
466 | |||
467 | @webcommand('changeset') |
|
467 | @webcommand('changeset') | |
468 | def changeset(web): |
|
468 | def changeset(web): | |
469 | """ |
|
469 | """ | |
470 | /changeset[/{revision}] |
|
470 | /changeset[/{revision}] | |
471 | ----------------------- |
|
471 | ----------------------- | |
472 |
|
472 | |||
473 | Show information about a single changeset. |
|
473 | Show information about a single changeset. | |
474 |
|
474 | |||
475 | A URL path argument is the changeset identifier to show. See ``hg help |
|
475 | A URL path argument is the changeset identifier to show. See ``hg help | |
476 | revisions`` for possible values. If not defined, the ``tip`` changeset |
|
476 | revisions`` for possible values. If not defined, the ``tip`` changeset | |
477 | will be shown. |
|
477 | will be shown. | |
478 |
|
478 | |||
479 | The ``changeset`` template is rendered. Contents of the ``changesettag``, |
|
479 | The ``changeset`` template is rendered. Contents of the ``changesettag``, | |
480 | ``changesetbookmark``, ``filenodelink``, ``filenolink``, and the many |
|
480 | ``changesetbookmark``, ``filenodelink``, ``filenolink``, and the many | |
481 | templates related to diffs may all be used to produce the output. |
|
481 | templates related to diffs may all be used to produce the output. | |
482 | """ |
|
482 | """ | |
483 | ctx = webutil.changectx(web.repo, web.req) |
|
483 | ctx = webutil.changectx(web.repo, web.req) | |
484 |
|
484 | |||
485 | return web.sendtemplate( |
|
485 | return web.sendtemplate( | |
486 | 'changeset', |
|
486 | 'changeset', | |
487 | **webutil.changesetentry(web, ctx)) |
|
487 | **webutil.changesetentry(web, ctx)) | |
488 |
|
488 | |||
489 | rev = webcommand('rev')(changeset) |
|
489 | rev = webcommand('rev')(changeset) | |
490 |
|
490 | |||
491 | def decodepath(path): |
|
491 | def decodepath(path): | |
492 | """Hook for mapping a path in the repository to a path in the |
|
492 | """Hook for mapping a path in the repository to a path in the | |
493 | working copy. |
|
493 | working copy. | |
494 |
|
494 | |||
495 | Extensions (e.g., largefiles) can override this to remap files in |
|
495 | Extensions (e.g., largefiles) can override this to remap files in | |
496 | the virtual file system presented by the manifest command below.""" |
|
496 | the virtual file system presented by the manifest command below.""" | |
497 | return path |
|
497 | return path | |
498 |
|
498 | |||
499 | @webcommand('manifest') |
|
499 | @webcommand('manifest') | |
500 | def manifest(web): |
|
500 | def manifest(web): | |
501 | """ |
|
501 | """ | |
502 | /manifest[/{revision}[/{path}]] |
|
502 | /manifest[/{revision}[/{path}]] | |
503 | ------------------------------- |
|
503 | ------------------------------- | |
504 |
|
504 | |||
505 | Show information about a directory. |
|
505 | Show information about a directory. | |
506 |
|
506 | |||
507 | If the URL path arguments are omitted, information about the root |
|
507 | If the URL path arguments are omitted, information about the root | |
508 | directory for the ``tip`` changeset will be shown. |
|
508 | directory for the ``tip`` changeset will be shown. | |
509 |
|
509 | |||
510 | Because this handler can only show information for directories, it |
|
510 | Because this handler can only show information for directories, it | |
511 | is recommended to use the ``file`` handler instead, as it can handle both |
|
511 | is recommended to use the ``file`` handler instead, as it can handle both | |
512 | directories and files. |
|
512 | directories and files. | |
513 |
|
513 | |||
514 | The ``manifest`` template will be rendered for this handler. |
|
514 | The ``manifest`` template will be rendered for this handler. | |
515 | """ |
|
515 | """ | |
516 | if 'node' in web.req.qsparams: |
|
516 | if 'node' in web.req.qsparams: | |
517 | ctx = webutil.changectx(web.repo, web.req) |
|
517 | ctx = webutil.changectx(web.repo, web.req) | |
518 | symrev = webutil.symrevorshortnode(web.req, ctx) |
|
518 | symrev = webutil.symrevorshortnode(web.req, ctx) | |
519 | else: |
|
519 | else: | |
520 | ctx = web.repo['tip'] |
|
520 | ctx = web.repo['tip'] | |
521 | symrev = 'tip' |
|
521 | symrev = 'tip' | |
522 | path = webutil.cleanpath(web.repo, web.req.qsparams.get('file', '')) |
|
522 | path = webutil.cleanpath(web.repo, web.req.qsparams.get('file', '')) | |
523 | mf = ctx.manifest() |
|
523 | mf = ctx.manifest() | |
524 | node = ctx.node() |
|
524 | node = ctx.node() | |
525 |
|
525 | |||
526 | files = {} |
|
526 | files = {} | |
527 | dirs = {} |
|
527 | dirs = {} | |
528 | parity = paritygen(web.stripecount) |
|
528 | parity = paritygen(web.stripecount) | |
529 |
|
529 | |||
530 | if path and path[-1:] != "/": |
|
530 | if path and path[-1:] != "/": | |
531 | path += "/" |
|
531 | path += "/" | |
532 | l = len(path) |
|
532 | l = len(path) | |
533 | abspath = "/" + path |
|
533 | abspath = "/" + path | |
534 |
|
534 | |||
535 | for full, n in mf.iteritems(): |
|
535 | for full, n in mf.iteritems(): | |
536 | # the virtual path (working copy path) used for the full |
|
536 | # the virtual path (working copy path) used for the full | |
537 | # (repository) path |
|
537 | # (repository) path | |
538 | f = decodepath(full) |
|
538 | f = decodepath(full) | |
539 |
|
539 | |||
540 | if f[:l] != path: |
|
540 | if f[:l] != path: | |
541 | continue |
|
541 | continue | |
542 | remain = f[l:] |
|
542 | remain = f[l:] | |
543 | elements = remain.split('/') |
|
543 | elements = remain.split('/') | |
544 | if len(elements) == 1: |
|
544 | if len(elements) == 1: | |
545 | files[remain] = full |
|
545 | files[remain] = full | |
546 | else: |
|
546 | else: | |
547 | h = dirs # need to retain ref to dirs (root) |
|
547 | h = dirs # need to retain ref to dirs (root) | |
548 | for elem in elements[0:-1]: |
|
548 | for elem in elements[0:-1]: | |
549 | if elem not in h: |
|
549 | if elem not in h: | |
550 | h[elem] = {} |
|
550 | h[elem] = {} | |
551 | h = h[elem] |
|
551 | h = h[elem] | |
552 | if len(h) > 1: |
|
552 | if len(h) > 1: | |
553 | break |
|
553 | break | |
554 | h[None] = None # denotes files present |
|
554 | h[None] = None # denotes files present | |
555 |
|
555 | |||
556 | if mf and not files and not dirs: |
|
556 | if mf and not files and not dirs: | |
557 | raise ErrorResponse(HTTP_NOT_FOUND, 'path not found: ' + path) |
|
557 | raise ErrorResponse(HTTP_NOT_FOUND, 'path not found: ' + path) | |
558 |
|
558 | |||
559 | def filelist(context): |
|
559 | def filelist(context): | |
560 | for f in sorted(files): |
|
560 | for f in sorted(files): | |
561 | full = files[f] |
|
561 | full = files[f] | |
562 |
|
562 | |||
563 | fctx = ctx.filectx(full) |
|
563 | fctx = ctx.filectx(full) | |
564 | yield {"file": full, |
|
564 | yield {"file": full, | |
565 | "parity": next(parity), |
|
565 | "parity": next(parity), | |
566 | "basename": f, |
|
566 | "basename": f, | |
567 | "date": fctx.date(), |
|
567 | "date": fctx.date(), | |
568 | "size": fctx.size(), |
|
568 | "size": fctx.size(), | |
569 | "permissions": mf.flags(full)} |
|
569 | "permissions": mf.flags(full)} | |
570 |
|
570 | |||
571 | def dirlist(context): |
|
571 | def dirlist(context): | |
572 | for d in sorted(dirs): |
|
572 | for d in sorted(dirs): | |
573 |
|
573 | |||
574 | emptydirs = [] |
|
574 | emptydirs = [] | |
575 | h = dirs[d] |
|
575 | h = dirs[d] | |
576 | while isinstance(h, dict) and len(h) == 1: |
|
576 | while isinstance(h, dict) and len(h) == 1: | |
577 | k, v = next(iter(h.items())) |
|
577 | k, v = next(iter(h.items())) | |
578 | if v: |
|
578 | if v: | |
579 | emptydirs.append(k) |
|
579 | emptydirs.append(k) | |
580 | h = v |
|
580 | h = v | |
581 |
|
581 | |||
582 | path = "%s%s" % (abspath, d) |
|
582 | path = "%s%s" % (abspath, d) | |
583 | yield {"parity": next(parity), |
|
583 | yield {"parity": next(parity), | |
584 | "path": path, |
|
584 | "path": path, | |
585 | "emptydirs": "/".join(emptydirs), |
|
585 | "emptydirs": "/".join(emptydirs), | |
586 | "basename": d} |
|
586 | "basename": d} | |
587 |
|
587 | |||
588 | return web.sendtemplate( |
|
588 | return web.sendtemplate( | |
589 | 'manifest', |
|
589 | 'manifest', | |
590 | symrev=symrev, |
|
590 | symrev=symrev, | |
591 | path=abspath, |
|
591 | path=abspath, | |
592 | up=webutil.up(abspath), |
|
592 | up=webutil.up(abspath), | |
593 | upparity=next(parity), |
|
593 | upparity=next(parity), | |
594 | fentries=templateutil.mappinggenerator(filelist), |
|
594 | fentries=templateutil.mappinggenerator(filelist), | |
595 | dentries=templateutil.mappinggenerator(dirlist), |
|
595 | dentries=templateutil.mappinggenerator(dirlist), | |
596 | archives=web.archivelist(hex(node)), |
|
596 | archives=web.archivelist(hex(node)), | |
597 | **pycompat.strkwargs(webutil.commonentry(web.repo, ctx))) |
|
597 | **pycompat.strkwargs(webutil.commonentry(web.repo, ctx))) | |
598 |
|
598 | |||
599 | @webcommand('tags') |
|
599 | @webcommand('tags') | |
600 | def tags(web): |
|
600 | def tags(web): | |
601 | """ |
|
601 | """ | |
602 | /tags |
|
602 | /tags | |
603 | ----- |
|
603 | ----- | |
604 |
|
604 | |||
605 | Show information about tags. |
|
605 | Show information about tags. | |
606 |
|
606 | |||
607 | No arguments are accepted. |
|
607 | No arguments are accepted. | |
608 |
|
608 | |||
609 | The ``tags`` template is rendered. |
|
609 | The ``tags`` template is rendered. | |
610 | """ |
|
610 | """ | |
611 | i = list(reversed(web.repo.tagslist())) |
|
611 | i = list(reversed(web.repo.tagslist())) | |
612 | parity = paritygen(web.stripecount) |
|
612 | parity = paritygen(web.stripecount) | |
613 |
|
613 | |||
614 | def entries(context, notip, latestonly): |
|
614 | def entries(context, notip, latestonly): | |
615 | t = i |
|
615 | t = i | |
616 | if notip: |
|
616 | if notip: | |
617 | t = [(k, n) for k, n in i if k != "tip"] |
|
617 | t = [(k, n) for k, n in i if k != "tip"] | |
618 | if latestonly: |
|
618 | if latestonly: | |
619 | t = t[:1] |
|
619 | t = t[:1] | |
620 | for k, n in t: |
|
620 | for k, n in t: | |
621 | yield {"parity": next(parity), |
|
621 | yield {"parity": next(parity), | |
622 | "tag": k, |
|
622 | "tag": k, | |
623 | "date": web.repo[n].date(), |
|
623 | "date": web.repo[n].date(), | |
624 | "node": hex(n)} |
|
624 | "node": hex(n)} | |
625 |
|
625 | |||
626 | return web.sendtemplate( |
|
626 | return web.sendtemplate( | |
627 | 'tags', |
|
627 | 'tags', | |
628 | node=hex(web.repo.changelog.tip()), |
|
628 | node=hex(web.repo.changelog.tip()), | |
629 | entries=templateutil.mappinggenerator(entries, args=(False, False)), |
|
629 | entries=templateutil.mappinggenerator(entries, args=(False, False)), | |
630 | entriesnotip=templateutil.mappinggenerator(entries, |
|
630 | entriesnotip=templateutil.mappinggenerator(entries, | |
631 | args=(True, False)), |
|
631 | args=(True, False)), | |
632 | latestentry=templateutil.mappinggenerator(entries, args=(True, True))) |
|
632 | latestentry=templateutil.mappinggenerator(entries, args=(True, True))) | |
633 |
|
633 | |||
634 | @webcommand('bookmarks') |
|
634 | @webcommand('bookmarks') | |
635 | def bookmarks(web): |
|
635 | def bookmarks(web): | |
636 | """ |
|
636 | """ | |
637 | /bookmarks |
|
637 | /bookmarks | |
638 | ---------- |
|
638 | ---------- | |
639 |
|
639 | |||
640 | Show information about bookmarks. |
|
640 | Show information about bookmarks. | |
641 |
|
641 | |||
642 | No arguments are accepted. |
|
642 | No arguments are accepted. | |
643 |
|
643 | |||
644 | The ``bookmarks`` template is rendered. |
|
644 | The ``bookmarks`` template is rendered. | |
645 | """ |
|
645 | """ | |
646 | i = [b for b in web.repo._bookmarks.items() if b[1] in web.repo] |
|
646 | i = [b for b in web.repo._bookmarks.items() if b[1] in web.repo] | |
647 | sortkey = lambda b: (web.repo[b[1]].rev(), b[0]) |
|
647 | sortkey = lambda b: (web.repo[b[1]].rev(), b[0]) | |
648 | i = sorted(i, key=sortkey, reverse=True) |
|
648 | i = sorted(i, key=sortkey, reverse=True) | |
649 | parity = paritygen(web.stripecount) |
|
649 | parity = paritygen(web.stripecount) | |
650 |
|
650 | |||
651 | def entries(context, latestonly): |
|
651 | def entries(context, latestonly): | |
652 | t = i |
|
652 | t = i | |
653 | if latestonly: |
|
653 | if latestonly: | |
654 | t = i[:1] |
|
654 | t = i[:1] | |
655 | for k, n in t: |
|
655 | for k, n in t: | |
656 | yield {"parity": next(parity), |
|
656 | yield {"parity": next(parity), | |
657 | "bookmark": k, |
|
657 | "bookmark": k, | |
658 | "date": web.repo[n].date(), |
|
658 | "date": web.repo[n].date(), | |
659 | "node": hex(n)} |
|
659 | "node": hex(n)} | |
660 |
|
660 | |||
661 | if i: |
|
661 | if i: | |
662 | latestrev = i[0][1] |
|
662 | latestrev = i[0][1] | |
663 | else: |
|
663 | else: | |
664 | latestrev = -1 |
|
664 | latestrev = -1 | |
665 | lastdate = web.repo[latestrev].date() |
|
665 | lastdate = web.repo[latestrev].date() | |
666 |
|
666 | |||
667 | return web.sendtemplate( |
|
667 | return web.sendtemplate( | |
668 | 'bookmarks', |
|
668 | 'bookmarks', | |
669 | node=hex(web.repo.changelog.tip()), |
|
669 | node=hex(web.repo.changelog.tip()), | |
670 | lastchange=templateutil.mappinglist([{'date': lastdate}]), |
|
670 | lastchange=templateutil.mappinglist([{'date': lastdate}]), | |
671 | entries=templateutil.mappinggenerator(entries, args=(False,)), |
|
671 | entries=templateutil.mappinggenerator(entries, args=(False,)), | |
672 | latestentry=templateutil.mappinggenerator(entries, args=(True,))) |
|
672 | latestentry=templateutil.mappinggenerator(entries, args=(True,))) | |
673 |
|
673 | |||
674 | @webcommand('branches') |
|
674 | @webcommand('branches') | |
675 | def branches(web): |
|
675 | def branches(web): | |
676 | """ |
|
676 | """ | |
677 | /branches |
|
677 | /branches | |
678 | --------- |
|
678 | --------- | |
679 |
|
679 | |||
680 | Show information about branches. |
|
680 | Show information about branches. | |
681 |
|
681 | |||
682 | All known branches are contained in the output, even closed branches. |
|
682 | All known branches are contained in the output, even closed branches. | |
683 |
|
683 | |||
684 | No arguments are accepted. |
|
684 | No arguments are accepted. | |
685 |
|
685 | |||
686 | The ``branches`` template is rendered. |
|
686 | The ``branches`` template is rendered. | |
687 | """ |
|
687 | """ | |
688 | entries = webutil.branchentries(web.repo, web.stripecount) |
|
688 | entries = webutil.branchentries(web.repo, web.stripecount) | |
689 | latestentry = webutil.branchentries(web.repo, web.stripecount, 1) |
|
689 | latestentry = webutil.branchentries(web.repo, web.stripecount, 1) | |
690 |
|
690 | |||
691 | return web.sendtemplate( |
|
691 | return web.sendtemplate( | |
692 | 'branches', |
|
692 | 'branches', | |
693 | node=hex(web.repo.changelog.tip()), |
|
693 | node=hex(web.repo.changelog.tip()), | |
694 | entries=entries, |
|
694 | entries=entries, | |
695 | latestentry=latestentry) |
|
695 | latestentry=latestentry) | |
696 |
|
696 | |||
697 | @webcommand('summary') |
|
697 | @webcommand('summary') | |
698 | def summary(web): |
|
698 | def summary(web): | |
699 | """ |
|
699 | """ | |
700 | /summary |
|
700 | /summary | |
701 | -------- |
|
701 | -------- | |
702 |
|
702 | |||
703 | Show a summary of repository state. |
|
703 | Show a summary of repository state. | |
704 |
|
704 | |||
705 | Information about the latest changesets, bookmarks, tags, and branches |
|
705 | Information about the latest changesets, bookmarks, tags, and branches | |
706 | is captured by this handler. |
|
706 | is captured by this handler. | |
707 |
|
707 | |||
708 | The ``summary`` template is rendered. |
|
708 | The ``summary`` template is rendered. | |
709 | """ |
|
709 | """ | |
710 | i = reversed(web.repo.tagslist()) |
|
710 | i = reversed(web.repo.tagslist()) | |
711 |
|
711 | |||
712 | def tagentries(context): |
|
712 | def tagentries(context): | |
713 | parity = paritygen(web.stripecount) |
|
713 | parity = paritygen(web.stripecount) | |
714 | count = 0 |
|
714 | count = 0 | |
715 | for k, n in i: |
|
715 | for k, n in i: | |
716 | if k == "tip": # skip tip |
|
716 | if k == "tip": # skip tip | |
717 | continue |
|
717 | continue | |
718 |
|
718 | |||
719 | count += 1 |
|
719 | count += 1 | |
720 | if count > 10: # limit to 10 tags |
|
720 | if count > 10: # limit to 10 tags | |
721 | break |
|
721 | break | |
722 |
|
722 | |||
723 | yield { |
|
723 | yield { | |
724 | 'parity': next(parity), |
|
724 | 'parity': next(parity), | |
725 | 'tag': k, |
|
725 | 'tag': k, | |
726 | 'node': hex(n), |
|
726 | 'node': hex(n), | |
727 | 'date': web.repo[n].date(), |
|
727 | 'date': web.repo[n].date(), | |
728 | } |
|
728 | } | |
729 |
|
729 | |||
730 | def bookmarks(context): |
|
730 | def bookmarks(context): | |
731 | parity = paritygen(web.stripecount) |
|
731 | parity = paritygen(web.stripecount) | |
732 | marks = [b for b in web.repo._bookmarks.items() if b[1] in web.repo] |
|
732 | marks = [b for b in web.repo._bookmarks.items() if b[1] in web.repo] | |
733 | sortkey = lambda b: (web.repo[b[1]].rev(), b[0]) |
|
733 | sortkey = lambda b: (web.repo[b[1]].rev(), b[0]) | |
734 | marks = sorted(marks, key=sortkey, reverse=True) |
|
734 | marks = sorted(marks, key=sortkey, reverse=True) | |
735 | for k, n in marks[:10]: # limit to 10 bookmarks |
|
735 | for k, n in marks[:10]: # limit to 10 bookmarks | |
736 | yield {'parity': next(parity), |
|
736 | yield {'parity': next(parity), | |
737 | 'bookmark': k, |
|
737 | 'bookmark': k, | |
738 | 'date': web.repo[n].date(), |
|
738 | 'date': web.repo[n].date(), | |
739 | 'node': hex(n)} |
|
739 | 'node': hex(n)} | |
740 |
|
740 | |||
741 | def changelist(context): |
|
741 | def changelist(context): | |
742 | parity = paritygen(web.stripecount, offset=start - end) |
|
742 | parity = paritygen(web.stripecount, offset=start - end) | |
743 | l = [] # build a list in forward order for efficiency |
|
743 | l = [] # build a list in forward order for efficiency | |
744 | revs = [] |
|
744 | revs = [] | |
745 | if start < end: |
|
745 | if start < end: | |
746 | revs = web.repo.changelog.revs(start, end - 1) |
|
746 | revs = web.repo.changelog.revs(start, end - 1) | |
747 | for i in revs: |
|
747 | for i in revs: | |
748 | ctx = web.repo[i] |
|
748 | ctx = web.repo[i] | |
749 | lm = webutil.commonentry(web.repo, ctx) |
|
749 | lm = webutil.commonentry(web.repo, ctx) | |
750 | lm['parity'] = next(parity) |
|
750 | lm['parity'] = next(parity) | |
751 | l.append(lm) |
|
751 | l.append(lm) | |
752 |
|
752 | |||
753 | for entry in reversed(l): |
|
753 | for entry in reversed(l): | |
754 | yield entry |
|
754 | yield entry | |
755 |
|
755 | |||
756 | tip = web.repo['tip'] |
|
756 | tip = web.repo['tip'] | |
757 | count = len(web.repo) |
|
757 | count = len(web.repo) | |
758 | start = max(0, count - web.maxchanges) |
|
758 | start = max(0, count - web.maxchanges) | |
759 | end = min(count, start + web.maxchanges) |
|
759 | end = min(count, start + web.maxchanges) | |
760 |
|
760 | |||
761 | desc = web.config("web", "description") |
|
761 | desc = web.config("web", "description") | |
762 | if not desc: |
|
762 | if not desc: | |
763 | desc = 'unknown' |
|
763 | desc = 'unknown' | |
764 | labels = web.configlist('web', 'labels') |
|
764 | labels = web.configlist('web', 'labels') | |
765 |
|
765 | |||
766 | return web.sendtemplate( |
|
766 | return web.sendtemplate( | |
767 | 'summary', |
|
767 | 'summary', | |
768 | desc=desc, |
|
768 | desc=desc, | |
769 | owner=get_contact(web.config) or 'unknown', |
|
769 | owner=get_contact(web.config) or 'unknown', | |
770 | lastchange=tip.date(), |
|
770 | lastchange=tip.date(), | |
771 | tags=templateutil.mappinggenerator(tagentries, name='tagentry'), |
|
771 | tags=templateutil.mappinggenerator(tagentries, name='tagentry'), | |
772 | bookmarks=templateutil.mappinggenerator(bookmarks), |
|
772 | bookmarks=templateutil.mappinggenerator(bookmarks), | |
773 | branches=webutil.branchentries(web.repo, web.stripecount, 10), |
|
773 | branches=webutil.branchentries(web.repo, web.stripecount, 10), | |
774 | shortlog=templateutil.mappinggenerator(changelist, |
|
774 | shortlog=templateutil.mappinggenerator(changelist, | |
775 | name='shortlogentry'), |
|
775 | name='shortlogentry'), | |
776 | node=tip.hex(), |
|
776 | node=tip.hex(), | |
777 | symrev='tip', |
|
777 | symrev='tip', | |
778 | archives=web.archivelist('tip'), |
|
778 | archives=web.archivelist('tip'), | |
779 | labels=templateutil.hybridlist(labels, name='label')) |
|
779 | labels=templateutil.hybridlist(labels, name='label')) | |
780 |
|
780 | |||
781 | @webcommand('filediff') |
|
781 | @webcommand('filediff') | |
782 | def filediff(web): |
|
782 | def filediff(web): | |
783 | """ |
|
783 | """ | |
784 | /diff/{revision}/{path} |
|
784 | /diff/{revision}/{path} | |
785 | ----------------------- |
|
785 | ----------------------- | |
786 |
|
786 | |||
787 | Show how a file changed in a particular commit. |
|
787 | Show how a file changed in a particular commit. | |
788 |
|
788 | |||
789 | The ``filediff`` template is rendered. |
|
789 | The ``filediff`` template is rendered. | |
790 |
|
790 | |||
791 | This handler is registered under both the ``/diff`` and ``/filediff`` |
|
791 | This handler is registered under both the ``/diff`` and ``/filediff`` | |
792 | paths. ``/diff`` is used in modern code. |
|
792 | paths. ``/diff`` is used in modern code. | |
793 | """ |
|
793 | """ | |
794 | fctx, ctx = None, None |
|
794 | fctx, ctx = None, None | |
795 | try: |
|
795 | try: | |
796 | fctx = webutil.filectx(web.repo, web.req) |
|
796 | fctx = webutil.filectx(web.repo, web.req) | |
797 | except LookupError: |
|
797 | except LookupError: | |
798 | ctx = webutil.changectx(web.repo, web.req) |
|
798 | ctx = webutil.changectx(web.repo, web.req) | |
799 | path = webutil.cleanpath(web.repo, web.req.qsparams['file']) |
|
799 | path = webutil.cleanpath(web.repo, web.req.qsparams['file']) | |
800 | if path not in ctx.files(): |
|
800 | if path not in ctx.files(): | |
801 | raise |
|
801 | raise | |
802 |
|
802 | |||
803 | if fctx is not None: |
|
803 | if fctx is not None: | |
804 | path = fctx.path() |
|
804 | path = fctx.path() | |
805 | ctx = fctx.changectx() |
|
805 | ctx = fctx.changectx() | |
806 | basectx = ctx.p1() |
|
806 | basectx = ctx.p1() | |
807 |
|
807 | |||
808 | style = web.config('web', 'style') |
|
808 | style = web.config('web', 'style') | |
809 | if 'style' in web.req.qsparams: |
|
809 | if 'style' in web.req.qsparams: | |
810 | style = web.req.qsparams['style'] |
|
810 | style = web.req.qsparams['style'] | |
811 |
|
811 | |||
812 | diffs = webutil.diffs(web, ctx, basectx, [path], style) |
|
812 | diffs = webutil.diffs(web, ctx, basectx, [path], style) | |
813 | if fctx is not None: |
|
813 | if fctx is not None: | |
814 | rename = webutil.renamelink(fctx) |
|
814 | rename = webutil.renamelink(fctx) | |
815 | ctx = fctx |
|
815 | ctx = fctx | |
816 | else: |
|
816 | else: | |
817 | rename = templateutil.mappinglist([]) |
|
817 | rename = templateutil.mappinglist([]) | |
818 | ctx = ctx |
|
818 | ctx = ctx | |
819 |
|
819 | |||
820 | return web.sendtemplate( |
|
820 | return web.sendtemplate( | |
821 | 'filediff', |
|
821 | 'filediff', | |
822 | file=path, |
|
822 | file=path, | |
823 | symrev=webutil.symrevorshortnode(web.req, ctx), |
|
823 | symrev=webutil.symrevorshortnode(web.req, ctx), | |
824 | rename=rename, |
|
824 | rename=rename, | |
825 | diff=diffs, |
|
825 | diff=diffs, | |
826 | **pycompat.strkwargs(webutil.commonentry(web.repo, ctx))) |
|
826 | **pycompat.strkwargs(webutil.commonentry(web.repo, ctx))) | |
827 |
|
827 | |||
828 | diff = webcommand('diff')(filediff) |
|
828 | diff = webcommand('diff')(filediff) | |
829 |
|
829 | |||
830 | @webcommand('comparison') |
|
830 | @webcommand('comparison') | |
831 | def comparison(web): |
|
831 | def comparison(web): | |
832 | """ |
|
832 | """ | |
833 | /comparison/{revision}/{path} |
|
833 | /comparison/{revision}/{path} | |
834 | ----------------------------- |
|
834 | ----------------------------- | |
835 |
|
835 | |||
836 | Show a comparison between the old and new versions of a file from changes |
|
836 | Show a comparison between the old and new versions of a file from changes | |
837 | made on a particular revision. |
|
837 | made on a particular revision. | |
838 |
|
838 | |||
839 | This is similar to the ``diff`` handler. However, this form features |
|
839 | This is similar to the ``diff`` handler. However, this form features | |
840 | a split or side-by-side diff rather than a unified diff. |
|
840 | a split or side-by-side diff rather than a unified diff. | |
841 |
|
841 | |||
842 | The ``context`` query string argument can be used to control the lines of |
|
842 | The ``context`` query string argument can be used to control the lines of | |
843 | context in the diff. |
|
843 | context in the diff. | |
844 |
|
844 | |||
845 | The ``filecomparison`` template is rendered. |
|
845 | The ``filecomparison`` template is rendered. | |
846 | """ |
|
846 | """ | |
847 | ctx = webutil.changectx(web.repo, web.req) |
|
847 | ctx = webutil.changectx(web.repo, web.req) | |
848 | if 'file' not in web.req.qsparams: |
|
848 | if 'file' not in web.req.qsparams: | |
849 | raise ErrorResponse(HTTP_NOT_FOUND, 'file not given') |
|
849 | raise ErrorResponse(HTTP_NOT_FOUND, 'file not given') | |
850 | path = webutil.cleanpath(web.repo, web.req.qsparams['file']) |
|
850 | path = webutil.cleanpath(web.repo, web.req.qsparams['file']) | |
851 |
|
851 | |||
852 | parsecontext = lambda v: v == 'full' and -1 or int(v) |
|
852 | parsecontext = lambda v: v == 'full' and -1 or int(v) | |
853 | if 'context' in web.req.qsparams: |
|
853 | if 'context' in web.req.qsparams: | |
854 | context = parsecontext(web.req.qsparams['context']) |
|
854 | context = parsecontext(web.req.qsparams['context']) | |
855 | else: |
|
855 | else: | |
856 | context = parsecontext(web.config('web', 'comparisoncontext', '5')) |
|
856 | context = parsecontext(web.config('web', 'comparisoncontext', '5')) | |
857 |
|
857 | |||
858 | def filelines(f): |
|
858 | def filelines(f): | |
859 | if f.isbinary(): |
|
859 | if f.isbinary(): | |
860 | mt = mimetypes.guess_type(f.path())[0] |
|
860 | mt = mimetypes.guess_type(f.path())[0] | |
861 | if not mt: |
|
861 | if not mt: | |
862 | mt = 'application/octet-stream' |
|
862 | mt = 'application/octet-stream' | |
863 | return [_('(binary file %s, hash: %s)') % (mt, hex(f.filenode()))] |
|
863 | return [_('(binary file %s, hash: %s)') % (mt, hex(f.filenode()))] | |
864 | return f.data().splitlines() |
|
864 | return f.data().splitlines() | |
865 |
|
865 | |||
866 | fctx = None |
|
866 | fctx = None | |
867 | parent = ctx.p1() |
|
867 | parent = ctx.p1() | |
868 | leftrev = parent.rev() |
|
868 | leftrev = parent.rev() | |
869 | leftnode = parent.node() |
|
869 | leftnode = parent.node() | |
870 | rightrev = ctx.rev() |
|
870 | rightrev = ctx.rev() | |
871 | rightnode = ctx.node() |
|
871 | rightnode = ctx.node() | |
872 | if path in ctx: |
|
872 | if path in ctx: | |
873 | fctx = ctx[path] |
|
873 | fctx = ctx[path] | |
874 | rightlines = filelines(fctx) |
|
874 | rightlines = filelines(fctx) | |
875 | if path not in parent: |
|
875 | if path not in parent: | |
876 | leftlines = () |
|
876 | leftlines = () | |
877 | else: |
|
877 | else: | |
878 | pfctx = parent[path] |
|
878 | pfctx = parent[path] | |
879 | leftlines = filelines(pfctx) |
|
879 | leftlines = filelines(pfctx) | |
880 | else: |
|
880 | else: | |
881 | rightlines = () |
|
881 | rightlines = () | |
882 | pfctx = ctx.parents()[0][path] |
|
882 | pfctx = ctx.parents()[0][path] | |
883 | leftlines = filelines(pfctx) |
|
883 | leftlines = filelines(pfctx) | |
884 |
|
884 | |||
885 | comparison = webutil.compare(context, leftlines, rightlines) |
|
885 | comparison = webutil.compare(context, leftlines, rightlines) | |
886 | if fctx is not None: |
|
886 | if fctx is not None: | |
887 | rename = webutil.renamelink(fctx) |
|
887 | rename = webutil.renamelink(fctx) | |
888 | ctx = fctx |
|
888 | ctx = fctx | |
889 | else: |
|
889 | else: | |
890 | rename = templateutil.mappinglist([]) |
|
890 | rename = templateutil.mappinglist([]) | |
891 | ctx = ctx |
|
891 | ctx = ctx | |
892 |
|
892 | |||
893 | return web.sendtemplate( |
|
893 | return web.sendtemplate( | |
894 | 'filecomparison', |
|
894 | 'filecomparison', | |
895 | file=path, |
|
895 | file=path, | |
896 | symrev=webutil.symrevorshortnode(web.req, ctx), |
|
896 | symrev=webutil.symrevorshortnode(web.req, ctx), | |
897 | rename=rename, |
|
897 | rename=rename, | |
898 | leftrev=leftrev, |
|
898 | leftrev=leftrev, | |
899 | leftnode=hex(leftnode), |
|
899 | leftnode=hex(leftnode), | |
900 | rightrev=rightrev, |
|
900 | rightrev=rightrev, | |
901 | rightnode=hex(rightnode), |
|
901 | rightnode=hex(rightnode), | |
902 | comparison=comparison, |
|
902 | comparison=comparison, | |
903 | **pycompat.strkwargs(webutil.commonentry(web.repo, ctx))) |
|
903 | **pycompat.strkwargs(webutil.commonentry(web.repo, ctx))) | |
904 |
|
904 | |||
905 | @webcommand('annotate') |
|
905 | @webcommand('annotate') | |
906 | def annotate(web): |
|
906 | def annotate(web): | |
907 | """ |
|
907 | """ | |
908 | /annotate/{revision}/{path} |
|
908 | /annotate/{revision}/{path} | |
909 | --------------------------- |
|
909 | --------------------------- | |
910 |
|
910 | |||
911 | Show changeset information for each line in a file. |
|
911 | Show changeset information for each line in a file. | |
912 |
|
912 | |||
913 | The ``ignorews``, ``ignorewsamount``, ``ignorewseol``, and |
|
913 | The ``ignorews``, ``ignorewsamount``, ``ignorewseol``, and | |
914 | ``ignoreblanklines`` query string arguments have the same meaning as |
|
914 | ``ignoreblanklines`` query string arguments have the same meaning as | |
915 | their ``[annotate]`` config equivalents. It uses the hgrc boolean |
|
915 | their ``[annotate]`` config equivalents. It uses the hgrc boolean | |
916 | parsing logic to interpret the value. e.g. ``0`` and ``false`` are |
|
916 | parsing logic to interpret the value. e.g. ``0`` and ``false`` are | |
917 | false and ``1`` and ``true`` are true. If not defined, the server |
|
917 | false and ``1`` and ``true`` are true. If not defined, the server | |
918 | default settings are used. |
|
918 | default settings are used. | |
919 |
|
919 | |||
920 | The ``fileannotate`` template is rendered. |
|
920 | The ``fileannotate`` template is rendered. | |
921 | """ |
|
921 | """ | |
922 | fctx = webutil.filectx(web.repo, web.req) |
|
922 | fctx = webutil.filectx(web.repo, web.req) | |
923 | f = fctx.path() |
|
923 | f = fctx.path() | |
924 | parity = paritygen(web.stripecount) |
|
924 | parity = paritygen(web.stripecount) | |
925 | ishead = fctx.filerev() in fctx.filelog().headrevs() |
|
925 | ishead = fctx.filerev() in fctx.filelog().headrevs() | |
926 |
|
926 | |||
927 | # parents() is called once per line and several lines likely belong to |
|
927 | # parents() is called once per line and several lines likely belong to | |
928 | # same revision. So it is worth caching. |
|
928 | # same revision. So it is worth caching. | |
929 | # TODO there are still redundant operations within basefilectx.parents() |
|
929 | # TODO there are still redundant operations within basefilectx.parents() | |
930 | # and from the fctx.annotate() call itself that could be cached. |
|
930 | # and from the fctx.annotate() call itself that could be cached. | |
931 | parentscache = {} |
|
931 | parentscache = {} | |
932 | def parents(context, f): |
|
932 | def parents(context, f): | |
933 | rev = f.rev() |
|
933 | rev = f.rev() | |
934 | if rev not in parentscache: |
|
934 | if rev not in parentscache: | |
935 | parentscache[rev] = [] |
|
935 | parentscache[rev] = [] | |
936 | for p in f.parents(): |
|
936 | for p in f.parents(): | |
937 | entry = { |
|
937 | entry = { | |
938 | 'node': p.hex(), |
|
938 | 'node': p.hex(), | |
939 | 'rev': p.rev(), |
|
939 | 'rev': p.rev(), | |
940 | } |
|
940 | } | |
941 | parentscache[rev].append(entry) |
|
941 | parentscache[rev].append(entry) | |
942 |
|
942 | |||
943 | for p in parentscache[rev]: |
|
943 | for p in parentscache[rev]: | |
944 | yield p |
|
944 | yield p | |
945 |
|
945 | |||
946 | def annotate(context): |
|
946 | def annotate(context): | |
947 | if fctx.isbinary(): |
|
947 | if fctx.isbinary(): | |
948 | mt = (mimetypes.guess_type(fctx.path())[0] |
|
948 | mt = (mimetypes.guess_type(fctx.path())[0] | |
949 | or 'application/octet-stream') |
|
949 | or 'application/octet-stream') | |
950 | lines = [dagop.annotateline(fctx=fctx.filectx(fctx.filerev()), |
|
950 | lines = [dagop.annotateline(fctx=fctx.filectx(fctx.filerev()), | |
951 | lineno=1, text='(binary:%s)' % mt)] |
|
951 | lineno=1, text='(binary:%s)' % mt)] | |
952 | else: |
|
952 | else: | |
953 | lines = webutil.annotate(web.req, fctx, web.repo.ui) |
|
953 | lines = webutil.annotate(web.req, fctx, web.repo.ui) | |
954 |
|
954 | |||
955 | previousrev = None |
|
955 | previousrev = None | |
956 | blockparitygen = paritygen(1) |
|
956 | blockparitygen = paritygen(1) | |
957 | for lineno, aline in enumerate(lines): |
|
957 | for lineno, aline in enumerate(lines): | |
958 | f = aline.fctx |
|
958 | f = aline.fctx | |
959 | rev = f.rev() |
|
959 | rev = f.rev() | |
960 | if rev != previousrev: |
|
960 | if rev != previousrev: | |
961 | blockhead = True |
|
961 | blockhead = True | |
962 | blockparity = next(blockparitygen) |
|
962 | blockparity = next(blockparitygen) | |
963 | else: |
|
963 | else: | |
964 | blockhead = None |
|
964 | blockhead = None | |
965 | previousrev = rev |
|
965 | previousrev = rev | |
966 | yield {"parity": next(parity), |
|
966 | yield {"parity": next(parity), | |
967 | "node": f.hex(), |
|
967 | "node": f.hex(), | |
968 | "rev": rev, |
|
968 | "rev": rev, | |
969 | "author": f.user(), |
|
969 | "author": f.user(), | |
970 | "parents": templateutil.mappinggenerator(parents, args=(f,)), |
|
970 | "parents": templateutil.mappinggenerator(parents, args=(f,)), | |
971 | "desc": f.description(), |
|
971 | "desc": f.description(), | |
972 | "extra": f.extra(), |
|
972 | "extra": f.extra(), | |
973 | "file": f.path(), |
|
973 | "file": f.path(), | |
974 | "blockhead": blockhead, |
|
974 | "blockhead": blockhead, | |
975 | "blockparity": blockparity, |
|
975 | "blockparity": blockparity, | |
976 | "targetline": aline.lineno, |
|
976 | "targetline": aline.lineno, | |
977 | "line": aline.text, |
|
977 | "line": aline.text, | |
978 | "lineno": lineno + 1, |
|
978 | "lineno": lineno + 1, | |
979 | "lineid": "l%d" % (lineno + 1), |
|
979 | "lineid": "l%d" % (lineno + 1), | |
980 | "linenumber": "% 6d" % (lineno + 1), |
|
980 | "linenumber": "% 6d" % (lineno + 1), | |
981 | "revdate": f.date()} |
|
981 | "revdate": f.date()} | |
982 |
|
982 | |||
983 | diffopts = webutil.difffeatureopts(web.req, web.repo.ui, 'annotate') |
|
983 | diffopts = webutil.difffeatureopts(web.req, web.repo.ui, 'annotate') | |
984 | diffopts = {k: getattr(diffopts, k) for k in diffopts.defaults} |
|
984 | diffopts = {k: getattr(diffopts, k) for k in diffopts.defaults} | |
985 |
|
985 | |||
986 | return web.sendtemplate( |
|
986 | return web.sendtemplate( | |
987 | 'fileannotate', |
|
987 | 'fileannotate', | |
988 | file=f, |
|
988 | file=f, | |
989 | annotate=templateutil.mappinggenerator(annotate), |
|
989 | annotate=templateutil.mappinggenerator(annotate), | |
990 | path=webutil.up(f), |
|
990 | path=webutil.up(f), | |
991 | symrev=webutil.symrevorshortnode(web.req, fctx), |
|
991 | symrev=webutil.symrevorshortnode(web.req, fctx), | |
992 | rename=webutil.renamelink(fctx), |
|
992 | rename=webutil.renamelink(fctx), | |
993 | permissions=fctx.manifest().flags(f), |
|
993 | permissions=fctx.manifest().flags(f), | |
994 | ishead=int(ishead), |
|
994 | ishead=int(ishead), | |
995 | diffopts=templateutil.hybriddict(diffopts), |
|
995 | diffopts=templateutil.hybriddict(diffopts), | |
996 | **pycompat.strkwargs(webutil.commonentry(web.repo, fctx))) |
|
996 | **pycompat.strkwargs(webutil.commonentry(web.repo, fctx))) | |
997 |
|
997 | |||
998 | @webcommand('filelog') |
|
998 | @webcommand('filelog') | |
999 | def filelog(web): |
|
999 | def filelog(web): | |
1000 | """ |
|
1000 | """ | |
1001 | /filelog/{revision}/{path} |
|
1001 | /filelog/{revision}/{path} | |
1002 | -------------------------- |
|
1002 | -------------------------- | |
1003 |
|
1003 | |||
1004 | Show information about the history of a file in the repository. |
|
1004 | Show information about the history of a file in the repository. | |
1005 |
|
1005 | |||
1006 | The ``revcount`` query string argument can be defined to control the |
|
1006 | The ``revcount`` query string argument can be defined to control the | |
1007 | maximum number of entries to show. |
|
1007 | maximum number of entries to show. | |
1008 |
|
1008 | |||
1009 | The ``filelog`` template will be rendered. |
|
1009 | The ``filelog`` template will be rendered. | |
1010 | """ |
|
1010 | """ | |
1011 |
|
1011 | |||
1012 | try: |
|
1012 | try: | |
1013 | fctx = webutil.filectx(web.repo, web.req) |
|
1013 | fctx = webutil.filectx(web.repo, web.req) | |
1014 | f = fctx.path() |
|
1014 | f = fctx.path() | |
1015 | fl = fctx.filelog() |
|
1015 | fl = fctx.filelog() | |
1016 | except error.LookupError: |
|
1016 | except error.LookupError: | |
1017 | f = webutil.cleanpath(web.repo, web.req.qsparams['file']) |
|
1017 | f = webutil.cleanpath(web.repo, web.req.qsparams['file']) | |
1018 | fl = web.repo.file(f) |
|
1018 | fl = web.repo.file(f) | |
1019 | numrevs = len(fl) |
|
1019 | numrevs = len(fl) | |
1020 | if not numrevs: # file doesn't exist at all |
|
1020 | if not numrevs: # file doesn't exist at all | |
1021 | raise |
|
1021 | raise | |
1022 | rev = webutil.changectx(web.repo, web.req).rev() |
|
1022 | rev = webutil.changectx(web.repo, web.req).rev() | |
1023 | first = fl.linkrev(0) |
|
1023 | first = fl.linkrev(0) | |
1024 | if rev < first: # current rev is from before file existed |
|
1024 | if rev < first: # current rev is from before file existed | |
1025 | raise |
|
1025 | raise | |
1026 | frev = numrevs - 1 |
|
1026 | frev = numrevs - 1 | |
1027 | while fl.linkrev(frev) > rev: |
|
1027 | while fl.linkrev(frev) > rev: | |
1028 | frev -= 1 |
|
1028 | frev -= 1 | |
1029 | fctx = web.repo.filectx(f, fl.linkrev(frev)) |
|
1029 | fctx = web.repo.filectx(f, fl.linkrev(frev)) | |
1030 |
|
1030 | |||
1031 | revcount = web.maxshortchanges |
|
1031 | revcount = web.maxshortchanges | |
1032 | if 'revcount' in web.req.qsparams: |
|
1032 | if 'revcount' in web.req.qsparams: | |
1033 | try: |
|
1033 | try: | |
1034 | revcount = int(web.req.qsparams.get('revcount', revcount)) |
|
1034 | revcount = int(web.req.qsparams.get('revcount', revcount)) | |
1035 | revcount = max(revcount, 1) |
|
1035 | revcount = max(revcount, 1) | |
1036 | web.tmpl.defaults['sessionvars']['revcount'] = revcount |
|
1036 | web.tmpl.defaults['sessionvars']['revcount'] = revcount | |
1037 | except ValueError: |
|
1037 | except ValueError: | |
1038 | pass |
|
1038 | pass | |
1039 |
|
1039 | |||
1040 | lrange = webutil.linerange(web.req) |
|
1040 | lrange = webutil.linerange(web.req) | |
1041 |
|
1041 | |||
1042 | lessvars = copy.copy(web.tmpl.defaults['sessionvars']) |
|
1042 | lessvars = copy.copy(web.tmpl.defaults['sessionvars']) | |
1043 | lessvars['revcount'] = max(revcount // 2, 1) |
|
1043 | lessvars['revcount'] = max(revcount // 2, 1) | |
1044 | morevars = copy.copy(web.tmpl.defaults['sessionvars']) |
|
1044 | morevars = copy.copy(web.tmpl.defaults['sessionvars']) | |
1045 | morevars['revcount'] = revcount * 2 |
|
1045 | morevars['revcount'] = revcount * 2 | |
1046 |
|
1046 | |||
1047 | patch = 'patch' in web.req.qsparams |
|
1047 | patch = 'patch' in web.req.qsparams | |
1048 | if patch: |
|
1048 | if patch: | |
1049 | lessvars['patch'] = morevars['patch'] = web.req.qsparams['patch'] |
|
1049 | lessvars['patch'] = morevars['patch'] = web.req.qsparams['patch'] | |
1050 | descend = 'descend' in web.req.qsparams |
|
1050 | descend = 'descend' in web.req.qsparams | |
1051 | if descend: |
|
1051 | if descend: | |
1052 | lessvars['descend'] = morevars['descend'] = web.req.qsparams['descend'] |
|
1052 | lessvars['descend'] = morevars['descend'] = web.req.qsparams['descend'] | |
1053 |
|
1053 | |||
1054 | count = fctx.filerev() + 1 |
|
1054 | count = fctx.filerev() + 1 | |
1055 | start = max(0, count - revcount) # first rev on this page |
|
1055 | start = max(0, count - revcount) # first rev on this page | |
1056 | end = min(count, start + revcount) # last rev on this page |
|
1056 | end = min(count, start + revcount) # last rev on this page | |
1057 | parity = paritygen(web.stripecount, offset=start - end) |
|
1057 | parity = paritygen(web.stripecount, offset=start - end) | |
1058 |
|
1058 | |||
1059 | repo = web.repo |
|
1059 | repo = web.repo | |
1060 | filelog = fctx.filelog() |
|
1060 | filelog = fctx.filelog() | |
1061 | revs = [filerev for filerev in filelog.revs(start, end - 1) |
|
1061 | revs = [filerev for filerev in filelog.revs(start, end - 1) | |
1062 | if filelog.linkrev(filerev) in repo] |
|
1062 | if filelog.linkrev(filerev) in repo] | |
1063 | entries = [] |
|
1063 | entries = [] | |
1064 |
|
1064 | |||
1065 | diffstyle = web.config('web', 'style') |
|
1065 | diffstyle = web.config('web', 'style') | |
1066 | if 'style' in web.req.qsparams: |
|
1066 | if 'style' in web.req.qsparams: | |
1067 | diffstyle = web.req.qsparams['style'] |
|
1067 | diffstyle = web.req.qsparams['style'] | |
1068 |
|
1068 | |||
1069 | def diff(fctx, linerange=None): |
|
1069 | def diff(fctx, linerange=None): | |
1070 | ctx = fctx.changectx() |
|
1070 | ctx = fctx.changectx() | |
1071 | basectx = ctx.p1() |
|
1071 | basectx = ctx.p1() | |
1072 | path = fctx.path() |
|
1072 | path = fctx.path() | |
1073 | return webutil.diffs(web, ctx, basectx, [path], diffstyle, |
|
1073 | return webutil.diffs(web, ctx, basectx, [path], diffstyle, | |
1074 | linerange=linerange, |
|
1074 | linerange=linerange, | |
1075 | lineidprefix='%s-' % ctx.hex()[:12]) |
|
1075 | lineidprefix='%s-' % ctx.hex()[:12]) | |
1076 |
|
1076 | |||
1077 | linerange = None |
|
1077 | linerange = None | |
1078 | if lrange is not None: |
|
1078 | if lrange is not None: | |
1079 | linerange = webutil.formatlinerange(*lrange) |
|
1079 | linerange = webutil.formatlinerange(*lrange) | |
1080 | # deactivate numeric nav links when linerange is specified as this |
|
1080 | # deactivate numeric nav links when linerange is specified as this | |
1081 | # would required a dedicated "revnav" class |
|
1081 | # would required a dedicated "revnav" class | |
1082 | nav = templateutil.mappinglist([]) |
|
1082 | nav = templateutil.mappinglist([]) | |
1083 | if descend: |
|
1083 | if descend: | |
1084 | it = dagop.blockdescendants(fctx, *lrange) |
|
1084 | it = dagop.blockdescendants(fctx, *lrange) | |
1085 | else: |
|
1085 | else: | |
1086 | it = dagop.blockancestors(fctx, *lrange) |
|
1086 | it = dagop.blockancestors(fctx, *lrange) | |
1087 | for i, (c, lr) in enumerate(it, 1): |
|
1087 | for i, (c, lr) in enumerate(it, 1): | |
1088 | diffs = None |
|
1088 | diffs = None | |
1089 | if patch: |
|
1089 | if patch: | |
1090 | diffs = diff(c, linerange=lr) |
|
1090 | diffs = diff(c, linerange=lr) | |
1091 | # follow renames accross filtered (not in range) revisions |
|
1091 | # follow renames accross filtered (not in range) revisions | |
1092 | path = c.path() |
|
1092 | path = c.path() | |
1093 | lm = webutil.commonentry(repo, c) |
|
1093 | lm = webutil.commonentry(repo, c) | |
1094 | lm.update({ |
|
1094 | lm.update({ | |
1095 | 'parity': next(parity), |
|
1095 | 'parity': next(parity), | |
1096 | 'filerev': c.rev(), |
|
1096 | 'filerev': c.rev(), | |
1097 | 'file': path, |
|
1097 | 'file': path, | |
1098 | 'diff': diffs, |
|
1098 | 'diff': diffs, | |
1099 | 'linerange': webutil.formatlinerange(*lr), |
|
1099 | 'linerange': webutil.formatlinerange(*lr), | |
1100 | 'rename': templateutil.mappinglist([]), |
|
1100 | 'rename': templateutil.mappinglist([]), | |
1101 | }) |
|
1101 | }) | |
1102 | entries.append(lm) |
|
1102 | entries.append(lm) | |
1103 | if i == revcount: |
|
1103 | if i == revcount: | |
1104 | break |
|
1104 | break | |
1105 | lessvars['linerange'] = webutil.formatlinerange(*lrange) |
|
1105 | lessvars['linerange'] = webutil.formatlinerange(*lrange) | |
1106 | morevars['linerange'] = lessvars['linerange'] |
|
1106 | morevars['linerange'] = lessvars['linerange'] | |
1107 | else: |
|
1107 | else: | |
1108 | for i in revs: |
|
1108 | for i in revs: | |
1109 | iterfctx = fctx.filectx(i) |
|
1109 | iterfctx = fctx.filectx(i) | |
1110 | diffs = None |
|
1110 | diffs = None | |
1111 | if patch: |
|
1111 | if patch: | |
1112 | diffs = diff(iterfctx) |
|
1112 | diffs = diff(iterfctx) | |
1113 | lm = webutil.commonentry(repo, iterfctx) |
|
1113 | lm = webutil.commonentry(repo, iterfctx) | |
1114 | lm.update({ |
|
1114 | lm.update({ | |
1115 | 'parity': next(parity), |
|
1115 | 'parity': next(parity), | |
1116 | 'filerev': i, |
|
1116 | 'filerev': i, | |
1117 | 'file': f, |
|
1117 | 'file': f, | |
1118 | 'diff': diffs, |
|
1118 | 'diff': diffs, | |
1119 | 'rename': webutil.renamelink(iterfctx), |
|
1119 | 'rename': webutil.renamelink(iterfctx), | |
1120 | }) |
|
1120 | }) | |
1121 | entries.append(lm) |
|
1121 | entries.append(lm) | |
1122 | entries.reverse() |
|
1122 | entries.reverse() | |
1123 | revnav = webutil.filerevnav(web.repo, fctx.path()) |
|
1123 | revnav = webutil.filerevnav(web.repo, fctx.path()) | |
1124 | nav = revnav.gen(end - 1, revcount, count) |
|
1124 | nav = revnav.gen(end - 1, revcount, count) | |
1125 |
|
1125 | |||
1126 | latestentry = entries[:1] |
|
1126 | latestentry = entries[:1] | |
1127 |
|
1127 | |||
1128 | return web.sendtemplate( |
|
1128 | return web.sendtemplate( | |
1129 | 'filelog', |
|
1129 | 'filelog', | |
1130 | file=f, |
|
1130 | file=f, | |
1131 | nav=nav, |
|
1131 | nav=nav, | |
1132 | symrev=webutil.symrevorshortnode(web.req, fctx), |
|
1132 | symrev=webutil.symrevorshortnode(web.req, fctx), | |
1133 | entries=templateutil.mappinglist(entries), |
|
1133 | entries=templateutil.mappinglist(entries), | |
1134 | descend=descend, |
|
1134 | descend=descend, | |
1135 | patch=patch, |
|
1135 | patch=patch, | |
1136 | latestentry=templateutil.mappinglist(latestentry), |
|
1136 | latestentry=templateutil.mappinglist(latestentry), | |
1137 | linerange=linerange, |
|
1137 | linerange=linerange, | |
1138 | revcount=revcount, |
|
1138 | revcount=revcount, | |
1139 | morevars=morevars, |
|
1139 | morevars=morevars, | |
1140 | lessvars=lessvars, |
|
1140 | lessvars=lessvars, | |
1141 | **pycompat.strkwargs(webutil.commonentry(web.repo, fctx))) |
|
1141 | **pycompat.strkwargs(webutil.commonentry(web.repo, fctx))) | |
1142 |
|
1142 | |||
1143 | @webcommand('archive') |
|
1143 | @webcommand('archive') | |
1144 | def archive(web): |
|
1144 | def archive(web): | |
1145 | """ |
|
1145 | """ | |
1146 | /archive/{revision}.{format}[/{path}] |
|
1146 | /archive/{revision}.{format}[/{path}] | |
1147 | ------------------------------------- |
|
1147 | ------------------------------------- | |
1148 |
|
1148 | |||
1149 | Obtain an archive of repository content. |
|
1149 | Obtain an archive of repository content. | |
1150 |
|
1150 | |||
1151 | The content and type of the archive is defined by a URL path parameter. |
|
1151 | The content and type of the archive is defined by a URL path parameter. | |
1152 | ``format`` is the file extension of the archive type to be generated. e.g. |
|
1152 | ``format`` is the file extension of the archive type to be generated. e.g. | |
1153 | ``zip`` or ``tar.bz2``. Not all archive types may be allowed by your |
|
1153 | ``zip`` or ``tar.bz2``. Not all archive types may be allowed by your | |
1154 | server configuration. |
|
1154 | server configuration. | |
1155 |
|
1155 | |||
1156 | The optional ``path`` URL parameter controls content to include in the |
|
1156 | The optional ``path`` URL parameter controls content to include in the | |
1157 | archive. If omitted, every file in the specified revision is present in the |
|
1157 | archive. If omitted, every file in the specified revision is present in the | |
1158 | archive. If included, only the specified file or contents of the specified |
|
1158 | archive. If included, only the specified file or contents of the specified | |
1159 | directory will be included in the archive. |
|
1159 | directory will be included in the archive. | |
1160 |
|
1160 | |||
1161 | No template is used for this handler. Raw, binary content is generated. |
|
1161 | No template is used for this handler. Raw, binary content is generated. | |
1162 | """ |
|
1162 | """ | |
1163 |
|
1163 | |||
1164 | type_ = web.req.qsparams.get('type') |
|
1164 | type_ = web.req.qsparams.get('type') | |
1165 | allowed = web.configlist("web", "allow-archive") |
|
1165 | allowed = web.configlist("web", "allow-archive") | |
1166 | key = web.req.qsparams['node'] |
|
1166 | key = web.req.qsparams['node'] | |
1167 |
|
1167 | |||
1168 | if type_ not in webutil.archivespecs: |
|
1168 | if type_ not in webutil.archivespecs: | |
1169 | msg = 'Unsupported archive type: %s' % type_ |
|
1169 | msg = 'Unsupported archive type: %s' % type_ | |
1170 | raise ErrorResponse(HTTP_NOT_FOUND, msg) |
|
1170 | raise ErrorResponse(HTTP_NOT_FOUND, msg) | |
1171 |
|
1171 | |||
1172 | if not ((type_ in allowed or |
|
1172 | if not ((type_ in allowed or | |
1173 | web.configbool("web", "allow" + type_))): |
|
1173 | web.configbool("web", "allow" + type_))): | |
1174 | msg = 'Archive type not allowed: %s' % type_ |
|
1174 | msg = 'Archive type not allowed: %s' % type_ | |
1175 | raise ErrorResponse(HTTP_FORBIDDEN, msg) |
|
1175 | raise ErrorResponse(HTTP_FORBIDDEN, msg) | |
1176 |
|
1176 | |||
1177 | reponame = re.sub(br"\W+", "-", os.path.basename(web.reponame)) |
|
1177 | reponame = re.sub(br"\W+", "-", os.path.basename(web.reponame)) | |
1178 | cnode = web.repo.lookup(key) |
|
1178 | cnode = web.repo.lookup(key) | |
1179 | arch_version = key |
|
1179 | arch_version = key | |
1180 | if cnode == key or key == 'tip': |
|
1180 | if cnode == key or key == 'tip': | |
1181 | arch_version = short(cnode) |
|
1181 | arch_version = short(cnode) | |
1182 | name = "%s-%s" % (reponame, arch_version) |
|
1182 | name = "%s-%s" % (reponame, arch_version) | |
1183 |
|
1183 | |||
1184 | ctx = webutil.changectx(web.repo, web.req) |
|
1184 | ctx = webutil.changectx(web.repo, web.req) | |
1185 | pats = [] |
|
1185 | pats = [] | |
1186 | match = scmutil.match(ctx, []) |
|
1186 | match = scmutil.match(ctx, []) | |
1187 | file = web.req.qsparams.get('file') |
|
1187 | file = web.req.qsparams.get('file') | |
1188 | if file: |
|
1188 | if file: | |
1189 | pats = ['path:' + file] |
|
1189 | pats = ['path:' + file] | |
1190 | match = scmutil.match(ctx, pats, default='path') |
|
1190 | match = scmutil.match(ctx, pats, default='path') | |
1191 | if pats: |
|
1191 | if pats: | |
1192 | files = [f for f in ctx.manifest().keys() if match(f)] |
|
1192 | files = [f for f in ctx.manifest().keys() if match(f)] | |
1193 | if not files: |
|
1193 | if not files: | |
1194 | raise ErrorResponse(HTTP_NOT_FOUND, |
|
1194 | raise ErrorResponse(HTTP_NOT_FOUND, | |
1195 | 'file(s) not found: %s' % file) |
|
1195 | 'file(s) not found: %s' % file) | |
1196 |
|
1196 | |||
1197 | mimetype, artype, extension, encoding = webutil.archivespecs[type_] |
|
1197 | mimetype, artype, extension, encoding = webutil.archivespecs[type_] | |
1198 |
|
1198 | |||
1199 | web.res.headers['Content-Type'] = mimetype |
|
1199 | web.res.headers['Content-Type'] = mimetype | |
1200 | web.res.headers['Content-Disposition'] = 'attachment; filename=%s%s' % ( |
|
1200 | web.res.headers['Content-Disposition'] = 'attachment; filename=%s%s' % ( | |
1201 | name, extension) |
|
1201 | name, extension) | |
1202 |
|
1202 | |||
1203 | if encoding: |
|
1203 | if encoding: | |
1204 | web.res.headers['Content-Encoding'] = encoding |
|
1204 | web.res.headers['Content-Encoding'] = encoding | |
1205 |
|
1205 | |||
1206 | web.res.setbodywillwrite() |
|
1206 | web.res.setbodywillwrite() | |
1207 | if list(web.res.sendresponse()): |
|
1207 | if list(web.res.sendresponse()): | |
1208 | raise error.ProgrammingError('sendresponse() should not emit data ' |
|
1208 | raise error.ProgrammingError('sendresponse() should not emit data ' | |
1209 | 'if writing later') |
|
1209 | 'if writing later') | |
1210 |
|
1210 | |||
1211 | bodyfh = web.res.getbodyfile() |
|
1211 | bodyfh = web.res.getbodyfile() | |
1212 |
|
1212 | |||
1213 | archival.archive(web.repo, bodyfh, cnode, artype, prefix=name, |
|
1213 | archival.archive(web.repo, bodyfh, cnode, artype, prefix=name, | |
1214 | matchfn=match, |
|
1214 | matchfn=match, | |
1215 | subrepos=web.configbool("web", "archivesubrepos")) |
|
1215 | subrepos=web.configbool("web", "archivesubrepos")) | |
1216 |
|
1216 | |||
1217 | return [] |
|
1217 | return [] | |
1218 |
|
1218 | |||
1219 | @webcommand('static') |
|
1219 | @webcommand('static') | |
1220 | def static(web): |
|
1220 | def static(web): | |
1221 | fname = web.req.qsparams['file'] |
|
1221 | fname = web.req.qsparams['file'] | |
1222 | # a repo owner may set web.static in .hg/hgrc to get any file |
|
1222 | # a repo owner may set web.static in .hg/hgrc to get any file | |
1223 | # readable by the user running the CGI script |
|
1223 | # readable by the user running the CGI script | |
1224 | static = web.config("web", "static", None, untrusted=False) |
|
1224 | static = web.config("web", "static", None, untrusted=False) | |
1225 | if not static: |
|
1225 | if not static: | |
1226 | tp = web.templatepath or templater.templatepaths() |
|
1226 | tp = web.templatepath or templater.templatepaths() | |
1227 | if isinstance(tp, str): |
|
1227 | if isinstance(tp, str): | |
1228 | tp = [tp] |
|
1228 | tp = [tp] | |
1229 | static = [os.path.join(p, 'static') for p in tp] |
|
1229 | static = [os.path.join(p, 'static') for p in tp] | |
1230 |
|
1230 | |||
1231 | staticfile(static, fname, web.res) |
|
1231 | staticfile(static, fname, web.res) | |
1232 | return web.res.sendresponse() |
|
1232 | return web.res.sendresponse() | |
1233 |
|
1233 | |||
1234 | @webcommand('graph') |
|
1234 | @webcommand('graph') | |
1235 | def graph(web): |
|
1235 | def graph(web): | |
1236 | """ |
|
1236 | """ | |
1237 | /graph[/{revision}] |
|
1237 | /graph[/{revision}] | |
1238 | ------------------- |
|
1238 | ------------------- | |
1239 |
|
1239 | |||
1240 | Show information about the graphical topology of the repository. |
|
1240 | Show information about the graphical topology of the repository. | |
1241 |
|
1241 | |||
1242 | Information rendered by this handler can be used to create visual |
|
1242 | Information rendered by this handler can be used to create visual | |
1243 | representations of repository topology. |
|
1243 | representations of repository topology. | |
1244 |
|
1244 | |||
1245 | The ``revision`` URL parameter controls the starting changeset. If it's |
|
1245 | The ``revision`` URL parameter controls the starting changeset. If it's | |
1246 | absent, the default is ``tip``. |
|
1246 | absent, the default is ``tip``. | |
1247 |
|
1247 | |||
1248 | The ``revcount`` query string argument can define the number of changesets |
|
1248 | The ``revcount`` query string argument can define the number of changesets | |
1249 | to show information for. |
|
1249 | to show information for. | |
1250 |
|
1250 | |||
1251 | The ``graphtop`` query string argument can specify the starting changeset |
|
1251 | The ``graphtop`` query string argument can specify the starting changeset | |
1252 | for producing ``jsdata`` variable that is used for rendering graph in |
|
1252 | for producing ``jsdata`` variable that is used for rendering graph in | |
1253 | JavaScript. By default it has the same value as ``revision``. |
|
1253 | JavaScript. By default it has the same value as ``revision``. | |
1254 |
|
1254 | |||
1255 | This handler will render the ``graph`` template. |
|
1255 | This handler will render the ``graph`` template. | |
1256 | """ |
|
1256 | """ | |
1257 |
|
1257 | |||
1258 | if 'node' in web.req.qsparams: |
|
1258 | if 'node' in web.req.qsparams: | |
1259 | ctx = webutil.changectx(web.repo, web.req) |
|
1259 | ctx = webutil.changectx(web.repo, web.req) | |
1260 | symrev = webutil.symrevorshortnode(web.req, ctx) |
|
1260 | symrev = webutil.symrevorshortnode(web.req, ctx) | |
1261 | else: |
|
1261 | else: | |
1262 | ctx = web.repo['tip'] |
|
1262 | ctx = web.repo['tip'] | |
1263 | symrev = 'tip' |
|
1263 | symrev = 'tip' | |
1264 | rev = ctx.rev() |
|
1264 | rev = ctx.rev() | |
1265 |
|
1265 | |||
1266 | bg_height = 39 |
|
1266 | bg_height = 39 | |
1267 | revcount = web.maxshortchanges |
|
1267 | revcount = web.maxshortchanges | |
1268 | if 'revcount' in web.req.qsparams: |
|
1268 | if 'revcount' in web.req.qsparams: | |
1269 | try: |
|
1269 | try: | |
1270 | revcount = int(web.req.qsparams.get('revcount', revcount)) |
|
1270 | revcount = int(web.req.qsparams.get('revcount', revcount)) | |
1271 | revcount = max(revcount, 1) |
|
1271 | revcount = max(revcount, 1) | |
1272 | web.tmpl.defaults['sessionvars']['revcount'] = revcount |
|
1272 | web.tmpl.defaults['sessionvars']['revcount'] = revcount | |
1273 | except ValueError: |
|
1273 | except ValueError: | |
1274 | pass |
|
1274 | pass | |
1275 |
|
1275 | |||
1276 | lessvars = copy.copy(web.tmpl.defaults['sessionvars']) |
|
1276 | lessvars = copy.copy(web.tmpl.defaults['sessionvars']) | |
1277 | lessvars['revcount'] = max(revcount // 2, 1) |
|
1277 | lessvars['revcount'] = max(revcount // 2, 1) | |
1278 | morevars = copy.copy(web.tmpl.defaults['sessionvars']) |
|
1278 | morevars = copy.copy(web.tmpl.defaults['sessionvars']) | |
1279 | morevars['revcount'] = revcount * 2 |
|
1279 | morevars['revcount'] = revcount * 2 | |
1280 |
|
1280 | |||
1281 | graphtop = web.req.qsparams.get('graphtop', ctx.hex()) |
|
1281 | graphtop = web.req.qsparams.get('graphtop', ctx.hex()) | |
1282 | graphvars = copy.copy(web.tmpl.defaults['sessionvars']) |
|
1282 | graphvars = copy.copy(web.tmpl.defaults['sessionvars']) | |
1283 | graphvars['graphtop'] = graphtop |
|
1283 | graphvars['graphtop'] = graphtop | |
1284 |
|
1284 | |||
1285 | count = len(web.repo) |
|
1285 | count = len(web.repo) | |
1286 | pos = rev |
|
1286 | pos = rev | |
1287 |
|
1287 | |||
1288 | uprev = min(max(0, count - 1), rev + revcount) |
|
1288 | uprev = min(max(0, count - 1), rev + revcount) | |
1289 | downrev = max(0, rev - revcount) |
|
1289 | downrev = max(0, rev - revcount) | |
1290 | changenav = webutil.revnav(web.repo).gen(pos, revcount, count) |
|
1290 | changenav = webutil.revnav(web.repo).gen(pos, revcount, count) | |
1291 |
|
1291 | |||
1292 | tree = [] |
|
1292 | tree = [] | |
1293 | nextentry = [] |
|
1293 | nextentry = [] | |
1294 | lastrev = 0 |
|
1294 | lastrev = 0 | |
1295 | if pos != -1: |
|
1295 | if pos != -1: | |
1296 | allrevs = web.repo.changelog.revs(pos, 0) |
|
1296 | allrevs = web.repo.changelog.revs(pos, 0) | |
1297 | revs = [] |
|
1297 | revs = [] | |
1298 | for i in allrevs: |
|
1298 | for i in allrevs: | |
1299 | revs.append(i) |
|
1299 | revs.append(i) | |
1300 | if len(revs) >= revcount + 1: |
|
1300 | if len(revs) >= revcount + 1: | |
1301 | break |
|
1301 | break | |
1302 |
|
1302 | |||
1303 | if len(revs) > revcount: |
|
1303 | if len(revs) > revcount: | |
1304 | nextentry = [webutil.commonentry(web.repo, web.repo[revs[-1]])] |
|
1304 | nextentry = [webutil.commonentry(web.repo, web.repo[revs[-1]])] | |
1305 | revs = revs[:-1] |
|
1305 | revs = revs[:-1] | |
1306 |
|
1306 | |||
1307 | lastrev = revs[-1] |
|
1307 | lastrev = revs[-1] | |
1308 |
|
1308 | |||
1309 | # We have to feed a baseset to dagwalker as it is expecting smartset |
|
1309 | # We have to feed a baseset to dagwalker as it is expecting smartset | |
1310 | # object. This does not have a big impact on hgweb performance itself |
|
1310 | # object. This does not have a big impact on hgweb performance itself | |
1311 | # since hgweb graphing code is not itself lazy yet. |
|
1311 | # since hgweb graphing code is not itself lazy yet. | |
1312 | dag = graphmod.dagwalker(web.repo, smartset.baseset(revs)) |
|
1312 | dag = graphmod.dagwalker(web.repo, smartset.baseset(revs)) | |
1313 | # As we said one line above... not lazy. |
|
1313 | # As we said one line above... not lazy. | |
1314 | tree = list(item for item in graphmod.colored(dag, web.repo) |
|
1314 | tree = list(item for item in graphmod.colored(dag, web.repo) | |
1315 | if item[1] == graphmod.CHANGESET) |
|
1315 | if item[1] == graphmod.CHANGESET) | |
1316 |
|
1316 | |||
1317 | def fulltree(): |
|
1317 | def fulltree(): | |
1318 | pos = web.repo[graphtop].rev() |
|
1318 | pos = web.repo[graphtop].rev() | |
1319 | tree = [] |
|
1319 | tree = [] | |
1320 | if pos != -1: |
|
1320 | if pos != -1: | |
1321 | revs = web.repo.changelog.revs(pos, lastrev) |
|
1321 | revs = web.repo.changelog.revs(pos, lastrev) | |
1322 | dag = graphmod.dagwalker(web.repo, smartset.baseset(revs)) |
|
1322 | dag = graphmod.dagwalker(web.repo, smartset.baseset(revs)) | |
1323 | tree = list(item for item in graphmod.colored(dag, web.repo) |
|
1323 | tree = list(item for item in graphmod.colored(dag, web.repo) | |
1324 | if item[1] == graphmod.CHANGESET) |
|
1324 | if item[1] == graphmod.CHANGESET) | |
1325 | return tree |
|
1325 | return tree | |
1326 |
|
1326 | |||
1327 | def jsdata(context): |
|
1327 | def jsdata(context): | |
1328 | for (id, type, ctx, vtx, edges) in fulltree(): |
|
1328 | for (id, type, ctx, vtx, edges) in fulltree(): | |
1329 | yield {'node': pycompat.bytestr(ctx), |
|
1329 | yield {'node': pycompat.bytestr(ctx), | |
1330 | 'graphnode': webutil.getgraphnode(web.repo, ctx), |
|
1330 | 'graphnode': webutil.getgraphnode(web.repo, ctx), | |
1331 | 'vertex': vtx, |
|
1331 | 'vertex': vtx, | |
1332 | 'edges': edges} |
|
1332 | 'edges': edges} | |
1333 |
|
1333 | |||
1334 | def nodes(context): |
|
1334 | def nodes(context): | |
1335 | parity = paritygen(web.stripecount) |
|
1335 | parity = paritygen(web.stripecount) | |
1336 | for row, (id, type, ctx, vtx, edges) in enumerate(tree): |
|
1336 | for row, (id, type, ctx, vtx, edges) in enumerate(tree): | |
1337 | entry = webutil.commonentry(web.repo, ctx) |
|
1337 | entry = webutil.commonentry(web.repo, ctx) | |
1338 | edgedata = [{'col': edge[0], |
|
1338 | edgedata = [{'col': edge[0], | |
1339 | 'nextcol': edge[1], |
|
1339 | 'nextcol': edge[1], | |
1340 | 'color': (edge[2] - 1) % 6 + 1, |
|
1340 | 'color': (edge[2] - 1) % 6 + 1, | |
1341 | 'width': edge[3], |
|
1341 | 'width': edge[3], | |
1342 | 'bcolor': edge[4]} |
|
1342 | 'bcolor': edge[4]} | |
1343 | for edge in edges] |
|
1343 | for edge in edges] | |
1344 |
|
1344 | |||
1345 | entry.update({'col': vtx[0], |
|
1345 | entry.update({'col': vtx[0], | |
1346 | 'color': (vtx[1] - 1) % 6 + 1, |
|
1346 | 'color': (vtx[1] - 1) % 6 + 1, | |
1347 | 'parity': next(parity), |
|
1347 | 'parity': next(parity), | |
1348 | 'edges': templateutil.mappinglist(edgedata), |
|
1348 | 'edges': templateutil.mappinglist(edgedata), | |
1349 | 'row': row, |
|
1349 | 'row': row, | |
1350 | 'nextrow': row + 1}) |
|
1350 | 'nextrow': row + 1}) | |
1351 |
|
1351 | |||
1352 | yield entry |
|
1352 | yield entry | |
1353 |
|
1353 | |||
1354 | rows = len(tree) |
|
1354 | rows = len(tree) | |
1355 |
|
1355 | |||
1356 | return web.sendtemplate( |
|
1356 | return web.sendtemplate( | |
1357 | 'graph', |
|
1357 | 'graph', | |
1358 | rev=rev, |
|
1358 | rev=rev, | |
1359 | symrev=symrev, |
|
1359 | symrev=symrev, | |
1360 | revcount=revcount, |
|
1360 | revcount=revcount, | |
1361 | uprev=uprev, |
|
1361 | uprev=uprev, | |
1362 | lessvars=lessvars, |
|
1362 | lessvars=lessvars, | |
1363 | morevars=morevars, |
|
1363 | morevars=morevars, | |
1364 | downrev=downrev, |
|
1364 | downrev=downrev, | |
1365 | graphvars=graphvars, |
|
1365 | graphvars=graphvars, | |
1366 | rows=rows, |
|
1366 | rows=rows, | |
1367 | bg_height=bg_height, |
|
1367 | bg_height=bg_height, | |
1368 | changesets=count, |
|
1368 | changesets=count, | |
1369 | nextentry=templateutil.mappinglist(nextentry), |
|
1369 | nextentry=templateutil.mappinglist(nextentry), | |
1370 | jsdata=templateutil.mappinggenerator(jsdata), |
|
1370 | jsdata=templateutil.mappinggenerator(jsdata), | |
1371 | nodes=templateutil.mappinggenerator(nodes), |
|
1371 | nodes=templateutil.mappinggenerator(nodes), | |
1372 | node=ctx.hex(), |
|
1372 | node=ctx.hex(), | |
|
1373 | archives=web.archivelist('tip'), | |||
1373 | changenav=changenav) |
|
1374 | changenav=changenav) | |
1374 |
|
1375 | |||
1375 | def _getdoc(e): |
|
1376 | def _getdoc(e): | |
1376 | doc = e[0].__doc__ |
|
1377 | doc = e[0].__doc__ | |
1377 | if doc: |
|
1378 | if doc: | |
1378 | doc = _(doc).partition('\n')[0] |
|
1379 | doc = _(doc).partition('\n')[0] | |
1379 | else: |
|
1380 | else: | |
1380 | doc = _('(no help text available)') |
|
1381 | doc = _('(no help text available)') | |
1381 | return doc |
|
1382 | return doc | |
1382 |
|
1383 | |||
1383 | @webcommand('help') |
|
1384 | @webcommand('help') | |
1384 | def help(web): |
|
1385 | def help(web): | |
1385 | """ |
|
1386 | """ | |
1386 | /help[/{topic}] |
|
1387 | /help[/{topic}] | |
1387 | --------------- |
|
1388 | --------------- | |
1388 |
|
1389 | |||
1389 | Render help documentation. |
|
1390 | Render help documentation. | |
1390 |
|
1391 | |||
1391 | This web command is roughly equivalent to :hg:`help`. If a ``topic`` |
|
1392 | This web command is roughly equivalent to :hg:`help`. If a ``topic`` | |
1392 | is defined, that help topic will be rendered. If not, an index of |
|
1393 | is defined, that help topic will be rendered. If not, an index of | |
1393 | available help topics will be rendered. |
|
1394 | available help topics will be rendered. | |
1394 |
|
1395 | |||
1395 | The ``help`` template will be rendered when requesting help for a topic. |
|
1396 | The ``help`` template will be rendered when requesting help for a topic. | |
1396 | ``helptopics`` will be rendered for the index of help topics. |
|
1397 | ``helptopics`` will be rendered for the index of help topics. | |
1397 | """ |
|
1398 | """ | |
1398 | from .. import commands, help as helpmod # avoid cycle |
|
1399 | from .. import commands, help as helpmod # avoid cycle | |
1399 |
|
1400 | |||
1400 | topicname = web.req.qsparams.get('node') |
|
1401 | topicname = web.req.qsparams.get('node') | |
1401 | if not topicname: |
|
1402 | if not topicname: | |
1402 | def topics(context): |
|
1403 | def topics(context): | |
1403 | for entries, summary, _doc in helpmod.helptable: |
|
1404 | for entries, summary, _doc in helpmod.helptable: | |
1404 | yield {'topic': entries[0], 'summary': summary} |
|
1405 | yield {'topic': entries[0], 'summary': summary} | |
1405 |
|
1406 | |||
1406 | early, other = [], [] |
|
1407 | early, other = [], [] | |
1407 | primary = lambda s: s.partition('|')[0] |
|
1408 | primary = lambda s: s.partition('|')[0] | |
1408 | for c, e in commands.table.iteritems(): |
|
1409 | for c, e in commands.table.iteritems(): | |
1409 | doc = _getdoc(e) |
|
1410 | doc = _getdoc(e) | |
1410 | if 'DEPRECATED' in doc or c.startswith('debug'): |
|
1411 | if 'DEPRECATED' in doc or c.startswith('debug'): | |
1411 | continue |
|
1412 | continue | |
1412 | cmd = primary(c) |
|
1413 | cmd = primary(c) | |
1413 | if cmd.startswith('^'): |
|
1414 | if cmd.startswith('^'): | |
1414 | early.append((cmd[1:], doc)) |
|
1415 | early.append((cmd[1:], doc)) | |
1415 | else: |
|
1416 | else: | |
1416 | other.append((cmd, doc)) |
|
1417 | other.append((cmd, doc)) | |
1417 |
|
1418 | |||
1418 | early.sort() |
|
1419 | early.sort() | |
1419 | other.sort() |
|
1420 | other.sort() | |
1420 |
|
1421 | |||
1421 | def earlycommands(context): |
|
1422 | def earlycommands(context): | |
1422 | for c, doc in early: |
|
1423 | for c, doc in early: | |
1423 | yield {'topic': c, 'summary': doc} |
|
1424 | yield {'topic': c, 'summary': doc} | |
1424 |
|
1425 | |||
1425 | def othercommands(context): |
|
1426 | def othercommands(context): | |
1426 | for c, doc in other: |
|
1427 | for c, doc in other: | |
1427 | yield {'topic': c, 'summary': doc} |
|
1428 | yield {'topic': c, 'summary': doc} | |
1428 |
|
1429 | |||
1429 | return web.sendtemplate( |
|
1430 | return web.sendtemplate( | |
1430 | 'helptopics', |
|
1431 | 'helptopics', | |
1431 | topics=templateutil.mappinggenerator(topics), |
|
1432 | topics=templateutil.mappinggenerator(topics), | |
1432 | earlycommands=templateutil.mappinggenerator(earlycommands), |
|
1433 | earlycommands=templateutil.mappinggenerator(earlycommands), | |
1433 | othercommands=templateutil.mappinggenerator(othercommands), |
|
1434 | othercommands=templateutil.mappinggenerator(othercommands), | |
1434 | title='Index') |
|
1435 | title='Index') | |
1435 |
|
1436 | |||
1436 | # Render an index of sub-topics. |
|
1437 | # Render an index of sub-topics. | |
1437 | if topicname in helpmod.subtopics: |
|
1438 | if topicname in helpmod.subtopics: | |
1438 | topics = [] |
|
1439 | topics = [] | |
1439 | for entries, summary, _doc in helpmod.subtopics[topicname]: |
|
1440 | for entries, summary, _doc in helpmod.subtopics[topicname]: | |
1440 | topics.append({ |
|
1441 | topics.append({ | |
1441 | 'topic': '%s.%s' % (topicname, entries[0]), |
|
1442 | 'topic': '%s.%s' % (topicname, entries[0]), | |
1442 | 'basename': entries[0], |
|
1443 | 'basename': entries[0], | |
1443 | 'summary': summary, |
|
1444 | 'summary': summary, | |
1444 | }) |
|
1445 | }) | |
1445 |
|
1446 | |||
1446 | return web.sendtemplate( |
|
1447 | return web.sendtemplate( | |
1447 | 'helptopics', |
|
1448 | 'helptopics', | |
1448 | topics=templateutil.mappinglist(topics), |
|
1449 | topics=templateutil.mappinglist(topics), | |
1449 | title=topicname, |
|
1450 | title=topicname, | |
1450 | subindex=True) |
|
1451 | subindex=True) | |
1451 |
|
1452 | |||
1452 | u = webutil.wsgiui.load() |
|
1453 | u = webutil.wsgiui.load() | |
1453 | u.verbose = True |
|
1454 | u.verbose = True | |
1454 |
|
1455 | |||
1455 | # Render a page from a sub-topic. |
|
1456 | # Render a page from a sub-topic. | |
1456 | if '.' in topicname: |
|
1457 | if '.' in topicname: | |
1457 | # TODO implement support for rendering sections, like |
|
1458 | # TODO implement support for rendering sections, like | |
1458 | # `hg help` works. |
|
1459 | # `hg help` works. | |
1459 | topic, subtopic = topicname.split('.', 1) |
|
1460 | topic, subtopic = topicname.split('.', 1) | |
1460 | if topic not in helpmod.subtopics: |
|
1461 | if topic not in helpmod.subtopics: | |
1461 | raise ErrorResponse(HTTP_NOT_FOUND) |
|
1462 | raise ErrorResponse(HTTP_NOT_FOUND) | |
1462 | else: |
|
1463 | else: | |
1463 | topic = topicname |
|
1464 | topic = topicname | |
1464 | subtopic = None |
|
1465 | subtopic = None | |
1465 |
|
1466 | |||
1466 | try: |
|
1467 | try: | |
1467 | doc = helpmod.help_(u, commands, topic, subtopic=subtopic) |
|
1468 | doc = helpmod.help_(u, commands, topic, subtopic=subtopic) | |
1468 | except error.Abort: |
|
1469 | except error.Abort: | |
1469 | raise ErrorResponse(HTTP_NOT_FOUND) |
|
1470 | raise ErrorResponse(HTTP_NOT_FOUND) | |
1470 |
|
1471 | |||
1471 | return web.sendtemplate( |
|
1472 | return web.sendtemplate( | |
1472 | 'help', |
|
1473 | 'help', | |
1473 | topic=topicname, |
|
1474 | topic=topicname, | |
1474 | doc=doc) |
|
1475 | doc=doc) | |
1475 |
|
1476 | |||
1476 | # tell hggettext to extract docstrings from these functions: |
|
1477 | # tell hggettext to extract docstrings from these functions: | |
1477 | i18nfunctions = commands.values() |
|
1478 | i18nfunctions = commands.values() |
@@ -1,70 +1,70 b'' | |||||
1 | {header} |
|
1 | {header} | |
2 | <title>{repo|escape}: Graph</title> |
|
2 | <title>{repo|escape}: Graph</title> | |
3 | <link rel="alternate" type="application/atom+xml" |
|
3 | <link rel="alternate" type="application/atom+xml" | |
4 | href="{url|urlescape}atom-log" title="Atom feed for {repo|escape}"/> |
|
4 | href="{url|urlescape}atom-log" title="Atom feed for {repo|escape}"/> | |
5 | <link rel="alternate" type="application/rss+xml" |
|
5 | <link rel="alternate" type="application/rss+xml" | |
6 | href="{url|urlescape}rss-log" title="RSS feed for {repo|escape}"/> |
|
6 | href="{url|urlescape}rss-log" title="RSS feed for {repo|escape}"/> | |
7 | </head> |
|
7 | </head> | |
8 | <body> |
|
8 | <body> | |
9 |
|
9 | |||
10 | <div class="page_header"> |
|
10 | <div class="page_header"> | |
11 | <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a> |
|
11 | <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a> | |
12 | <a href="/">Mercurial</a> {pathdef%breadcrumb} / graph |
|
12 | <a href="/">Mercurial</a> {pathdef%breadcrumb} / graph | |
13 | </div> |
|
13 | </div> | |
14 |
|
14 | |||
15 | <div class="page_nav"> |
|
15 | <div class="page_nav"> | |
16 | <div> |
|
16 | <div> | |
17 | <a href="{url|urlescape}summary{sessionvars%urlparameter}">summary</a> | |
|
17 | <a href="{url|urlescape}summary{sessionvars%urlparameter}">summary</a> | | |
18 | <a href="{url|urlescape}shortlog/{symrev}{sessionvars%urlparameter}">shortlog</a> | |
|
18 | <a href="{url|urlescape}shortlog/{symrev}{sessionvars%urlparameter}">shortlog</a> | | |
19 | <a href="{url|urlescape}log/{symrev}{sessionvars%urlparameter}">changelog</a> | |
|
19 | <a href="{url|urlescape}log/{symrev}{sessionvars%urlparameter}">changelog</a> | | |
20 | graph | |
|
20 | graph | | |
21 | <a href="{url|urlescape}tags{sessionvars%urlparameter}">tags</a> | |
|
21 | <a href="{url|urlescape}tags{sessionvars%urlparameter}">tags</a> | | |
22 | <a href="{url|urlescape}bookmarks{sessionvars%urlparameter}">bookmarks</a> | |
|
22 | <a href="{url|urlescape}bookmarks{sessionvars%urlparameter}">bookmarks</a> | | |
23 | <a href="{url|urlescape}branches{sessionvars%urlparameter}">branches</a> | |
|
23 | <a href="{url|urlescape}branches{sessionvars%urlparameter}">branches</a> | | |
24 | <a href="{url|urlescape}file/{symrev}{sessionvars%urlparameter}">files</a> | |
|
24 | <a href="{url|urlescape}file/{symrev}{sessionvars%urlparameter}">files</a>{archives%archiveentry} | | |
25 | <a href="{url|urlescape}help{sessionvars%urlparameter}">help</a> |
|
25 | <a href="{url|urlescape}help{sessionvars%urlparameter}">help</a> | |
26 | <br/> |
|
26 | <br/> | |
27 | <a href="{url|urlescape}graph/{symrev}{lessvars%urlparameter}">less</a> |
|
27 | <a href="{url|urlescape}graph/{symrev}{lessvars%urlparameter}">less</a> | |
28 | <a href="{url|urlescape}graph/{symrev}{morevars%urlparameter}">more</a> |
|
28 | <a href="{url|urlescape}graph/{symrev}{morevars%urlparameter}">more</a> | |
29 | | {changenav%navgraph} |
|
29 | | {changenav%navgraph} | |
30 | </div> |
|
30 | </div> | |
31 | {searchform} |
|
31 | {searchform} | |
32 | </div> |
|
32 | </div> | |
33 |
|
33 | |||
34 | <div class="title"> </div> |
|
34 | <div class="title"> </div> | |
35 |
|
35 | |||
36 | <noscript>The revision graph only works with JavaScript-enabled browsers.</noscript> |
|
36 | <noscript>The revision graph only works with JavaScript-enabled browsers.</noscript> | |
37 |
|
37 | |||
38 | <div id="wrapper"> |
|
38 | <div id="wrapper"> | |
39 | <canvas id="graph"></canvas> |
|
39 | <canvas id="graph"></canvas> | |
40 | <ul id="graphnodes">{nodes%graphentry}</ul> |
|
40 | <ul id="graphnodes">{nodes%graphentry}</ul> | |
41 | </div> |
|
41 | </div> | |
42 |
|
42 | |||
43 | <script{if(nonce, ' nonce="{nonce}"')}> |
|
43 | <script{if(nonce, ' nonce="{nonce}"')}> | |
44 | var data = {jsdata|json}; |
|
44 | var data = {jsdata|json}; | |
45 | var graph = new Graph(); |
|
45 | var graph = new Graph(); | |
46 | graph.scale({bg_height}); |
|
46 | graph.scale({bg_height}); | |
47 | graph.render(data); |
|
47 | graph.render(data); | |
48 | </script> |
|
48 | </script> | |
49 |
|
49 | |||
50 | <div class="extra_nav"> |
|
50 | <div class="extra_nav"> | |
51 | <a href="{url|urlescape}graph/{symrev}{lessvars%urlparameter}">less</a> |
|
51 | <a href="{url|urlescape}graph/{symrev}{lessvars%urlparameter}">less</a> | |
52 | <a href="{url|urlescape}graph/{symrev}{morevars%urlparameter}">more</a> |
|
52 | <a href="{url|urlescape}graph/{symrev}{morevars%urlparameter}">more</a> | |
53 | | {changenav%navgraph} |
|
53 | | {changenav%navgraph} | |
54 | </div> |
|
54 | </div> | |
55 |
|
55 | |||
56 | <script type="text/javascript"{if(nonce, ' nonce="{nonce}"')}> |
|
56 | <script type="text/javascript"{if(nonce, ' nonce="{nonce}"')}> | |
57 | ajaxScrollInit( |
|
57 | ajaxScrollInit( | |
58 | '{url|urlescape}graph/%next%{graphvars%urlparameter}', |
|
58 | '{url|urlescape}graph/%next%{graphvars%urlparameter}', | |
59 | '{nextentry%"{node}"}', <!-- NEXTHASH |
|
59 | '{nextentry%"{node}"}', <!-- NEXTHASH | |
60 | function (htmlText) \{ |
|
60 | function (htmlText) \{ | |
61 | var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/); |
|
61 | var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/); | |
62 | return m ? m[1] : null; |
|
62 | return m ? m[1] : null; | |
63 | }, |
|
63 | }, | |
64 | '#wrapper', |
|
64 | '#wrapper', | |
65 | '<div class="%class%" style="text-align: center;">%text%</div>', |
|
65 | '<div class="%class%" style="text-align: center;">%text%</div>', | |
66 | 'graph' |
|
66 | 'graph' | |
67 | ); |
|
67 | ); | |
68 | </script> |
|
68 | </script> | |
69 |
|
69 | |||
70 | {footer} |
|
70 | {footer} |
@@ -1,64 +1,65 b'' | |||||
1 | {header} |
|
1 | {header} | |
2 | <title>{repo|escape}: graph</title> |
|
2 | <title>{repo|escape}: graph</title> | |
3 | <link rel="alternate" type="application/atom+xml" href="{url|urlescape}atom-log" title="Atom feed for {repo|escape}"/> |
|
3 | <link rel="alternate" type="application/atom+xml" href="{url|urlescape}atom-log" title="Atom feed for {repo|escape}"/> | |
4 | <link rel="alternate" type="application/rss+xml" href="{url|urlescape}rss-log" title="RSS feed for {repo|escape}"/> |
|
4 | <link rel="alternate" type="application/rss+xml" href="{url|urlescape}rss-log" title="RSS feed for {repo|escape}"/> | |
5 | </head> |
|
5 | </head> | |
6 |
|
6 | |||
7 | <body> |
|
7 | <body> | |
8 | <div id="container"> |
|
8 | <div id="container"> | |
9 | <div class="page-header"> |
|
9 | <div class="page-header"> | |
10 | <h1 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb} / graph</h1> |
|
10 | <h1 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb} / graph</h1> | |
11 |
|
11 | |||
12 | {searchform} |
|
12 | {searchform} | |
13 |
|
13 | |||
14 | <ul class="page-nav"> |
|
14 | <ul class="page-nav"> | |
15 | <li><a href="{url|urlescape}summary{sessionvars%urlparameter}">summary</a></li> |
|
15 | <li><a href="{url|urlescape}summary{sessionvars%urlparameter}">summary</a></li> | |
16 | <li><a href="{url|urlescape}shortlog{sessionvars%urlparameter}">shortlog</a></li> |
|
16 | <li><a href="{url|urlescape}shortlog{sessionvars%urlparameter}">shortlog</a></li> | |
17 | <li><a href="{url|urlescape}changelog{sessionvars%urlparameter}">changelog</a></li> |
|
17 | <li><a href="{url|urlescape}changelog{sessionvars%urlparameter}">changelog</a></li> | |
18 | <li class="current">graph</li> |
|
18 | <li class="current">graph</li> | |
19 | <li><a href="{url|urlescape}tags{sessionvars%urlparameter}">tags</a></li> |
|
19 | <li><a href="{url|urlescape}tags{sessionvars%urlparameter}">tags</a></li> | |
20 | <li><a href="{url|urlescape}bookmarks{sessionvars%urlparameter}">bookmarks</a></li> |
|
20 | <li><a href="{url|urlescape}bookmarks{sessionvars%urlparameter}">bookmarks</a></li> | |
21 | <li><a href="{url|urlescape}branches{sessionvars%urlparameter}">branches</a></li> |
|
21 | <li><a href="{url|urlescape}branches{sessionvars%urlparameter}">branches</a></li> | |
22 | <li><a href="{url|urlescape}file/{symrev}{sessionvars%urlparameter}">files</a></li> |
|
22 | <li><a href="{url|urlescape}file/{symrev}{sessionvars%urlparameter}">files</a></li> | |
|
23 | {archives%archiveentry} | |||
23 | <li><a href="{url|urlescape}help{sessionvars%urlparameter}">help</a></li> |
|
24 | <li><a href="{url|urlescape}help{sessionvars%urlparameter}">help</a></li> | |
24 | </ul> |
|
25 | </ul> | |
25 | </div> |
|
26 | </div> | |
26 |
|
27 | |||
27 | <h2 class="no-link no-border">graph</h2> |
|
28 | <h2 class="no-link no-border">graph</h2> | |
28 |
|
29 | |||
29 | <div id="noscript">The revision graph only works with JavaScript-enabled browsers.</div> |
|
30 | <div id="noscript">The revision graph only works with JavaScript-enabled browsers.</div> | |
30 | <div id="wrapper"> |
|
31 | <div id="wrapper"> | |
31 | <canvas id="graph"></canvas> |
|
32 | <canvas id="graph"></canvas> | |
32 | <ul id="graphnodes">{nodes%graphentry}</ul> |
|
33 | <ul id="graphnodes">{nodes%graphentry}</ul> | |
33 | </div> |
|
34 | </div> | |
34 |
|
35 | |||
35 | <script{if(nonce, ' nonce="{nonce}"')}> |
|
36 | <script{if(nonce, ' nonce="{nonce}"')}> | |
36 | document.getElementById('noscript').style.display = 'none'; |
|
37 | document.getElementById('noscript').style.display = 'none'; | |
37 |
|
38 | |||
38 | var data = {jsdata|json}; |
|
39 | var data = {jsdata|json}; | |
39 | var graph = new Graph(); |
|
40 | var graph = new Graph(); | |
40 | graph.scale({bg_height}); |
|
41 | graph.scale({bg_height}); | |
41 | graph.render(data); |
|
42 | graph.render(data); | |
42 | </script> |
|
43 | </script> | |
43 |
|
44 | |||
44 | <div class="page-path"> |
|
45 | <div class="page-path"> | |
45 | <a href="{url|urlescape}graph/{symrev}{lessvars%urlparameter}">less</a> |
|
46 | <a href="{url|urlescape}graph/{symrev}{lessvars%urlparameter}">less</a> | |
46 | <a href="{url|urlescape}graph/{symrev}{morevars%urlparameter}">more</a> |
|
47 | <a href="{url|urlescape}graph/{symrev}{morevars%urlparameter}">more</a> | |
47 | | {changenav%navgraph} |
|
48 | | {changenav%navgraph} | |
48 | </div> |
|
49 | </div> | |
49 |
|
50 | |||
50 | <script type="text/javascript"{if(nonce, ' nonce="{nonce}"')}> |
|
51 | <script type="text/javascript"{if(nonce, ' nonce="{nonce}"')}> | |
51 | ajaxScrollInit( |
|
52 | ajaxScrollInit( | |
52 | '{url|urlescape}graph/%next%{graphvars%urlparameter}', |
|
53 | '{url|urlescape}graph/%next%{graphvars%urlparameter}', | |
53 | '{nextentry%"{node}"}', <!-- NEXTHASH |
|
54 | '{nextentry%"{node}"}', <!-- NEXTHASH | |
54 | function (htmlText) \{ |
|
55 | function (htmlText) \{ | |
55 | var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/); |
|
56 | var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/); | |
56 | return m ? m[1] : null; |
|
57 | return m ? m[1] : null; | |
57 | }, |
|
58 | }, | |
58 | '#wrapper', |
|
59 | '#wrapper', | |
59 | '<div class="%class%" style="text-align: center;">%text%</div>', |
|
60 | '<div class="%class%" style="text-align: center;">%text%</div>', | |
60 | 'graph' |
|
61 | 'graph' | |
61 | ); |
|
62 | ); | |
62 | </script> |
|
63 | </script> | |
63 |
|
64 | |||
64 | {footer} |
|
65 | {footer} |
@@ -1,86 +1,89 b'' | |||||
1 | {header} |
|
1 | {header} | |
2 | <title>{repo|escape}: revision graph</title> |
|
2 | <title>{repo|escape}: revision graph</title> | |
3 | <link rel="alternate" type="application/atom+xml" |
|
3 | <link rel="alternate" type="application/atom+xml" | |
4 | href="{url|urlescape}atom-log" title="Atom feed for {repo|escape}: log" /> |
|
4 | href="{url|urlescape}atom-log" title="Atom feed for {repo|escape}: log" /> | |
5 | <link rel="alternate" type="application/rss+xml" |
|
5 | <link rel="alternate" type="application/rss+xml" | |
6 | href="{url|urlescape}rss-log" title="RSS feed for {repo|escape}: log" /> |
|
6 | href="{url|urlescape}rss-log" title="RSS feed for {repo|escape}: log" /> | |
7 | </head> |
|
7 | </head> | |
8 | <body> |
|
8 | <body> | |
9 |
|
9 | |||
10 | <div class="container"> |
|
10 | <div class="container"> | |
11 | <div class="menu"> |
|
11 | <div class="menu"> | |
12 | <div class="logo"> |
|
12 | <div class="logo"> | |
13 | <a href="{logourl}"> |
|
13 | <a href="{logourl}"> | |
14 | <img src="{staticurl|urlescape}{logoimg}" alt="mercurial" /></a> |
|
14 | <img src="{staticurl|urlescape}{logoimg}" alt="mercurial" /></a> | |
15 | </div> |
|
15 | </div> | |
16 | <ul> |
|
16 | <ul> | |
17 | <li><a href="{url|urlescape}shortlog/{symrev}{sessionvars%urlparameter}">log</a></li> |
|
17 | <li><a href="{url|urlescape}shortlog/{symrev}{sessionvars%urlparameter}">log</a></li> | |
18 | <li class="active">graph</li> |
|
18 | <li class="active">graph</li> | |
19 | <li><a href="{url|urlescape}tags{sessionvars%urlparameter}">tags</a></li> |
|
19 | <li><a href="{url|urlescape}tags{sessionvars%urlparameter}">tags</a></li> | |
20 | <li><a href="{url|urlescape}bookmarks{sessionvars%urlparameter}">bookmarks</a></li> |
|
20 | <li><a href="{url|urlescape}bookmarks{sessionvars%urlparameter}">bookmarks</a></li> | |
21 | <li><a href="{url|urlescape}branches{sessionvars%urlparameter}">branches</a></li> |
|
21 | <li><a href="{url|urlescape}branches{sessionvars%urlparameter}">branches</a></li> | |
22 | </ul> |
|
22 | </ul> | |
23 | <ul> |
|
23 | <ul> | |
24 | <li><a href="{url|urlescape}rev/{symrev}{sessionvars%urlparameter}">changeset</a></li> |
|
24 | <li><a href="{url|urlescape}rev/{symrev}{sessionvars%urlparameter}">changeset</a></li> | |
25 | <li><a href="{url|urlescape}file/{symrev}{path|urlescape}{sessionvars%urlparameter}">browse</a></li> |
|
25 | <li><a href="{url|urlescape}file/{symrev}{path|urlescape}{sessionvars%urlparameter}">browse</a></li> | |
26 | </ul> |
|
26 | </ul> | |
27 | <ul> |
|
27 | <ul> | |
|
28 | {archives%archiveentry} | |||
|
29 | </ul> | |||
|
30 | <ul> | |||
28 | <li><a href="{url|urlescape}help{sessionvars%urlparameter}">help</a></li> |
|
31 | <li><a href="{url|urlescape}help{sessionvars%urlparameter}">help</a></li> | |
29 | </ul> |
|
32 | </ul> | |
30 | <div class="atom-logo"> |
|
33 | <div class="atom-logo"> | |
31 | <a href="{url|urlescape}atom-log" title="subscribe to atom feed"> |
|
34 | <a href="{url|urlescape}atom-log" title="subscribe to atom feed"> | |
32 | <img class="atom-logo" src="{staticurl|urlescape}feed-icon-14x14.png" alt="atom feed" /> |
|
35 | <img class="atom-logo" src="{staticurl|urlescape}feed-icon-14x14.png" alt="atom feed" /> | |
33 | </a> |
|
36 | </a> | |
34 | </div> |
|
37 | </div> | |
35 | </div> |
|
38 | </div> | |
36 |
|
39 | |||
37 | <div class="main"> |
|
40 | <div class="main"> | |
38 | <h2 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb}</h2> |
|
41 | <h2 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb}</h2> | |
39 | <h3>graph</h3> |
|
42 | <h3>graph</h3> | |
40 |
|
43 | |||
41 | {searchform} |
|
44 | {searchform} | |
42 |
|
45 | |||
43 | <div class="navigate"> |
|
46 | <div class="navigate"> | |
44 | <a href="{url|urlescape}graph/{symrev}{lessvars%urlparameter}">less</a> |
|
47 | <a href="{url|urlescape}graph/{symrev}{lessvars%urlparameter}">less</a> | |
45 | <a href="{url|urlescape}graph/{symrev}{morevars%urlparameter}">more</a> |
|
48 | <a href="{url|urlescape}graph/{symrev}{morevars%urlparameter}">more</a> | |
46 | | rev {rev}: {changenav%navgraph} |
|
49 | | rev {rev}: {changenav%navgraph} | |
47 | </div> |
|
50 | </div> | |
48 |
|
51 | |||
49 | <noscript><p>The revision graph only works with JavaScript-enabled browsers.</p></noscript> |
|
52 | <noscript><p>The revision graph only works with JavaScript-enabled browsers.</p></noscript> | |
50 |
|
53 | |||
51 | <div id="wrapper"> |
|
54 | <div id="wrapper"> | |
52 | <canvas id="graph"></canvas> |
|
55 | <canvas id="graph"></canvas> | |
53 | <ul id="graphnodes" class="stripes2">{nodes%graphentry}</ul> |
|
56 | <ul id="graphnodes" class="stripes2">{nodes%graphentry}</ul> | |
54 | </div> |
|
57 | </div> | |
55 |
|
58 | |||
56 | <script type="text/javascript"{if(nonce, ' nonce="{nonce}"')}> |
|
59 | <script type="text/javascript"{if(nonce, ' nonce="{nonce}"')}> | |
57 | var data = {jsdata|json}; |
|
60 | var data = {jsdata|json}; | |
58 | var graph = new Graph(); |
|
61 | var graph = new Graph(); | |
59 | graph.scale({bg_height}); |
|
62 | graph.scale({bg_height}); | |
60 | graph.render(data); |
|
63 | graph.render(data); | |
61 | </script> |
|
64 | </script> | |
62 |
|
65 | |||
63 | <div class="navigate"> |
|
66 | <div class="navigate"> | |
64 | <a href="{url|urlescape}graph/{symrev}{lessvars%urlparameter}">less</a> |
|
67 | <a href="{url|urlescape}graph/{symrev}{lessvars%urlparameter}">less</a> | |
65 | <a href="{url|urlescape}graph/{symrev}{morevars%urlparameter}">more</a> |
|
68 | <a href="{url|urlescape}graph/{symrev}{morevars%urlparameter}">more</a> | |
66 | | rev {rev}: {changenav%navgraph} |
|
69 | | rev {rev}: {changenav%navgraph} | |
67 | </div> |
|
70 | </div> | |
68 |
|
71 | |||
69 | <script type="text/javascript"{if(nonce, ' nonce="{nonce}"')}> |
|
72 | <script type="text/javascript"{if(nonce, ' nonce="{nonce}"')}> | |
70 | ajaxScrollInit( |
|
73 | ajaxScrollInit( | |
71 | '{url|urlescape}graph/%next%{graphvars%urlparameter}', |
|
74 | '{url|urlescape}graph/%next%{graphvars%urlparameter}', | |
72 | '{nextentry%"{node}"}', <!-- NEXTHASH |
|
75 | '{nextentry%"{node}"}', <!-- NEXTHASH | |
73 | function (htmlText) \{ |
|
76 | function (htmlText) \{ | |
74 | var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/); |
|
77 | var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/); | |
75 | return m ? m[1] : null; |
|
78 | return m ? m[1] : null; | |
76 | }, |
|
79 | }, | |
77 | '#wrapper', |
|
80 | '#wrapper', | |
78 | '<div class="%class%" style="text-align: center;">%text%</div>', |
|
81 | '<div class="%class%" style="text-align: center;">%text%</div>', | |
79 | 'graph' |
|
82 | 'graph' | |
80 | ); |
|
83 | ); | |
81 | </script> |
|
84 | </script> | |
82 |
|
85 | |||
83 | </div> |
|
86 | </div> | |
84 | </div> |
|
87 | </div> | |
85 |
|
88 | |||
86 | {footer} |
|
89 | {footer} |
@@ -1,428 +1,431 b'' | |||||
1 | #require serve |
|
1 | #require serve | |
2 |
|
2 | |||
3 | Some tests for hgweb in an empty repository |
|
3 | Some tests for hgweb in an empty repository | |
4 |
|
4 | |||
5 | $ hg init test |
|
5 | $ hg init test | |
6 | $ cd test |
|
6 | $ cd test | |
7 | $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log |
|
7 | $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log | |
8 | $ cat hg.pid >> $DAEMON_PIDS |
|
8 | $ cat hg.pid >> $DAEMON_PIDS | |
9 | $ (get-with-headers.py localhost:$HGPORT 'shortlog') |
|
9 | $ (get-with-headers.py localhost:$HGPORT 'shortlog') | |
10 | 200 Script output follows |
|
10 | 200 Script output follows | |
11 |
|
11 | |||
12 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
|
12 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |
13 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> |
|
13 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> | |
14 | <head> |
|
14 | <head> | |
15 | <link rel="icon" href="/static/hgicon.png" type="image/png" /> |
|
15 | <link rel="icon" href="/static/hgicon.png" type="image/png" /> | |
16 | <meta name="robots" content="index, nofollow" /> |
|
16 | <meta name="robots" content="index, nofollow" /> | |
17 | <link rel="stylesheet" href="/static/style-paper.css" type="text/css" /> |
|
17 | <link rel="stylesheet" href="/static/style-paper.css" type="text/css" /> | |
18 | <script type="text/javascript" src="/static/mercurial.js"></script> |
|
18 | <script type="text/javascript" src="/static/mercurial.js"></script> | |
19 |
|
19 | |||
20 | <title>test: log</title> |
|
20 | <title>test: log</title> | |
21 | <link rel="alternate" type="application/atom+xml" |
|
21 | <link rel="alternate" type="application/atom+xml" | |
22 | href="/atom-log" title="Atom feed for test" /> |
|
22 | href="/atom-log" title="Atom feed for test" /> | |
23 | <link rel="alternate" type="application/rss+xml" |
|
23 | <link rel="alternate" type="application/rss+xml" | |
24 | href="/rss-log" title="RSS feed for test" /> |
|
24 | href="/rss-log" title="RSS feed for test" /> | |
25 | </head> |
|
25 | </head> | |
26 | <body> |
|
26 | <body> | |
27 |
|
27 | |||
28 | <div class="container"> |
|
28 | <div class="container"> | |
29 | <div class="menu"> |
|
29 | <div class="menu"> | |
30 | <div class="logo"> |
|
30 | <div class="logo"> | |
31 | <a href="https://mercurial-scm.org/"> |
|
31 | <a href="https://mercurial-scm.org/"> | |
32 | <img src="/static/hglogo.png" alt="mercurial" /></a> |
|
32 | <img src="/static/hglogo.png" alt="mercurial" /></a> | |
33 | </div> |
|
33 | </div> | |
34 | <ul> |
|
34 | <ul> | |
35 | <li class="active">log</li> |
|
35 | <li class="active">log</li> | |
36 | <li><a href="/graph/tip">graph</a></li> |
|
36 | <li><a href="/graph/tip">graph</a></li> | |
37 | <li><a href="/tags">tags</a></li> |
|
37 | <li><a href="/tags">tags</a></li> | |
38 | <li><a href="/bookmarks">bookmarks</a></li> |
|
38 | <li><a href="/bookmarks">bookmarks</a></li> | |
39 | <li><a href="/branches">branches</a></li> |
|
39 | <li><a href="/branches">branches</a></li> | |
40 | </ul> |
|
40 | </ul> | |
41 | <ul> |
|
41 | <ul> | |
42 | <li><a href="/rev/tip">changeset</a></li> |
|
42 | <li><a href="/rev/tip">changeset</a></li> | |
43 | <li><a href="/file/tip">browse</a></li> |
|
43 | <li><a href="/file/tip">browse</a></li> | |
44 | </ul> |
|
44 | </ul> | |
45 | <ul> |
|
45 | <ul> | |
46 |
|
46 | |||
47 | </ul> |
|
47 | </ul> | |
48 | <ul> |
|
48 | <ul> | |
49 | <li><a href="/help">help</a></li> |
|
49 | <li><a href="/help">help</a></li> | |
50 | </ul> |
|
50 | </ul> | |
51 | <div class="atom-logo"> |
|
51 | <div class="atom-logo"> | |
52 | <a href="/atom-log" title="subscribe to atom feed"> |
|
52 | <a href="/atom-log" title="subscribe to atom feed"> | |
53 | <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed" /> |
|
53 | <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed" /> | |
54 | </a> |
|
54 | </a> | |
55 | </div> |
|
55 | </div> | |
56 | </div> |
|
56 | </div> | |
57 |
|
57 | |||
58 | <div class="main"> |
|
58 | <div class="main"> | |
59 | <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> |
|
59 | <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> | |
60 | <h3>log</h3> |
|
60 | <h3>log</h3> | |
61 |
|
61 | |||
62 |
|
62 | |||
63 | <form class="search" action="/log"> |
|
63 | <form class="search" action="/log"> | |
64 |
|
64 | |||
65 | <p><input name="rev" id="search1" type="text" size="30" value="" /></p> |
|
65 | <p><input name="rev" id="search1" type="text" size="30" value="" /></p> | |
66 | <div id="hint">Find changesets by keywords (author, files, the commit message), revision |
|
66 | <div id="hint">Find changesets by keywords (author, files, the commit message), revision | |
67 | number or hash, or <a href="/help/revsets">revset expression</a>.</div> |
|
67 | number or hash, or <a href="/help/revsets">revset expression</a>.</div> | |
68 | </form> |
|
68 | </form> | |
69 |
|
69 | |||
70 | <div class="navigate"> |
|
70 | <div class="navigate"> | |
71 | <a href="/shortlog/tip?revcount=30">less</a> |
|
71 | <a href="/shortlog/tip?revcount=30">less</a> | |
72 | <a href="/shortlog/tip?revcount=120">more</a> |
|
72 | <a href="/shortlog/tip?revcount=120">more</a> | |
73 | | rev -1: |
|
73 | | rev -1: | |
74 | </div> |
|
74 | </div> | |
75 |
|
75 | |||
76 | <table class="bigtable"> |
|
76 | <table class="bigtable"> | |
77 | <thead> |
|
77 | <thead> | |
78 | <tr> |
|
78 | <tr> | |
79 | <th class="age">age</th> |
|
79 | <th class="age">age</th> | |
80 | <th class="author">author</th> |
|
80 | <th class="author">author</th> | |
81 | <th class="description">description</th> |
|
81 | <th class="description">description</th> | |
82 | </tr> |
|
82 | </tr> | |
83 | </thead> |
|
83 | </thead> | |
84 | <tbody class="stripes2"> |
|
84 | <tbody class="stripes2"> | |
85 |
|
85 | |||
86 | </tbody> |
|
86 | </tbody> | |
87 | </table> |
|
87 | </table> | |
88 |
|
88 | |||
89 | <div class="navigate"> |
|
89 | <div class="navigate"> | |
90 | <a href="/shortlog/tip?revcount=30">less</a> |
|
90 | <a href="/shortlog/tip?revcount=30">less</a> | |
91 | <a href="/shortlog/tip?revcount=120">more</a> |
|
91 | <a href="/shortlog/tip?revcount=120">more</a> | |
92 | | rev -1: |
|
92 | | rev -1: | |
93 | </div> |
|
93 | </div> | |
94 |
|
94 | |||
95 | <script type="text/javascript"> |
|
95 | <script type="text/javascript"> | |
96 | ajaxScrollInit( |
|
96 | ajaxScrollInit( | |
97 | '/shortlog/%next%', |
|
97 | '/shortlog/%next%', | |
98 | '', <!-- NEXTHASH |
|
98 | '', <!-- NEXTHASH | |
99 | function (htmlText) { |
|
99 | function (htmlText) { | |
100 | var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/); |
|
100 | var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/); | |
101 | return m ? m[1] : null; |
|
101 | return m ? m[1] : null; | |
102 | }, |
|
102 | }, | |
103 | '.bigtable > tbody', |
|
103 | '.bigtable > tbody', | |
104 | '<tr class="%class%">\ |
|
104 | '<tr class="%class%">\ | |
105 | <td colspan="3" style="text-align: center;">%text%</td>\ |
|
105 | <td colspan="3" style="text-align: center;">%text%</td>\ | |
106 | </tr>' |
|
106 | </tr>' | |
107 | ); |
|
107 | ); | |
108 | </script> |
|
108 | </script> | |
109 |
|
109 | |||
110 | </div> |
|
110 | </div> | |
111 | </div> |
|
111 | </div> | |
112 |
|
112 | |||
113 |
|
113 | |||
114 |
|
114 | |||
115 | </body> |
|
115 | </body> | |
116 | </html> |
|
116 | </html> | |
117 |
|
117 | |||
118 | $ echo babar |
|
118 | $ echo babar | |
119 | babar |
|
119 | babar | |
120 | $ (get-with-headers.py localhost:$HGPORT 'log') |
|
120 | $ (get-with-headers.py localhost:$HGPORT 'log') | |
121 | 200 Script output follows |
|
121 | 200 Script output follows | |
122 |
|
122 | |||
123 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
|
123 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |
124 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> |
|
124 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> | |
125 | <head> |
|
125 | <head> | |
126 | <link rel="icon" href="/static/hgicon.png" type="image/png" /> |
|
126 | <link rel="icon" href="/static/hgicon.png" type="image/png" /> | |
127 | <meta name="robots" content="index, nofollow" /> |
|
127 | <meta name="robots" content="index, nofollow" /> | |
128 | <link rel="stylesheet" href="/static/style-paper.css" type="text/css" /> |
|
128 | <link rel="stylesheet" href="/static/style-paper.css" type="text/css" /> | |
129 | <script type="text/javascript" src="/static/mercurial.js"></script> |
|
129 | <script type="text/javascript" src="/static/mercurial.js"></script> | |
130 |
|
130 | |||
131 | <title>test: log</title> |
|
131 | <title>test: log</title> | |
132 | <link rel="alternate" type="application/atom+xml" |
|
132 | <link rel="alternate" type="application/atom+xml" | |
133 | href="/atom-log" title="Atom feed for test" /> |
|
133 | href="/atom-log" title="Atom feed for test" /> | |
134 | <link rel="alternate" type="application/rss+xml" |
|
134 | <link rel="alternate" type="application/rss+xml" | |
135 | href="/rss-log" title="RSS feed for test" /> |
|
135 | href="/rss-log" title="RSS feed for test" /> | |
136 | </head> |
|
136 | </head> | |
137 | <body> |
|
137 | <body> | |
138 |
|
138 | |||
139 | <div class="container"> |
|
139 | <div class="container"> | |
140 | <div class="menu"> |
|
140 | <div class="menu"> | |
141 | <div class="logo"> |
|
141 | <div class="logo"> | |
142 | <a href="https://mercurial-scm.org/"> |
|
142 | <a href="https://mercurial-scm.org/"> | |
143 | <img src="/static/hglogo.png" alt="mercurial" /></a> |
|
143 | <img src="/static/hglogo.png" alt="mercurial" /></a> | |
144 | </div> |
|
144 | </div> | |
145 | <ul> |
|
145 | <ul> | |
146 | <li class="active">log</li> |
|
146 | <li class="active">log</li> | |
147 | <li><a href="/graph/tip">graph</a></li> |
|
147 | <li><a href="/graph/tip">graph</a></li> | |
148 | <li><a href="/tags">tags</a></li> |
|
148 | <li><a href="/tags">tags</a></li> | |
149 | <li><a href="/bookmarks">bookmarks</a></li> |
|
149 | <li><a href="/bookmarks">bookmarks</a></li> | |
150 | <li><a href="/branches">branches</a></li> |
|
150 | <li><a href="/branches">branches</a></li> | |
151 | </ul> |
|
151 | </ul> | |
152 | <ul> |
|
152 | <ul> | |
153 | <li><a href="/rev/tip">changeset</a></li> |
|
153 | <li><a href="/rev/tip">changeset</a></li> | |
154 | <li><a href="/file/tip">browse</a></li> |
|
154 | <li><a href="/file/tip">browse</a></li> | |
155 | </ul> |
|
155 | </ul> | |
156 | <ul> |
|
156 | <ul> | |
157 |
|
157 | |||
158 | </ul> |
|
158 | </ul> | |
159 | <ul> |
|
159 | <ul> | |
160 | <li><a href="/help">help</a></li> |
|
160 | <li><a href="/help">help</a></li> | |
161 | </ul> |
|
161 | </ul> | |
162 | <div class="atom-logo"> |
|
162 | <div class="atom-logo"> | |
163 | <a href="/atom-log" title="subscribe to atom feed"> |
|
163 | <a href="/atom-log" title="subscribe to atom feed"> | |
164 | <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed" /> |
|
164 | <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed" /> | |
165 | </a> |
|
165 | </a> | |
166 | </div> |
|
166 | </div> | |
167 | </div> |
|
167 | </div> | |
168 |
|
168 | |||
169 | <div class="main"> |
|
169 | <div class="main"> | |
170 | <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> |
|
170 | <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> | |
171 | <h3>log</h3> |
|
171 | <h3>log</h3> | |
172 |
|
172 | |||
173 |
|
173 | |||
174 | <form class="search" action="/log"> |
|
174 | <form class="search" action="/log"> | |
175 |
|
175 | |||
176 | <p><input name="rev" id="search1" type="text" size="30" value="" /></p> |
|
176 | <p><input name="rev" id="search1" type="text" size="30" value="" /></p> | |
177 | <div id="hint">Find changesets by keywords (author, files, the commit message), revision |
|
177 | <div id="hint">Find changesets by keywords (author, files, the commit message), revision | |
178 | number or hash, or <a href="/help/revsets">revset expression</a>.</div> |
|
178 | number or hash, or <a href="/help/revsets">revset expression</a>.</div> | |
179 | </form> |
|
179 | </form> | |
180 |
|
180 | |||
181 | <div class="navigate"> |
|
181 | <div class="navigate"> | |
182 | <a href="/shortlog/tip?revcount=5">less</a> |
|
182 | <a href="/shortlog/tip?revcount=5">less</a> | |
183 | <a href="/shortlog/tip?revcount=20">more</a> |
|
183 | <a href="/shortlog/tip?revcount=20">more</a> | |
184 | | rev -1: |
|
184 | | rev -1: | |
185 | </div> |
|
185 | </div> | |
186 |
|
186 | |||
187 | <table class="bigtable"> |
|
187 | <table class="bigtable"> | |
188 | <thead> |
|
188 | <thead> | |
189 | <tr> |
|
189 | <tr> | |
190 | <th class="age">age</th> |
|
190 | <th class="age">age</th> | |
191 | <th class="author">author</th> |
|
191 | <th class="author">author</th> | |
192 | <th class="description">description</th> |
|
192 | <th class="description">description</th> | |
193 | </tr> |
|
193 | </tr> | |
194 | </thead> |
|
194 | </thead> | |
195 | <tbody class="stripes2"> |
|
195 | <tbody class="stripes2"> | |
196 |
|
196 | |||
197 | </tbody> |
|
197 | </tbody> | |
198 | </table> |
|
198 | </table> | |
199 |
|
199 | |||
200 | <div class="navigate"> |
|
200 | <div class="navigate"> | |
201 | <a href="/shortlog/tip?revcount=5">less</a> |
|
201 | <a href="/shortlog/tip?revcount=5">less</a> | |
202 | <a href="/shortlog/tip?revcount=20">more</a> |
|
202 | <a href="/shortlog/tip?revcount=20">more</a> | |
203 | | rev -1: |
|
203 | | rev -1: | |
204 | </div> |
|
204 | </div> | |
205 |
|
205 | |||
206 | <script type="text/javascript"> |
|
206 | <script type="text/javascript"> | |
207 | ajaxScrollInit( |
|
207 | ajaxScrollInit( | |
208 | '/shortlog/%next%', |
|
208 | '/shortlog/%next%', | |
209 | '', <!-- NEXTHASH |
|
209 | '', <!-- NEXTHASH | |
210 | function (htmlText) { |
|
210 | function (htmlText) { | |
211 | var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/); |
|
211 | var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/); | |
212 | return m ? m[1] : null; |
|
212 | return m ? m[1] : null; | |
213 | }, |
|
213 | }, | |
214 | '.bigtable > tbody', |
|
214 | '.bigtable > tbody', | |
215 | '<tr class="%class%">\ |
|
215 | '<tr class="%class%">\ | |
216 | <td colspan="3" style="text-align: center;">%text%</td>\ |
|
216 | <td colspan="3" style="text-align: center;">%text%</td>\ | |
217 | </tr>' |
|
217 | </tr>' | |
218 | ); |
|
218 | ); | |
219 | </script> |
|
219 | </script> | |
220 |
|
220 | |||
221 | </div> |
|
221 | </div> | |
222 | </div> |
|
222 | </div> | |
223 |
|
223 | |||
224 |
|
224 | |||
225 |
|
225 | |||
226 | </body> |
|
226 | </body> | |
227 | </html> |
|
227 | </html> | |
228 |
|
228 | |||
229 | $ (get-with-headers.py localhost:$HGPORT 'graph') |
|
229 | $ (get-with-headers.py localhost:$HGPORT 'graph') | |
230 | 200 Script output follows |
|
230 | 200 Script output follows | |
231 |
|
231 | |||
232 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
|
232 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |
233 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> |
|
233 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> | |
234 | <head> |
|
234 | <head> | |
235 | <link rel="icon" href="/static/hgicon.png" type="image/png" /> |
|
235 | <link rel="icon" href="/static/hgicon.png" type="image/png" /> | |
236 | <meta name="robots" content="index, nofollow" /> |
|
236 | <meta name="robots" content="index, nofollow" /> | |
237 | <link rel="stylesheet" href="/static/style-paper.css" type="text/css" /> |
|
237 | <link rel="stylesheet" href="/static/style-paper.css" type="text/css" /> | |
238 | <script type="text/javascript" src="/static/mercurial.js"></script> |
|
238 | <script type="text/javascript" src="/static/mercurial.js"></script> | |
239 |
|
239 | |||
240 | <title>test: revision graph</title> |
|
240 | <title>test: revision graph</title> | |
241 | <link rel="alternate" type="application/atom+xml" |
|
241 | <link rel="alternate" type="application/atom+xml" | |
242 | href="/atom-log" title="Atom feed for test: log" /> |
|
242 | href="/atom-log" title="Atom feed for test: log" /> | |
243 | <link rel="alternate" type="application/rss+xml" |
|
243 | <link rel="alternate" type="application/rss+xml" | |
244 | href="/rss-log" title="RSS feed for test: log" /> |
|
244 | href="/rss-log" title="RSS feed for test: log" /> | |
245 | </head> |
|
245 | </head> | |
246 | <body> |
|
246 | <body> | |
247 |
|
247 | |||
248 | <div class="container"> |
|
248 | <div class="container"> | |
249 | <div class="menu"> |
|
249 | <div class="menu"> | |
250 | <div class="logo"> |
|
250 | <div class="logo"> | |
251 | <a href="https://mercurial-scm.org/"> |
|
251 | <a href="https://mercurial-scm.org/"> | |
252 | <img src="/static/hglogo.png" alt="mercurial" /></a> |
|
252 | <img src="/static/hglogo.png" alt="mercurial" /></a> | |
253 | </div> |
|
253 | </div> | |
254 | <ul> |
|
254 | <ul> | |
255 | <li><a href="/shortlog/tip">log</a></li> |
|
255 | <li><a href="/shortlog/tip">log</a></li> | |
256 | <li class="active">graph</li> |
|
256 | <li class="active">graph</li> | |
257 | <li><a href="/tags">tags</a></li> |
|
257 | <li><a href="/tags">tags</a></li> | |
258 | <li><a href="/bookmarks">bookmarks</a></li> |
|
258 | <li><a href="/bookmarks">bookmarks</a></li> | |
259 | <li><a href="/branches">branches</a></li> |
|
259 | <li><a href="/branches">branches</a></li> | |
260 | </ul> |
|
260 | </ul> | |
261 | <ul> |
|
261 | <ul> | |
262 | <li><a href="/rev/tip">changeset</a></li> |
|
262 | <li><a href="/rev/tip">changeset</a></li> | |
263 | <li><a href="/file/tip">browse</a></li> |
|
263 | <li><a href="/file/tip">browse</a></li> | |
264 | </ul> |
|
264 | </ul> | |
265 | <ul> |
|
265 | <ul> | |
|
266 | ||||
|
267 | </ul> | |||
|
268 | <ul> | |||
266 | <li><a href="/help">help</a></li> |
|
269 | <li><a href="/help">help</a></li> | |
267 | </ul> |
|
270 | </ul> | |
268 | <div class="atom-logo"> |
|
271 | <div class="atom-logo"> | |
269 | <a href="/atom-log" title="subscribe to atom feed"> |
|
272 | <a href="/atom-log" title="subscribe to atom feed"> | |
270 | <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed" /> |
|
273 | <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed" /> | |
271 | </a> |
|
274 | </a> | |
272 | </div> |
|
275 | </div> | |
273 | </div> |
|
276 | </div> | |
274 |
|
277 | |||
275 | <div class="main"> |
|
278 | <div class="main"> | |
276 | <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> |
|
279 | <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> | |
277 | <h3>graph</h3> |
|
280 | <h3>graph</h3> | |
278 |
|
281 | |||
279 |
|
282 | |||
280 | <form class="search" action="/log"> |
|
283 | <form class="search" action="/log"> | |
281 |
|
284 | |||
282 | <p><input name="rev" id="search1" type="text" size="30" value="" /></p> |
|
285 | <p><input name="rev" id="search1" type="text" size="30" value="" /></p> | |
283 | <div id="hint">Find changesets by keywords (author, files, the commit message), revision |
|
286 | <div id="hint">Find changesets by keywords (author, files, the commit message), revision | |
284 | number or hash, or <a href="/help/revsets">revset expression</a>.</div> |
|
287 | number or hash, or <a href="/help/revsets">revset expression</a>.</div> | |
285 | </form> |
|
288 | </form> | |
286 |
|
289 | |||
287 | <div class="navigate"> |
|
290 | <div class="navigate"> | |
288 | <a href="/graph/tip?revcount=30">less</a> |
|
291 | <a href="/graph/tip?revcount=30">less</a> | |
289 | <a href="/graph/tip?revcount=120">more</a> |
|
292 | <a href="/graph/tip?revcount=120">more</a> | |
290 | | rev -1: |
|
293 | | rev -1: | |
291 | </div> |
|
294 | </div> | |
292 |
|
295 | |||
293 | <noscript><p>The revision graph only works with JavaScript-enabled browsers.</p></noscript> |
|
296 | <noscript><p>The revision graph only works with JavaScript-enabled browsers.</p></noscript> | |
294 |
|
297 | |||
295 | <div id="wrapper"> |
|
298 | <div id="wrapper"> | |
296 | <canvas id="graph"></canvas> |
|
299 | <canvas id="graph"></canvas> | |
297 | <ul id="graphnodes" class="stripes2"></ul> |
|
300 | <ul id="graphnodes" class="stripes2"></ul> | |
298 | </div> |
|
301 | </div> | |
299 |
|
302 | |||
300 | <script type="text/javascript"> |
|
303 | <script type="text/javascript"> | |
301 | var data = []; |
|
304 | var data = []; | |
302 | var graph = new Graph(); |
|
305 | var graph = new Graph(); | |
303 | graph.scale(39); |
|
306 | graph.scale(39); | |
304 | graph.render(data); |
|
307 | graph.render(data); | |
305 | </script> |
|
308 | </script> | |
306 |
|
309 | |||
307 | <div class="navigate"> |
|
310 | <div class="navigate"> | |
308 | <a href="/graph/tip?revcount=30">less</a> |
|
311 | <a href="/graph/tip?revcount=30">less</a> | |
309 | <a href="/graph/tip?revcount=120">more</a> |
|
312 | <a href="/graph/tip?revcount=120">more</a> | |
310 | | rev -1: |
|
313 | | rev -1: | |
311 | </div> |
|
314 | </div> | |
312 |
|
315 | |||
313 | <script type="text/javascript"> |
|
316 | <script type="text/javascript"> | |
314 | ajaxScrollInit( |
|
317 | ajaxScrollInit( | |
315 | '/graph/%next%?graphtop=0000000000000000000000000000000000000000', |
|
318 | '/graph/%next%?graphtop=0000000000000000000000000000000000000000', | |
316 | '', <!-- NEXTHASH |
|
319 | '', <!-- NEXTHASH | |
317 | function (htmlText) { |
|
320 | function (htmlText) { | |
318 | var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/); |
|
321 | var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/); | |
319 | return m ? m[1] : null; |
|
322 | return m ? m[1] : null; | |
320 | }, |
|
323 | }, | |
321 | '#wrapper', |
|
324 | '#wrapper', | |
322 | '<div class="%class%" style="text-align: center;">%text%</div>', |
|
325 | '<div class="%class%" style="text-align: center;">%text%</div>', | |
323 | 'graph' |
|
326 | 'graph' | |
324 | ); |
|
327 | ); | |
325 | </script> |
|
328 | </script> | |
326 |
|
329 | |||
327 | </div> |
|
330 | </div> | |
328 | </div> |
|
331 | </div> | |
329 |
|
332 | |||
330 |
|
333 | |||
331 |
|
334 | |||
332 | </body> |
|
335 | </body> | |
333 | </html> |
|
336 | </html> | |
334 |
|
337 | |||
335 | $ (get-with-headers.py localhost:$HGPORT 'file') |
|
338 | $ (get-with-headers.py localhost:$HGPORT 'file') | |
336 | 200 Script output follows |
|
339 | 200 Script output follows | |
337 |
|
340 | |||
338 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
|
341 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |
339 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> |
|
342 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> | |
340 | <head> |
|
343 | <head> | |
341 | <link rel="icon" href="/static/hgicon.png" type="image/png" /> |
|
344 | <link rel="icon" href="/static/hgicon.png" type="image/png" /> | |
342 | <meta name="robots" content="index, nofollow" /> |
|
345 | <meta name="robots" content="index, nofollow" /> | |
343 | <link rel="stylesheet" href="/static/style-paper.css" type="text/css" /> |
|
346 | <link rel="stylesheet" href="/static/style-paper.css" type="text/css" /> | |
344 | <script type="text/javascript" src="/static/mercurial.js"></script> |
|
347 | <script type="text/javascript" src="/static/mercurial.js"></script> | |
345 |
|
348 | |||
346 | <title>test: 000000000000 /</title> |
|
349 | <title>test: 000000000000 /</title> | |
347 | </head> |
|
350 | </head> | |
348 | <body> |
|
351 | <body> | |
349 |
|
352 | |||
350 | <div class="container"> |
|
353 | <div class="container"> | |
351 | <div class="menu"> |
|
354 | <div class="menu"> | |
352 | <div class="logo"> |
|
355 | <div class="logo"> | |
353 | <a href="https://mercurial-scm.org/"> |
|
356 | <a href="https://mercurial-scm.org/"> | |
354 | <img src="/static/hglogo.png" alt="mercurial" /></a> |
|
357 | <img src="/static/hglogo.png" alt="mercurial" /></a> | |
355 | </div> |
|
358 | </div> | |
356 | <ul> |
|
359 | <ul> | |
357 | <li><a href="/shortlog/tip">log</a></li> |
|
360 | <li><a href="/shortlog/tip">log</a></li> | |
358 | <li><a href="/graph/tip">graph</a></li> |
|
361 | <li><a href="/graph/tip">graph</a></li> | |
359 | <li><a href="/tags">tags</a></li> |
|
362 | <li><a href="/tags">tags</a></li> | |
360 | <li><a href="/bookmarks">bookmarks</a></li> |
|
363 | <li><a href="/bookmarks">bookmarks</a></li> | |
361 | <li><a href="/branches">branches</a></li> |
|
364 | <li><a href="/branches">branches</a></li> | |
362 | </ul> |
|
365 | </ul> | |
363 | <ul> |
|
366 | <ul> | |
364 | <li><a href="/rev/tip">changeset</a></li> |
|
367 | <li><a href="/rev/tip">changeset</a></li> | |
365 | <li class="active">browse</li> |
|
368 | <li class="active">browse</li> | |
366 | </ul> |
|
369 | </ul> | |
367 | <ul> |
|
370 | <ul> | |
368 |
|
371 | |||
369 | </ul> |
|
372 | </ul> | |
370 | <ul> |
|
373 | <ul> | |
371 | <li><a href="/help">help</a></li> |
|
374 | <li><a href="/help">help</a></li> | |
372 | </ul> |
|
375 | </ul> | |
373 | </div> |
|
376 | </div> | |
374 |
|
377 | |||
375 | <div class="main"> |
|
378 | <div class="main"> | |
376 | <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> |
|
379 | <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> | |
377 | <h3> |
|
380 | <h3> | |
378 | directory / @ -1:<a href="/rev/000000000000">000000000000</a> |
|
381 | directory / @ -1:<a href="/rev/000000000000">000000000000</a> | |
379 | <span class="tag">tip</span> |
|
382 | <span class="tag">tip</span> | |
380 | </h3> |
|
383 | </h3> | |
381 |
|
384 | |||
382 |
|
385 | |||
383 | <form class="search" action="/log"> |
|
386 | <form class="search" action="/log"> | |
384 |
|
387 | |||
385 | <p><input name="rev" id="search1" type="text" size="30" value="" /></p> |
|
388 | <p><input name="rev" id="search1" type="text" size="30" value="" /></p> | |
386 | <div id="hint">Find changesets by keywords (author, files, the commit message), revision |
|
389 | <div id="hint">Find changesets by keywords (author, files, the commit message), revision | |
387 | number or hash, or <a href="/help/revsets">revset expression</a>.</div> |
|
390 | number or hash, or <a href="/help/revsets">revset expression</a>.</div> | |
388 | </form> |
|
391 | </form> | |
389 |
|
392 | |||
390 | <table class="bigtable"> |
|
393 | <table class="bigtable"> | |
391 | <thead> |
|
394 | <thead> | |
392 | <tr> |
|
395 | <tr> | |
393 | <th class="name">name</th> |
|
396 | <th class="name">name</th> | |
394 | <th class="size">size</th> |
|
397 | <th class="size">size</th> | |
395 | <th class="permissions">permissions</th> |
|
398 | <th class="permissions">permissions</th> | |
396 | </tr> |
|
399 | </tr> | |
397 | </thead> |
|
400 | </thead> | |
398 | <tbody class="stripes2"> |
|
401 | <tbody class="stripes2"> | |
399 |
|
402 | |||
400 |
|
403 | |||
401 |
|
404 | |||
402 | </tbody> |
|
405 | </tbody> | |
403 | </table> |
|
406 | </table> | |
404 | </div> |
|
407 | </div> | |
405 | </div> |
|
408 | </div> | |
406 |
|
409 | |||
407 |
|
410 | |||
408 | </body> |
|
411 | </body> | |
409 | </html> |
|
412 | </html> | |
410 |
|
413 | |||
411 |
|
414 | |||
412 | $ (get-with-headers.py localhost:$HGPORT 'atom-bookmarks') |
|
415 | $ (get-with-headers.py localhost:$HGPORT 'atom-bookmarks') | |
413 | 200 Script output follows |
|
416 | 200 Script output follows | |
414 |
|
417 | |||
415 | <?xml version="1.0" encoding="ascii"?> |
|
418 | <?xml version="1.0" encoding="ascii"?> | |
416 | <feed xmlns="http://www.w3.org/2005/Atom"> |
|
419 | <feed xmlns="http://www.w3.org/2005/Atom"> | |
417 | <id>http://*:$HGPORT/</id> (glob) |
|
420 | <id>http://*:$HGPORT/</id> (glob) | |
418 | <link rel="self" href="http://*:$HGPORT/atom-bookmarks"/> (glob) |
|
421 | <link rel="self" href="http://*:$HGPORT/atom-bookmarks"/> (glob) | |
419 | <link rel="alternate" href="http://*:$HGPORT/bookmarks"/> (glob) |
|
422 | <link rel="alternate" href="http://*:$HGPORT/bookmarks"/> (glob) | |
420 | <title>test: bookmarks</title> |
|
423 | <title>test: bookmarks</title> | |
421 | <summary>test bookmark history</summary> |
|
424 | <summary>test bookmark history</summary> | |
422 | <author><name>Mercurial SCM</name></author> |
|
425 | <author><name>Mercurial SCM</name></author> | |
423 | <updated>1970-01-01T00:00:00+00:00</updated> |
|
426 | <updated>1970-01-01T00:00:00+00:00</updated> | |
424 |
|
427 | |||
425 |
|
428 | |||
426 | </feed> |
|
429 | </feed> | |
427 |
|
430 | |||
428 | $ cd .. |
|
431 | $ cd .. |
@@ -1,1104 +1,1110 b'' | |||||
1 | #require serve |
|
1 | #require serve | |
2 |
|
2 | |||
3 | Test symbolic revision usage in links produced by hgweb pages. There are |
|
3 | Test symbolic revision usage in links produced by hgweb pages. There are | |
4 | multiple issues related to this: |
|
4 | multiple issues related to this: | |
5 | - issue2296 |
|
5 | - issue2296 | |
6 | - issue2826 |
|
6 | - issue2826 | |
7 | - issue3594 |
|
7 | - issue3594 | |
8 | - issue3634 |
|
8 | - issue3634 | |
9 |
|
9 | |||
10 | Set up the repo |
|
10 | Set up the repo | |
11 |
|
11 | |||
12 | $ hg init test |
|
12 | $ hg init test | |
13 | $ cd test |
|
13 | $ cd test | |
14 | $ echo 0 > foo |
|
14 | $ echo 0 > foo | |
15 | $ mkdir dir |
|
15 | $ mkdir dir | |
16 | $ echo 0 > dir/bar |
|
16 | $ echo 0 > dir/bar | |
17 | $ hg ci -Am 'first' |
|
17 | $ hg ci -Am 'first' | |
18 | adding dir/bar |
|
18 | adding dir/bar | |
19 | adding foo |
|
19 | adding foo | |
20 | $ echo 1 >> foo |
|
20 | $ echo 1 >> foo | |
21 | $ hg ci -m 'second' |
|
21 | $ hg ci -m 'second' | |
22 | $ echo 2 >> foo |
|
22 | $ echo 2 >> foo | |
23 | $ hg ci -m 'third' |
|
23 | $ hg ci -m 'third' | |
24 | $ hg bookmark -r1 xyzzy |
|
24 | $ hg bookmark -r1 xyzzy | |
25 |
|
25 | |||
26 | $ hg log -G --template '{rev}:{node|short} {tags} {bookmarks}\n' |
|
26 | $ hg log -G --template '{rev}:{node|short} {tags} {bookmarks}\n' | |
27 | @ 2:9d8c40cba617 tip |
|
27 | @ 2:9d8c40cba617 tip | |
28 | | |
|
28 | | | |
29 | o 1:a7c1559b7bba xyzzy |
|
29 | o 1:a7c1559b7bba xyzzy | |
30 | | |
|
30 | | | |
31 | o 0:43c799df6e75 |
|
31 | o 0:43c799df6e75 | |
32 |
|
32 | |||
33 | $ hg serve --config web.allow-archive=zip -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log |
|
33 | $ hg serve --config web.allow-archive=zip -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log | |
34 | $ cat hg.pid >> $DAEMON_PIDS |
|
34 | $ cat hg.pid >> $DAEMON_PIDS | |
35 |
|
35 | |||
36 | $ REVLINKS='href=[^>]+(rev=|/)(43c799df6e75|0|a7c1559b7bba|1|xyzzy|9d8c40cba617|2|tip|default)' |
|
36 | $ REVLINKS='href=[^>]+(rev=|/)(43c799df6e75|0|a7c1559b7bba|1|xyzzy|9d8c40cba617|2|tip|default)' | |
37 |
|
37 | |||
38 | (De)referencing symbolic revisions (paper) |
|
38 | (De)referencing symbolic revisions (paper) | |
39 |
|
39 | |||
40 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'shortlog?style=paper' | egrep $REVLINKS |
|
40 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'shortlog?style=paper' | egrep $REVLINKS | |
41 | <li><a href="/graph/tip?style=paper">graph</a></li> |
|
41 | <li><a href="/graph/tip?style=paper">graph</a></li> | |
42 | <li><a href="/rev/tip?style=paper">changeset</a></li> |
|
42 | <li><a href="/rev/tip?style=paper">changeset</a></li> | |
43 | <li><a href="/file/tip?style=paper">browse</a></li> |
|
43 | <li><a href="/file/tip?style=paper">browse</a></li> | |
44 | <a href="/archive/tip.zip">zip</a> |
|
44 | <a href="/archive/tip.zip">zip</a> | |
45 | <a href="/shortlog/tip?revcount=30&style=paper">less</a> |
|
45 | <a href="/shortlog/tip?revcount=30&style=paper">less</a> | |
46 | <a href="/shortlog/tip?revcount=120&style=paper">more</a> |
|
46 | <a href="/shortlog/tip?revcount=120&style=paper">more</a> | |
47 | | rev 2: <a href="/shortlog/43c799df6e75?style=paper">(0)</a> <a href="/shortlog/tip?style=paper">tip</a> |
|
47 | | rev 2: <a href="/shortlog/43c799df6e75?style=paper">(0)</a> <a href="/shortlog/tip?style=paper">tip</a> | |
48 | <a href="/rev/9d8c40cba617?style=paper">third</a> |
|
48 | <a href="/rev/9d8c40cba617?style=paper">third</a> | |
49 | <a href="/rev/a7c1559b7bba?style=paper">second</a> |
|
49 | <a href="/rev/a7c1559b7bba?style=paper">second</a> | |
50 | <a href="/rev/43c799df6e75?style=paper">first</a> |
|
50 | <a href="/rev/43c799df6e75?style=paper">first</a> | |
51 | <a href="/shortlog/tip?revcount=30&style=paper">less</a> |
|
51 | <a href="/shortlog/tip?revcount=30&style=paper">less</a> | |
52 | <a href="/shortlog/tip?revcount=120&style=paper">more</a> |
|
52 | <a href="/shortlog/tip?revcount=120&style=paper">more</a> | |
53 | | rev 2: <a href="/shortlog/43c799df6e75?style=paper">(0)</a> <a href="/shortlog/tip?style=paper">tip</a> |
|
53 | | rev 2: <a href="/shortlog/43c799df6e75?style=paper">(0)</a> <a href="/shortlog/tip?style=paper">tip</a> | |
54 |
|
54 | |||
55 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'graph?style=paper' | egrep $REVLINKS |
|
55 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'graph?style=paper' | egrep $REVLINKS | |
56 | <li><a href="/shortlog/tip?style=paper">log</a></li> |
|
56 | <li><a href="/shortlog/tip?style=paper">log</a></li> | |
57 | <li><a href="/rev/tip?style=paper">changeset</a></li> |
|
57 | <li><a href="/rev/tip?style=paper">changeset</a></li> | |
58 | <li><a href="/file/tip?style=paper">browse</a></li> |
|
58 | <li><a href="/file/tip?style=paper">browse</a></li> | |
|
59 | <a href="/archive/tip.zip">zip</a> | |||
59 | <a href="/graph/tip?revcount=30&style=paper">less</a> |
|
60 | <a href="/graph/tip?revcount=30&style=paper">less</a> | |
60 | <a href="/graph/tip?revcount=120&style=paper">more</a> |
|
61 | <a href="/graph/tip?revcount=120&style=paper">more</a> | |
61 | | rev 2: <a href="/graph/43c799df6e75?style=paper">(0)</a> <a href="/graph/tip?style=paper">tip</a> |
|
62 | | rev 2: <a href="/graph/43c799df6e75?style=paper">(0)</a> <a href="/graph/tip?style=paper">tip</a> | |
62 | <a href="/rev/9d8c40cba617?style=paper">third</a> |
|
63 | <a href="/rev/9d8c40cba617?style=paper">third</a> | |
63 | <a href="/rev/a7c1559b7bba?style=paper">second</a> |
|
64 | <a href="/rev/a7c1559b7bba?style=paper">second</a> | |
64 | <a href="/rev/43c799df6e75?style=paper">first</a> |
|
65 | <a href="/rev/43c799df6e75?style=paper">first</a> | |
65 | <a href="/graph/tip?revcount=30&style=paper">less</a> |
|
66 | <a href="/graph/tip?revcount=30&style=paper">less</a> | |
66 | <a href="/graph/tip?revcount=120&style=paper">more</a> |
|
67 | <a href="/graph/tip?revcount=120&style=paper">more</a> | |
67 | | rev 2: <a href="/graph/43c799df6e75?style=paper">(0)</a> <a href="/graph/tip?style=paper">tip</a> |
|
68 | | rev 2: <a href="/graph/43c799df6e75?style=paper">(0)</a> <a href="/graph/tip?style=paper">tip</a> | |
68 |
|
69 | |||
69 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'file?style=paper' | egrep $REVLINKS |
|
70 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'file?style=paper' | egrep $REVLINKS | |
70 | <li><a href="/shortlog/tip?style=paper">log</a></li> |
|
71 | <li><a href="/shortlog/tip?style=paper">log</a></li> | |
71 | <li><a href="/graph/tip?style=paper">graph</a></li> |
|
72 | <li><a href="/graph/tip?style=paper">graph</a></li> | |
72 | <li><a href="/rev/tip?style=paper">changeset</a></li> |
|
73 | <li><a href="/rev/tip?style=paper">changeset</a></li> | |
73 | <a href="/archive/tip.zip">zip</a> |
|
74 | <a href="/archive/tip.zip">zip</a> | |
74 | directory / @ 2:<a href="/rev/9d8c40cba617?style=paper">9d8c40cba617</a> |
|
75 | directory / @ 2:<a href="/rev/9d8c40cba617?style=paper">9d8c40cba617</a> | |
75 | <a href="/file/tip/dir?style=paper"> |
|
76 | <a href="/file/tip/dir?style=paper"> | |
76 | <a href="/file/tip/dir/?style=paper"> |
|
77 | <a href="/file/tip/dir/?style=paper"> | |
77 | <a href="/file/tip/foo?style=paper"> |
|
78 | <a href="/file/tip/foo?style=paper"> | |
78 |
|
79 | |||
79 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'branches?style=paper' | egrep $REVLINKS |
|
80 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'branches?style=paper' | egrep $REVLINKS | |
80 | <a href="/shortlog/default?style=paper" class="open"> |
|
81 | <a href="/shortlog/default?style=paper" class="open"> | |
81 | <a href="/shortlog/9d8c40cba617?style=paper" class="open"> |
|
82 | <a href="/shortlog/9d8c40cba617?style=paper" class="open"> | |
82 |
|
83 | |||
83 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'tags?style=paper' | egrep $REVLINKS |
|
84 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'tags?style=paper' | egrep $REVLINKS | |
84 | <a href="/rev/tip?style=paper"> |
|
85 | <a href="/rev/tip?style=paper"> | |
85 | <a href="/rev/9d8c40cba617?style=paper"> |
|
86 | <a href="/rev/9d8c40cba617?style=paper"> | |
86 |
|
87 | |||
87 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'bookmarks?style=paper' | egrep $REVLINKS |
|
88 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'bookmarks?style=paper' | egrep $REVLINKS | |
88 | <a href="/rev/xyzzy?style=paper"> |
|
89 | <a href="/rev/xyzzy?style=paper"> | |
89 | <a href="/rev/a7c1559b7bba?style=paper"> |
|
90 | <a href="/rev/a7c1559b7bba?style=paper"> | |
90 |
|
91 | |||
91 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'shortlog?style=paper&rev=all()' | egrep $REVLINKS |
|
92 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'shortlog?style=paper&rev=all()' | egrep $REVLINKS | |
92 | <a href="/rev/9d8c40cba617?style=paper">third</a> |
|
93 | <a href="/rev/9d8c40cba617?style=paper">third</a> | |
93 | <a href="/rev/a7c1559b7bba?style=paper">second</a> |
|
94 | <a href="/rev/a7c1559b7bba?style=paper">second</a> | |
94 | <a href="/rev/43c799df6e75?style=paper">first</a> |
|
95 | <a href="/rev/43c799df6e75?style=paper">first</a> | |
95 |
|
96 | |||
96 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'rev/xyzzy?style=paper' | egrep $REVLINKS |
|
97 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'rev/xyzzy?style=paper' | egrep $REVLINKS | |
97 | <li><a href="/shortlog/xyzzy?style=paper">log</a></li> |
|
98 | <li><a href="/shortlog/xyzzy?style=paper">log</a></li> | |
98 | <li><a href="/graph/xyzzy?style=paper">graph</a></li> |
|
99 | <li><a href="/graph/xyzzy?style=paper">graph</a></li> | |
99 | <li><a href="/raw-rev/xyzzy?style=paper">raw</a></li> |
|
100 | <li><a href="/raw-rev/xyzzy?style=paper">raw</a></li> | |
100 | <li><a href="/file/xyzzy?style=paper">browse</a></li> |
|
101 | <li><a href="/file/xyzzy?style=paper">browse</a></li> | |
101 | <a href="/archive/xyzzy.zip">zip</a> |
|
102 | <a href="/archive/xyzzy.zip">zip</a> | |
102 | changeset 1:<a href="/rev/a7c1559b7bba?style=paper">a7c1559b7bba</a> |
|
103 | changeset 1:<a href="/rev/a7c1559b7bba?style=paper">a7c1559b7bba</a> | |
103 | <td class="author"><a href="/rev/43c799df6e75?style=paper">43c799df6e75</a> </td> |
|
104 | <td class="author"><a href="/rev/43c799df6e75?style=paper">43c799df6e75</a> </td> | |
104 | <td class="author"> <a href="/rev/9d8c40cba617?style=paper">9d8c40cba617</a></td> |
|
105 | <td class="author"> <a href="/rev/9d8c40cba617?style=paper">9d8c40cba617</a></td> | |
105 | <td class="files"><a href="/file/a7c1559b7bba/foo?style=paper">foo</a> </td> |
|
106 | <td class="files"><a href="/file/a7c1559b7bba/foo?style=paper">foo</a> </td> | |
106 |
|
107 | |||
107 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'shortlog/xyzzy?style=paper' | egrep $REVLINKS |
|
108 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'shortlog/xyzzy?style=paper' | egrep $REVLINKS | |
108 | <li><a href="/graph/xyzzy?style=paper">graph</a></li> |
|
109 | <li><a href="/graph/xyzzy?style=paper">graph</a></li> | |
109 | <li><a href="/rev/xyzzy?style=paper">changeset</a></li> |
|
110 | <li><a href="/rev/xyzzy?style=paper">changeset</a></li> | |
110 | <li><a href="/file/xyzzy?style=paper">browse</a></li> |
|
111 | <li><a href="/file/xyzzy?style=paper">browse</a></li> | |
111 | <a href="/archive/xyzzy.zip">zip</a> |
|
112 | <a href="/archive/xyzzy.zip">zip</a> | |
112 | <a href="/shortlog/xyzzy?revcount=30&style=paper">less</a> |
|
113 | <a href="/shortlog/xyzzy?revcount=30&style=paper">less</a> | |
113 | <a href="/shortlog/xyzzy?revcount=120&style=paper">more</a> |
|
114 | <a href="/shortlog/xyzzy?revcount=120&style=paper">more</a> | |
114 | | rev 1: <a href="/shortlog/43c799df6e75?style=paper">(0)</a> <a href="/shortlog/tip?style=paper">tip</a> |
|
115 | | rev 1: <a href="/shortlog/43c799df6e75?style=paper">(0)</a> <a href="/shortlog/tip?style=paper">tip</a> | |
115 | <a href="/rev/a7c1559b7bba?style=paper">second</a> |
|
116 | <a href="/rev/a7c1559b7bba?style=paper">second</a> | |
116 | <a href="/rev/43c799df6e75?style=paper">first</a> |
|
117 | <a href="/rev/43c799df6e75?style=paper">first</a> | |
117 | <a href="/shortlog/xyzzy?revcount=30&style=paper">less</a> |
|
118 | <a href="/shortlog/xyzzy?revcount=30&style=paper">less</a> | |
118 | <a href="/shortlog/xyzzy?revcount=120&style=paper">more</a> |
|
119 | <a href="/shortlog/xyzzy?revcount=120&style=paper">more</a> | |
119 | | rev 1: <a href="/shortlog/43c799df6e75?style=paper">(0)</a> <a href="/shortlog/tip?style=paper">tip</a> |
|
120 | | rev 1: <a href="/shortlog/43c799df6e75?style=paper">(0)</a> <a href="/shortlog/tip?style=paper">tip</a> | |
120 |
|
121 | |||
121 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'graph/xyzzy?style=paper' | egrep $REVLINKS |
|
122 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'graph/xyzzy?style=paper' | egrep $REVLINKS | |
122 | <li><a href="/shortlog/xyzzy?style=paper">log</a></li> |
|
123 | <li><a href="/shortlog/xyzzy?style=paper">log</a></li> | |
123 | <li><a href="/rev/xyzzy?style=paper">changeset</a></li> |
|
124 | <li><a href="/rev/xyzzy?style=paper">changeset</a></li> | |
124 | <li><a href="/file/xyzzy?style=paper">browse</a></li> |
|
125 | <li><a href="/file/xyzzy?style=paper">browse</a></li> | |
|
126 | <a href="/archive/xyzzy.zip">zip</a> | |||
125 | <a href="/graph/xyzzy?revcount=30&style=paper">less</a> |
|
127 | <a href="/graph/xyzzy?revcount=30&style=paper">less</a> | |
126 | <a href="/graph/xyzzy?revcount=120&style=paper">more</a> |
|
128 | <a href="/graph/xyzzy?revcount=120&style=paper">more</a> | |
127 | | rev 1: <a href="/graph/43c799df6e75?style=paper">(0)</a> <a href="/graph/tip?style=paper">tip</a> |
|
129 | | rev 1: <a href="/graph/43c799df6e75?style=paper">(0)</a> <a href="/graph/tip?style=paper">tip</a> | |
128 | <a href="/rev/a7c1559b7bba?style=paper">second</a> |
|
130 | <a href="/rev/a7c1559b7bba?style=paper">second</a> | |
129 | <a href="/rev/43c799df6e75?style=paper">first</a> |
|
131 | <a href="/rev/43c799df6e75?style=paper">first</a> | |
130 | <a href="/graph/xyzzy?revcount=30&style=paper">less</a> |
|
132 | <a href="/graph/xyzzy?revcount=30&style=paper">less</a> | |
131 | <a href="/graph/xyzzy?revcount=120&style=paper">more</a> |
|
133 | <a href="/graph/xyzzy?revcount=120&style=paper">more</a> | |
132 | | rev 1: <a href="/graph/43c799df6e75?style=paper">(0)</a> <a href="/graph/tip?style=paper">tip</a> |
|
134 | | rev 1: <a href="/graph/43c799df6e75?style=paper">(0)</a> <a href="/graph/tip?style=paper">tip</a> | |
133 |
|
135 | |||
134 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'file/xyzzy?style=paper' | egrep $REVLINKS |
|
136 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'file/xyzzy?style=paper' | egrep $REVLINKS | |
135 | <li><a href="/shortlog/xyzzy?style=paper">log</a></li> |
|
137 | <li><a href="/shortlog/xyzzy?style=paper">log</a></li> | |
136 | <li><a href="/graph/xyzzy?style=paper">graph</a></li> |
|
138 | <li><a href="/graph/xyzzy?style=paper">graph</a></li> | |
137 | <li><a href="/rev/xyzzy?style=paper">changeset</a></li> |
|
139 | <li><a href="/rev/xyzzy?style=paper">changeset</a></li> | |
138 | <a href="/archive/xyzzy.zip">zip</a> |
|
140 | <a href="/archive/xyzzy.zip">zip</a> | |
139 | directory / @ 1:<a href="/rev/a7c1559b7bba?style=paper">a7c1559b7bba</a> |
|
141 | directory / @ 1:<a href="/rev/a7c1559b7bba?style=paper">a7c1559b7bba</a> | |
140 | <a href="/file/xyzzy/dir?style=paper"> |
|
142 | <a href="/file/xyzzy/dir?style=paper"> | |
141 | <a href="/file/xyzzy/dir/?style=paper"> |
|
143 | <a href="/file/xyzzy/dir/?style=paper"> | |
142 | <a href="/file/xyzzy/foo?style=paper"> |
|
144 | <a href="/file/xyzzy/foo?style=paper"> | |
143 |
|
145 | |||
144 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'file/xyzzy/foo?style=paper' | egrep $REVLINKS |
|
146 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'file/xyzzy/foo?style=paper' | egrep $REVLINKS | |
145 | <li><a href="/shortlog/xyzzy?style=paper">log</a></li> |
|
147 | <li><a href="/shortlog/xyzzy?style=paper">log</a></li> | |
146 | <li><a href="/graph/xyzzy?style=paper">graph</a></li> |
|
148 | <li><a href="/graph/xyzzy?style=paper">graph</a></li> | |
147 | <li><a href="/rev/xyzzy?style=paper">changeset</a></li> |
|
149 | <li><a href="/rev/xyzzy?style=paper">changeset</a></li> | |
148 | <li><a href="/file/xyzzy/?style=paper">browse</a></li> |
|
150 | <li><a href="/file/xyzzy/?style=paper">browse</a></li> | |
149 | <li><a href="/file/tip/foo?style=paper">latest</a></li> |
|
151 | <li><a href="/file/tip/foo?style=paper">latest</a></li> | |
150 | <li><a href="/diff/xyzzy/foo?style=paper">diff</a></li> |
|
152 | <li><a href="/diff/xyzzy/foo?style=paper">diff</a></li> | |
151 | <li><a href="/comparison/xyzzy/foo?style=paper">comparison</a></li> |
|
153 | <li><a href="/comparison/xyzzy/foo?style=paper">comparison</a></li> | |
152 | <li><a href="/annotate/xyzzy/foo?style=paper">annotate</a></li> |
|
154 | <li><a href="/annotate/xyzzy/foo?style=paper">annotate</a></li> | |
153 | <li><a href="/log/xyzzy/foo?style=paper">file log</a></li> |
|
155 | <li><a href="/log/xyzzy/foo?style=paper">file log</a></li> | |
154 | <li><a href="/raw-file/xyzzy/foo">raw</a></li> |
|
156 | <li><a href="/raw-file/xyzzy/foo">raw</a></li> | |
155 | view foo @ 1:<a href="/rev/a7c1559b7bba?style=paper">a7c1559b7bba</a> |
|
157 | view foo @ 1:<a href="/rev/a7c1559b7bba?style=paper">a7c1559b7bba</a> | |
156 | <td class="author"><a href="/file/43c799df6e75/foo?style=paper">43c799df6e75</a> </td> |
|
158 | <td class="author"><a href="/file/43c799df6e75/foo?style=paper">43c799df6e75</a> </td> | |
157 | <td class="author"><a href="/file/9d8c40cba617/foo?style=paper">9d8c40cba617</a> </td> |
|
159 | <td class="author"><a href="/file/9d8c40cba617/foo?style=paper">9d8c40cba617</a> </td> | |
158 |
|
160 | |||
159 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'log/xyzzy/foo?style=paper' | egrep $REVLINKS |
|
161 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'log/xyzzy/foo?style=paper' | egrep $REVLINKS | |
160 | href="/atom-log/tip/foo" title="Atom feed for test:foo" /> |
|
162 | href="/atom-log/tip/foo" title="Atom feed for test:foo" /> | |
161 | href="/rss-log/tip/foo" title="RSS feed for test:foo" /> |
|
163 | href="/rss-log/tip/foo" title="RSS feed for test:foo" /> | |
162 | <li><a href="/shortlog/xyzzy?style=paper">log</a></li> |
|
164 | <li><a href="/shortlog/xyzzy?style=paper">log</a></li> | |
163 | <li><a href="/graph/xyzzy?style=paper">graph</a></li> |
|
165 | <li><a href="/graph/xyzzy?style=paper">graph</a></li> | |
164 | <li><a href="/rev/xyzzy?style=paper">changeset</a></li> |
|
166 | <li><a href="/rev/xyzzy?style=paper">changeset</a></li> | |
165 | <li><a href="/file/xyzzy?style=paper">browse</a></li> |
|
167 | <li><a href="/file/xyzzy?style=paper">browse</a></li> | |
166 | <li><a href="/file/xyzzy/foo?style=paper">file</a></li> |
|
168 | <li><a href="/file/xyzzy/foo?style=paper">file</a></li> | |
167 | <li><a href="/diff/xyzzy/foo?style=paper">diff</a></li> |
|
169 | <li><a href="/diff/xyzzy/foo?style=paper">diff</a></li> | |
168 | <li><a href="/comparison/xyzzy/foo?style=paper">comparison</a></li> |
|
170 | <li><a href="/comparison/xyzzy/foo?style=paper">comparison</a></li> | |
169 | <li><a href="/annotate/xyzzy/foo?style=paper">annotate</a></li> |
|
171 | <li><a href="/annotate/xyzzy/foo?style=paper">annotate</a></li> | |
170 | <li><a href="/raw-file/xyzzy/foo">raw</a></li> |
|
172 | <li><a href="/raw-file/xyzzy/foo">raw</a></li> | |
171 | <a href="/atom-log/tip/foo" title="subscribe to atom feed"> |
|
173 | <a href="/atom-log/tip/foo" title="subscribe to atom feed"> | |
172 | log foo @ 1:<a href="/rev/a7c1559b7bba?style=paper">a7c1559b7bba</a> |
|
174 | log foo @ 1:<a href="/rev/a7c1559b7bba?style=paper">a7c1559b7bba</a> | |
173 | <a href="/log/xyzzy/foo?revcount=30&style=paper">less</a> |
|
175 | <a href="/log/xyzzy/foo?revcount=30&style=paper">less</a> | |
174 | <a href="/log/xyzzy/foo?revcount=120&style=paper">more</a> |
|
176 | <a href="/log/xyzzy/foo?revcount=120&style=paper">more</a> | |
175 | | <a href="/log/43c799df6e75/foo?style=paper">(0)</a> <a href="/log/tip/foo?style=paper">tip</a> </div> |
|
177 | | <a href="/log/43c799df6e75/foo?style=paper">(0)</a> <a href="/log/tip/foo?style=paper">tip</a> </div> | |
176 | <a href="/rev/a7c1559b7bba?style=paper">second</a> |
|
178 | <a href="/rev/a7c1559b7bba?style=paper">second</a> | |
177 | <a href="/rev/43c799df6e75?style=paper">first</a> |
|
179 | <a href="/rev/43c799df6e75?style=paper">first</a> | |
178 | <a href="/log/xyzzy/foo?revcount=30&style=paper">less</a> |
|
180 | <a href="/log/xyzzy/foo?revcount=30&style=paper">less</a> | |
179 | <a href="/log/xyzzy/foo?revcount=120&style=paper">more</a> |
|
181 | <a href="/log/xyzzy/foo?revcount=120&style=paper">more</a> | |
180 | | <a href="/log/43c799df6e75/foo?style=paper">(0)</a> <a href="/log/tip/foo?style=paper">tip</a> |
|
182 | | <a href="/log/43c799df6e75/foo?style=paper">(0)</a> <a href="/log/tip/foo?style=paper">tip</a> | |
181 |
|
183 | |||
182 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'annotate/xyzzy/foo?style=paper' | egrep $REVLINKS |
|
184 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'annotate/xyzzy/foo?style=paper' | egrep $REVLINKS | |
183 | <li><a href="/shortlog/xyzzy?style=paper">log</a></li> |
|
185 | <li><a href="/shortlog/xyzzy?style=paper">log</a></li> | |
184 | <li><a href="/graph/xyzzy?style=paper">graph</a></li> |
|
186 | <li><a href="/graph/xyzzy?style=paper">graph</a></li> | |
185 | <li><a href="/rev/xyzzy?style=paper">changeset</a></li> |
|
187 | <li><a href="/rev/xyzzy?style=paper">changeset</a></li> | |
186 | <li><a href="/file/xyzzy/?style=paper">browse</a></li> |
|
188 | <li><a href="/file/xyzzy/?style=paper">browse</a></li> | |
187 | <li><a href="/file/xyzzy/foo?style=paper">file</a></li> |
|
189 | <li><a href="/file/xyzzy/foo?style=paper">file</a></li> | |
188 | <li><a href="/file/tip/foo?style=paper">latest</a></li> |
|
190 | <li><a href="/file/tip/foo?style=paper">latest</a></li> | |
189 | <li><a href="/diff/xyzzy/foo?style=paper">diff</a></li> |
|
191 | <li><a href="/diff/xyzzy/foo?style=paper">diff</a></li> | |
190 | <li><a href="/comparison/xyzzy/foo?style=paper">comparison</a></li> |
|
192 | <li><a href="/comparison/xyzzy/foo?style=paper">comparison</a></li> | |
191 | <li><a href="/log/xyzzy/foo?style=paper">file log</a></li> |
|
193 | <li><a href="/log/xyzzy/foo?style=paper">file log</a></li> | |
192 | <li><a href="/raw-file/xyzzy/foo">raw</a></li> |
|
194 | <li><a href="/raw-file/xyzzy/foo">raw</a></li> | |
193 | annotate foo @ 1:<a href="/rev/a7c1559b7bba?style=paper">a7c1559b7bba</a> |
|
195 | annotate foo @ 1:<a href="/rev/a7c1559b7bba?style=paper">a7c1559b7bba</a> | |
194 | <td class="author"><a href="/file/43c799df6e75/foo?style=paper">43c799df6e75</a> </td> |
|
196 | <td class="author"><a href="/file/43c799df6e75/foo?style=paper">43c799df6e75</a> </td> | |
195 | <td class="author"><a href="/file/9d8c40cba617/foo?style=paper">9d8c40cba617</a> </td> |
|
197 | <td class="author"><a href="/file/9d8c40cba617/foo?style=paper">9d8c40cba617</a> </td> | |
196 | <a href="/annotate/43c799df6e75/foo?style=paper#l1"> |
|
198 | <a href="/annotate/43c799df6e75/foo?style=paper#l1"> | |
197 | <a href="/annotate/43c799df6e75/foo?style=paper#l1"> |
|
199 | <a href="/annotate/43c799df6e75/foo?style=paper#l1"> | |
198 | <a href="/diff/43c799df6e75/foo?style=paper">diff</a> |
|
200 | <a href="/diff/43c799df6e75/foo?style=paper">diff</a> | |
199 | <a href="/rev/43c799df6e75?style=paper">changeset</a> |
|
201 | <a href="/rev/43c799df6e75?style=paper">changeset</a> | |
200 | <a href="/annotate/a7c1559b7bba/foo?style=paper#l2"> |
|
202 | <a href="/annotate/a7c1559b7bba/foo?style=paper#l2"> | |
201 | <a href="/annotate/a7c1559b7bba/foo?style=paper#l2"> |
|
203 | <a href="/annotate/a7c1559b7bba/foo?style=paper#l2"> | |
202 | <a href="/annotate/43c799df6e75/foo?style=paper">0</a></div> |
|
204 | <a href="/annotate/43c799df6e75/foo?style=paper">0</a></div> | |
203 | <a href="/diff/a7c1559b7bba/foo?style=paper">diff</a> |
|
205 | <a href="/diff/a7c1559b7bba/foo?style=paper">diff</a> | |
204 | <a href="/rev/a7c1559b7bba?style=paper">changeset</a> |
|
206 | <a href="/rev/a7c1559b7bba?style=paper">changeset</a> | |
205 |
|
207 | |||
206 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'diff/xyzzy/foo?style=paper' | egrep $REVLINKS |
|
208 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'diff/xyzzy/foo?style=paper' | egrep $REVLINKS | |
207 | <li><a href="/shortlog/xyzzy?style=paper">log</a></li> |
|
209 | <li><a href="/shortlog/xyzzy?style=paper">log</a></li> | |
208 | <li><a href="/graph/xyzzy?style=paper">graph</a></li> |
|
210 | <li><a href="/graph/xyzzy?style=paper">graph</a></li> | |
209 | <li><a href="/rev/xyzzy?style=paper">changeset</a></li> |
|
211 | <li><a href="/rev/xyzzy?style=paper">changeset</a></li> | |
210 | <li><a href="/file/xyzzy?style=paper">browse</a></li> |
|
212 | <li><a href="/file/xyzzy?style=paper">browse</a></li> | |
211 | <li><a href="/file/xyzzy/foo?style=paper">file</a></li> |
|
213 | <li><a href="/file/xyzzy/foo?style=paper">file</a></li> | |
212 | <li><a href="/file/tip/foo?style=paper">latest</a></li> |
|
214 | <li><a href="/file/tip/foo?style=paper">latest</a></li> | |
213 | <li><a href="/comparison/xyzzy/foo?style=paper">comparison</a></li> |
|
215 | <li><a href="/comparison/xyzzy/foo?style=paper">comparison</a></li> | |
214 | <li><a href="/annotate/xyzzy/foo?style=paper">annotate</a></li> |
|
216 | <li><a href="/annotate/xyzzy/foo?style=paper">annotate</a></li> | |
215 | <li><a href="/log/xyzzy/foo?style=paper">file log</a></li> |
|
217 | <li><a href="/log/xyzzy/foo?style=paper">file log</a></li> | |
216 | <li><a href="/raw-file/xyzzy/foo">raw</a></li> |
|
218 | <li><a href="/raw-file/xyzzy/foo">raw</a></li> | |
217 | diff foo @ 1:<a href="/rev/a7c1559b7bba?style=paper">a7c1559b7bba</a> |
|
219 | diff foo @ 1:<a href="/rev/a7c1559b7bba?style=paper">a7c1559b7bba</a> | |
218 | <td><a href="/file/43c799df6e75/foo?style=paper">43c799df6e75</a> </td> |
|
220 | <td><a href="/file/43c799df6e75/foo?style=paper">43c799df6e75</a> </td> | |
219 | <td><a href="/file/9d8c40cba617/foo?style=paper">9d8c40cba617</a> </td> |
|
221 | <td><a href="/file/9d8c40cba617/foo?style=paper">9d8c40cba617</a> </td> | |
220 |
|
222 | |||
221 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'comparison/xyzzy/foo?style=paper' | egrep $REVLINKS |
|
223 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'comparison/xyzzy/foo?style=paper' | egrep $REVLINKS | |
222 | <li><a href="/shortlog/xyzzy?style=paper">log</a></li> |
|
224 | <li><a href="/shortlog/xyzzy?style=paper">log</a></li> | |
223 | <li><a href="/graph/xyzzy?style=paper">graph</a></li> |
|
225 | <li><a href="/graph/xyzzy?style=paper">graph</a></li> | |
224 | <li><a href="/rev/xyzzy?style=paper">changeset</a></li> |
|
226 | <li><a href="/rev/xyzzy?style=paper">changeset</a></li> | |
225 | <li><a href="/file/xyzzy?style=paper">browse</a></li> |
|
227 | <li><a href="/file/xyzzy?style=paper">browse</a></li> | |
226 | <li><a href="/file/xyzzy/foo?style=paper">file</a></li> |
|
228 | <li><a href="/file/xyzzy/foo?style=paper">file</a></li> | |
227 | <li><a href="/file/tip/foo?style=paper">latest</a></li> |
|
229 | <li><a href="/file/tip/foo?style=paper">latest</a></li> | |
228 | <li><a href="/diff/xyzzy/foo?style=paper">diff</a></li> |
|
230 | <li><a href="/diff/xyzzy/foo?style=paper">diff</a></li> | |
229 | <li><a href="/annotate/xyzzy/foo?style=paper">annotate</a></li> |
|
231 | <li><a href="/annotate/xyzzy/foo?style=paper">annotate</a></li> | |
230 | <li><a href="/log/xyzzy/foo?style=paper">file log</a></li> |
|
232 | <li><a href="/log/xyzzy/foo?style=paper">file log</a></li> | |
231 | <li><a href="/raw-file/xyzzy/foo">raw</a></li> |
|
233 | <li><a href="/raw-file/xyzzy/foo">raw</a></li> | |
232 | comparison foo @ 1:<a href="/rev/a7c1559b7bba?style=paper">a7c1559b7bba</a> |
|
234 | comparison foo @ 1:<a href="/rev/a7c1559b7bba?style=paper">a7c1559b7bba</a> | |
233 | <td><a href="/file/43c799df6e75/foo?style=paper">43c799df6e75</a> </td> |
|
235 | <td><a href="/file/43c799df6e75/foo?style=paper">43c799df6e75</a> </td> | |
234 | <td><a href="/file/9d8c40cba617/foo?style=paper">9d8c40cba617</a> </td> |
|
236 | <td><a href="/file/9d8c40cba617/foo?style=paper">9d8c40cba617</a> </td> | |
235 |
|
237 | |||
236 | (De)referencing symbolic revisions (coal) |
|
238 | (De)referencing symbolic revisions (coal) | |
237 |
|
239 | |||
238 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'shortlog?style=coal' | egrep $REVLINKS |
|
240 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'shortlog?style=coal' | egrep $REVLINKS | |
239 | <li><a href="/graph/tip?style=coal">graph</a></li> |
|
241 | <li><a href="/graph/tip?style=coal">graph</a></li> | |
240 | <li><a href="/rev/tip?style=coal">changeset</a></li> |
|
242 | <li><a href="/rev/tip?style=coal">changeset</a></li> | |
241 | <li><a href="/file/tip?style=coal">browse</a></li> |
|
243 | <li><a href="/file/tip?style=coal">browse</a></li> | |
242 | <a href="/archive/tip.zip">zip</a> |
|
244 | <a href="/archive/tip.zip">zip</a> | |
243 | <a href="/shortlog/tip?revcount=30&style=coal">less</a> |
|
245 | <a href="/shortlog/tip?revcount=30&style=coal">less</a> | |
244 | <a href="/shortlog/tip?revcount=120&style=coal">more</a> |
|
246 | <a href="/shortlog/tip?revcount=120&style=coal">more</a> | |
245 | | rev 2: <a href="/shortlog/43c799df6e75?style=coal">(0)</a> <a href="/shortlog/tip?style=coal">tip</a> |
|
247 | | rev 2: <a href="/shortlog/43c799df6e75?style=coal">(0)</a> <a href="/shortlog/tip?style=coal">tip</a> | |
246 | <a href="/rev/9d8c40cba617?style=coal">third</a> |
|
248 | <a href="/rev/9d8c40cba617?style=coal">third</a> | |
247 | <a href="/rev/a7c1559b7bba?style=coal">second</a> |
|
249 | <a href="/rev/a7c1559b7bba?style=coal">second</a> | |
248 | <a href="/rev/43c799df6e75?style=coal">first</a> |
|
250 | <a href="/rev/43c799df6e75?style=coal">first</a> | |
249 | <a href="/shortlog/tip?revcount=30&style=coal">less</a> |
|
251 | <a href="/shortlog/tip?revcount=30&style=coal">less</a> | |
250 | <a href="/shortlog/tip?revcount=120&style=coal">more</a> |
|
252 | <a href="/shortlog/tip?revcount=120&style=coal">more</a> | |
251 | | rev 2: <a href="/shortlog/43c799df6e75?style=coal">(0)</a> <a href="/shortlog/tip?style=coal">tip</a> |
|
253 | | rev 2: <a href="/shortlog/43c799df6e75?style=coal">(0)</a> <a href="/shortlog/tip?style=coal">tip</a> | |
252 |
|
254 | |||
253 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'graph?style=coal' | egrep $REVLINKS |
|
255 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'graph?style=coal' | egrep $REVLINKS | |
254 | <li><a href="/shortlog/tip?style=coal">log</a></li> |
|
256 | <li><a href="/shortlog/tip?style=coal">log</a></li> | |
255 | <li><a href="/rev/tip?style=coal">changeset</a></li> |
|
257 | <li><a href="/rev/tip?style=coal">changeset</a></li> | |
256 | <li><a href="/file/tip?style=coal">browse</a></li> |
|
258 | <li><a href="/file/tip?style=coal">browse</a></li> | |
|
259 | <a href="/archive/tip.zip">zip</a> | |||
257 | <a href="/graph/tip?revcount=30&style=coal">less</a> |
|
260 | <a href="/graph/tip?revcount=30&style=coal">less</a> | |
258 | <a href="/graph/tip?revcount=120&style=coal">more</a> |
|
261 | <a href="/graph/tip?revcount=120&style=coal">more</a> | |
259 | | rev 2: <a href="/graph/43c799df6e75?style=coal">(0)</a> <a href="/graph/tip?style=coal">tip</a> |
|
262 | | rev 2: <a href="/graph/43c799df6e75?style=coal">(0)</a> <a href="/graph/tip?style=coal">tip</a> | |
260 | <a href="/rev/9d8c40cba617?style=coal">third</a> |
|
263 | <a href="/rev/9d8c40cba617?style=coal">third</a> | |
261 | <a href="/rev/a7c1559b7bba?style=coal">second</a> |
|
264 | <a href="/rev/a7c1559b7bba?style=coal">second</a> | |
262 | <a href="/rev/43c799df6e75?style=coal">first</a> |
|
265 | <a href="/rev/43c799df6e75?style=coal">first</a> | |
263 | <a href="/graph/tip?revcount=30&style=coal">less</a> |
|
266 | <a href="/graph/tip?revcount=30&style=coal">less</a> | |
264 | <a href="/graph/tip?revcount=120&style=coal">more</a> |
|
267 | <a href="/graph/tip?revcount=120&style=coal">more</a> | |
265 | | rev 2: <a href="/graph/43c799df6e75?style=coal">(0)</a> <a href="/graph/tip?style=coal">tip</a> |
|
268 | | rev 2: <a href="/graph/43c799df6e75?style=coal">(0)</a> <a href="/graph/tip?style=coal">tip</a> | |
266 |
|
269 | |||
267 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'file?style=coal' | egrep $REVLINKS |
|
270 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'file?style=coal' | egrep $REVLINKS | |
268 | <li><a href="/shortlog/tip?style=coal">log</a></li> |
|
271 | <li><a href="/shortlog/tip?style=coal">log</a></li> | |
269 | <li><a href="/graph/tip?style=coal">graph</a></li> |
|
272 | <li><a href="/graph/tip?style=coal">graph</a></li> | |
270 | <li><a href="/rev/tip?style=coal">changeset</a></li> |
|
273 | <li><a href="/rev/tip?style=coal">changeset</a></li> | |
271 | <a href="/archive/tip.zip">zip</a> |
|
274 | <a href="/archive/tip.zip">zip</a> | |
272 | directory / @ 2:<a href="/rev/9d8c40cba617?style=coal">9d8c40cba617</a> |
|
275 | directory / @ 2:<a href="/rev/9d8c40cba617?style=coal">9d8c40cba617</a> | |
273 | <a href="/file/tip/dir?style=coal"> |
|
276 | <a href="/file/tip/dir?style=coal"> | |
274 | <a href="/file/tip/dir/?style=coal"> |
|
277 | <a href="/file/tip/dir/?style=coal"> | |
275 | <a href="/file/tip/foo?style=coal"> |
|
278 | <a href="/file/tip/foo?style=coal"> | |
276 |
|
279 | |||
277 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'branches?style=coal' | egrep $REVLINKS |
|
280 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'branches?style=coal' | egrep $REVLINKS | |
278 | <a href="/shortlog/default?style=coal" class="open"> |
|
281 | <a href="/shortlog/default?style=coal" class="open"> | |
279 | <a href="/shortlog/9d8c40cba617?style=coal" class="open"> |
|
282 | <a href="/shortlog/9d8c40cba617?style=coal" class="open"> | |
280 |
|
283 | |||
281 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'tags?style=coal' | egrep $REVLINKS |
|
284 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'tags?style=coal' | egrep $REVLINKS | |
282 | <a href="/rev/tip?style=coal"> |
|
285 | <a href="/rev/tip?style=coal"> | |
283 | <a href="/rev/9d8c40cba617?style=coal"> |
|
286 | <a href="/rev/9d8c40cba617?style=coal"> | |
284 |
|
287 | |||
285 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'bookmarks?style=coal' | egrep $REVLINKS |
|
288 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'bookmarks?style=coal' | egrep $REVLINKS | |
286 | <a href="/rev/xyzzy?style=coal"> |
|
289 | <a href="/rev/xyzzy?style=coal"> | |
287 | <a href="/rev/a7c1559b7bba?style=coal"> |
|
290 | <a href="/rev/a7c1559b7bba?style=coal"> | |
288 |
|
291 | |||
289 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'shortlog?style=coal&rev=all()' | egrep $REVLINKS |
|
292 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'shortlog?style=coal&rev=all()' | egrep $REVLINKS | |
290 | <a href="/rev/9d8c40cba617?style=coal">third</a> |
|
293 | <a href="/rev/9d8c40cba617?style=coal">third</a> | |
291 | <a href="/rev/a7c1559b7bba?style=coal">second</a> |
|
294 | <a href="/rev/a7c1559b7bba?style=coal">second</a> | |
292 | <a href="/rev/43c799df6e75?style=coal">first</a> |
|
295 | <a href="/rev/43c799df6e75?style=coal">first</a> | |
293 |
|
296 | |||
294 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'rev/xyzzy?style=coal' | egrep $REVLINKS |
|
297 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'rev/xyzzy?style=coal' | egrep $REVLINKS | |
295 | <li><a href="/shortlog/xyzzy?style=coal">log</a></li> |
|
298 | <li><a href="/shortlog/xyzzy?style=coal">log</a></li> | |
296 | <li><a href="/graph/xyzzy?style=coal">graph</a></li> |
|
299 | <li><a href="/graph/xyzzy?style=coal">graph</a></li> | |
297 | <li><a href="/raw-rev/xyzzy?style=coal">raw</a></li> |
|
300 | <li><a href="/raw-rev/xyzzy?style=coal">raw</a></li> | |
298 | <li><a href="/file/xyzzy?style=coal">browse</a></li> |
|
301 | <li><a href="/file/xyzzy?style=coal">browse</a></li> | |
299 | <a href="/archive/xyzzy.zip">zip</a> |
|
302 | <a href="/archive/xyzzy.zip">zip</a> | |
300 | changeset 1:<a href="/rev/a7c1559b7bba?style=coal">a7c1559b7bba</a> |
|
303 | changeset 1:<a href="/rev/a7c1559b7bba?style=coal">a7c1559b7bba</a> | |
301 | <td class="author"><a href="/rev/43c799df6e75?style=coal">43c799df6e75</a> </td> |
|
304 | <td class="author"><a href="/rev/43c799df6e75?style=coal">43c799df6e75</a> </td> | |
302 | <td class="author"> <a href="/rev/9d8c40cba617?style=coal">9d8c40cba617</a></td> |
|
305 | <td class="author"> <a href="/rev/9d8c40cba617?style=coal">9d8c40cba617</a></td> | |
303 | <td class="files"><a href="/file/a7c1559b7bba/foo?style=coal">foo</a> </td> |
|
306 | <td class="files"><a href="/file/a7c1559b7bba/foo?style=coal">foo</a> </td> | |
304 |
|
307 | |||
305 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'shortlog/xyzzy?style=coal' | egrep $REVLINKS |
|
308 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'shortlog/xyzzy?style=coal' | egrep $REVLINKS | |
306 | <li><a href="/graph/xyzzy?style=coal">graph</a></li> |
|
309 | <li><a href="/graph/xyzzy?style=coal">graph</a></li> | |
307 | <li><a href="/rev/xyzzy?style=coal">changeset</a></li> |
|
310 | <li><a href="/rev/xyzzy?style=coal">changeset</a></li> | |
308 | <li><a href="/file/xyzzy?style=coal">browse</a></li> |
|
311 | <li><a href="/file/xyzzy?style=coal">browse</a></li> | |
309 | <a href="/archive/xyzzy.zip">zip</a> |
|
312 | <a href="/archive/xyzzy.zip">zip</a> | |
310 | <a href="/shortlog/xyzzy?revcount=30&style=coal">less</a> |
|
313 | <a href="/shortlog/xyzzy?revcount=30&style=coal">less</a> | |
311 | <a href="/shortlog/xyzzy?revcount=120&style=coal">more</a> |
|
314 | <a href="/shortlog/xyzzy?revcount=120&style=coal">more</a> | |
312 | | rev 1: <a href="/shortlog/43c799df6e75?style=coal">(0)</a> <a href="/shortlog/tip?style=coal">tip</a> |
|
315 | | rev 1: <a href="/shortlog/43c799df6e75?style=coal">(0)</a> <a href="/shortlog/tip?style=coal">tip</a> | |
313 | <a href="/rev/a7c1559b7bba?style=coal">second</a> |
|
316 | <a href="/rev/a7c1559b7bba?style=coal">second</a> | |
314 | <a href="/rev/43c799df6e75?style=coal">first</a> |
|
317 | <a href="/rev/43c799df6e75?style=coal">first</a> | |
315 | <a href="/shortlog/xyzzy?revcount=30&style=coal">less</a> |
|
318 | <a href="/shortlog/xyzzy?revcount=30&style=coal">less</a> | |
316 | <a href="/shortlog/xyzzy?revcount=120&style=coal">more</a> |
|
319 | <a href="/shortlog/xyzzy?revcount=120&style=coal">more</a> | |
317 | | rev 1: <a href="/shortlog/43c799df6e75?style=coal">(0)</a> <a href="/shortlog/tip?style=coal">tip</a> |
|
320 | | rev 1: <a href="/shortlog/43c799df6e75?style=coal">(0)</a> <a href="/shortlog/tip?style=coal">tip</a> | |
318 |
|
321 | |||
319 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'graph/xyzzy?style=coal' | egrep $REVLINKS |
|
322 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'graph/xyzzy?style=coal' | egrep $REVLINKS | |
320 | <li><a href="/shortlog/xyzzy?style=coal">log</a></li> |
|
323 | <li><a href="/shortlog/xyzzy?style=coal">log</a></li> | |
321 | <li><a href="/rev/xyzzy?style=coal">changeset</a></li> |
|
324 | <li><a href="/rev/xyzzy?style=coal">changeset</a></li> | |
322 | <li><a href="/file/xyzzy?style=coal">browse</a></li> |
|
325 | <li><a href="/file/xyzzy?style=coal">browse</a></li> | |
|
326 | <a href="/archive/xyzzy.zip">zip</a> | |||
323 | <a href="/graph/xyzzy?revcount=30&style=coal">less</a> |
|
327 | <a href="/graph/xyzzy?revcount=30&style=coal">less</a> | |
324 | <a href="/graph/xyzzy?revcount=120&style=coal">more</a> |
|
328 | <a href="/graph/xyzzy?revcount=120&style=coal">more</a> | |
325 | | rev 1: <a href="/graph/43c799df6e75?style=coal">(0)</a> <a href="/graph/tip?style=coal">tip</a> |
|
329 | | rev 1: <a href="/graph/43c799df6e75?style=coal">(0)</a> <a href="/graph/tip?style=coal">tip</a> | |
326 | <a href="/rev/a7c1559b7bba?style=coal">second</a> |
|
330 | <a href="/rev/a7c1559b7bba?style=coal">second</a> | |
327 | <a href="/rev/43c799df6e75?style=coal">first</a> |
|
331 | <a href="/rev/43c799df6e75?style=coal">first</a> | |
328 | <a href="/graph/xyzzy?revcount=30&style=coal">less</a> |
|
332 | <a href="/graph/xyzzy?revcount=30&style=coal">less</a> | |
329 | <a href="/graph/xyzzy?revcount=120&style=coal">more</a> |
|
333 | <a href="/graph/xyzzy?revcount=120&style=coal">more</a> | |
330 | | rev 1: <a href="/graph/43c799df6e75?style=coal">(0)</a> <a href="/graph/tip?style=coal">tip</a> |
|
334 | | rev 1: <a href="/graph/43c799df6e75?style=coal">(0)</a> <a href="/graph/tip?style=coal">tip</a> | |
331 |
|
335 | |||
332 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'file/xyzzy?style=coal' | egrep $REVLINKS |
|
336 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'file/xyzzy?style=coal' | egrep $REVLINKS | |
333 | <li><a href="/shortlog/xyzzy?style=coal">log</a></li> |
|
337 | <li><a href="/shortlog/xyzzy?style=coal">log</a></li> | |
334 | <li><a href="/graph/xyzzy?style=coal">graph</a></li> |
|
338 | <li><a href="/graph/xyzzy?style=coal">graph</a></li> | |
335 | <li><a href="/rev/xyzzy?style=coal">changeset</a></li> |
|
339 | <li><a href="/rev/xyzzy?style=coal">changeset</a></li> | |
336 | <a href="/archive/xyzzy.zip">zip</a> |
|
340 | <a href="/archive/xyzzy.zip">zip</a> | |
337 | directory / @ 1:<a href="/rev/a7c1559b7bba?style=coal">a7c1559b7bba</a> |
|
341 | directory / @ 1:<a href="/rev/a7c1559b7bba?style=coal">a7c1559b7bba</a> | |
338 | <a href="/file/xyzzy/dir?style=coal"> |
|
342 | <a href="/file/xyzzy/dir?style=coal"> | |
339 | <a href="/file/xyzzy/dir/?style=coal"> |
|
343 | <a href="/file/xyzzy/dir/?style=coal"> | |
340 | <a href="/file/xyzzy/foo?style=coal"> |
|
344 | <a href="/file/xyzzy/foo?style=coal"> | |
341 |
|
345 | |||
342 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'file/xyzzy/foo?style=coal' | egrep $REVLINKS |
|
346 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'file/xyzzy/foo?style=coal' | egrep $REVLINKS | |
343 | <li><a href="/shortlog/xyzzy?style=coal">log</a></li> |
|
347 | <li><a href="/shortlog/xyzzy?style=coal">log</a></li> | |
344 | <li><a href="/graph/xyzzy?style=coal">graph</a></li> |
|
348 | <li><a href="/graph/xyzzy?style=coal">graph</a></li> | |
345 | <li><a href="/rev/xyzzy?style=coal">changeset</a></li> |
|
349 | <li><a href="/rev/xyzzy?style=coal">changeset</a></li> | |
346 | <li><a href="/file/xyzzy/?style=coal">browse</a></li> |
|
350 | <li><a href="/file/xyzzy/?style=coal">browse</a></li> | |
347 | <li><a href="/file/tip/foo?style=coal">latest</a></li> |
|
351 | <li><a href="/file/tip/foo?style=coal">latest</a></li> | |
348 | <li><a href="/diff/xyzzy/foo?style=coal">diff</a></li> |
|
352 | <li><a href="/diff/xyzzy/foo?style=coal">diff</a></li> | |
349 | <li><a href="/comparison/xyzzy/foo?style=coal">comparison</a></li> |
|
353 | <li><a href="/comparison/xyzzy/foo?style=coal">comparison</a></li> | |
350 | <li><a href="/annotate/xyzzy/foo?style=coal">annotate</a></li> |
|
354 | <li><a href="/annotate/xyzzy/foo?style=coal">annotate</a></li> | |
351 | <li><a href="/log/xyzzy/foo?style=coal">file log</a></li> |
|
355 | <li><a href="/log/xyzzy/foo?style=coal">file log</a></li> | |
352 | <li><a href="/raw-file/xyzzy/foo">raw</a></li> |
|
356 | <li><a href="/raw-file/xyzzy/foo">raw</a></li> | |
353 | view foo @ 1:<a href="/rev/a7c1559b7bba?style=coal">a7c1559b7bba</a> |
|
357 | view foo @ 1:<a href="/rev/a7c1559b7bba?style=coal">a7c1559b7bba</a> | |
354 | <td class="author"><a href="/file/43c799df6e75/foo?style=coal">43c799df6e75</a> </td> |
|
358 | <td class="author"><a href="/file/43c799df6e75/foo?style=coal">43c799df6e75</a> </td> | |
355 | <td class="author"><a href="/file/9d8c40cba617/foo?style=coal">9d8c40cba617</a> </td> |
|
359 | <td class="author"><a href="/file/9d8c40cba617/foo?style=coal">9d8c40cba617</a> </td> | |
356 |
|
360 | |||
357 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'log/xyzzy/foo?style=coal' | egrep $REVLINKS |
|
361 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'log/xyzzy/foo?style=coal' | egrep $REVLINKS | |
358 | href="/atom-log/tip/foo" title="Atom feed for test:foo" /> |
|
362 | href="/atom-log/tip/foo" title="Atom feed for test:foo" /> | |
359 | href="/rss-log/tip/foo" title="RSS feed for test:foo" /> |
|
363 | href="/rss-log/tip/foo" title="RSS feed for test:foo" /> | |
360 | <li><a href="/shortlog/xyzzy?style=coal">log</a></li> |
|
364 | <li><a href="/shortlog/xyzzy?style=coal">log</a></li> | |
361 | <li><a href="/graph/xyzzy?style=coal">graph</a></li> |
|
365 | <li><a href="/graph/xyzzy?style=coal">graph</a></li> | |
362 | <li><a href="/rev/xyzzy?style=coal">changeset</a></li> |
|
366 | <li><a href="/rev/xyzzy?style=coal">changeset</a></li> | |
363 | <li><a href="/file/xyzzy?style=coal">browse</a></li> |
|
367 | <li><a href="/file/xyzzy?style=coal">browse</a></li> | |
364 | <li><a href="/file/xyzzy/foo?style=coal">file</a></li> |
|
368 | <li><a href="/file/xyzzy/foo?style=coal">file</a></li> | |
365 | <li><a href="/diff/xyzzy/foo?style=coal">diff</a></li> |
|
369 | <li><a href="/diff/xyzzy/foo?style=coal">diff</a></li> | |
366 | <li><a href="/comparison/xyzzy/foo?style=coal">comparison</a></li> |
|
370 | <li><a href="/comparison/xyzzy/foo?style=coal">comparison</a></li> | |
367 | <li><a href="/annotate/xyzzy/foo?style=coal">annotate</a></li> |
|
371 | <li><a href="/annotate/xyzzy/foo?style=coal">annotate</a></li> | |
368 | <li><a href="/raw-file/xyzzy/foo">raw</a></li> |
|
372 | <li><a href="/raw-file/xyzzy/foo">raw</a></li> | |
369 | <a href="/atom-log/tip/foo" title="subscribe to atom feed"> |
|
373 | <a href="/atom-log/tip/foo" title="subscribe to atom feed"> | |
370 | log foo @ 1:<a href="/rev/a7c1559b7bba?style=coal">a7c1559b7bba</a> |
|
374 | log foo @ 1:<a href="/rev/a7c1559b7bba?style=coal">a7c1559b7bba</a> | |
371 | <a href="/log/xyzzy/foo?revcount=30&style=coal">less</a> |
|
375 | <a href="/log/xyzzy/foo?revcount=30&style=coal">less</a> | |
372 | <a href="/log/xyzzy/foo?revcount=120&style=coal">more</a> |
|
376 | <a href="/log/xyzzy/foo?revcount=120&style=coal">more</a> | |
373 | | <a href="/log/43c799df6e75/foo?style=coal">(0)</a> <a href="/log/tip/foo?style=coal">tip</a> </div> |
|
377 | | <a href="/log/43c799df6e75/foo?style=coal">(0)</a> <a href="/log/tip/foo?style=coal">tip</a> </div> | |
374 | <a href="/rev/a7c1559b7bba?style=coal">second</a> |
|
378 | <a href="/rev/a7c1559b7bba?style=coal">second</a> | |
375 | <a href="/rev/43c799df6e75?style=coal">first</a> |
|
379 | <a href="/rev/43c799df6e75?style=coal">first</a> | |
376 | <a href="/log/xyzzy/foo?revcount=30&style=coal">less</a> |
|
380 | <a href="/log/xyzzy/foo?revcount=30&style=coal">less</a> | |
377 | <a href="/log/xyzzy/foo?revcount=120&style=coal">more</a> |
|
381 | <a href="/log/xyzzy/foo?revcount=120&style=coal">more</a> | |
378 | | <a href="/log/43c799df6e75/foo?style=coal">(0)</a> <a href="/log/tip/foo?style=coal">tip</a> |
|
382 | | <a href="/log/43c799df6e75/foo?style=coal">(0)</a> <a href="/log/tip/foo?style=coal">tip</a> | |
379 |
|
383 | |||
380 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'annotate/xyzzy/foo?style=coal' | egrep $REVLINKS |
|
384 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'annotate/xyzzy/foo?style=coal' | egrep $REVLINKS | |
381 | <li><a href="/shortlog/xyzzy?style=coal">log</a></li> |
|
385 | <li><a href="/shortlog/xyzzy?style=coal">log</a></li> | |
382 | <li><a href="/graph/xyzzy?style=coal">graph</a></li> |
|
386 | <li><a href="/graph/xyzzy?style=coal">graph</a></li> | |
383 | <li><a href="/rev/xyzzy?style=coal">changeset</a></li> |
|
387 | <li><a href="/rev/xyzzy?style=coal">changeset</a></li> | |
384 | <li><a href="/file/xyzzy/?style=coal">browse</a></li> |
|
388 | <li><a href="/file/xyzzy/?style=coal">browse</a></li> | |
385 | <li><a href="/file/xyzzy/foo?style=coal">file</a></li> |
|
389 | <li><a href="/file/xyzzy/foo?style=coal">file</a></li> | |
386 | <li><a href="/file/tip/foo?style=coal">latest</a></li> |
|
390 | <li><a href="/file/tip/foo?style=coal">latest</a></li> | |
387 | <li><a href="/diff/xyzzy/foo?style=coal">diff</a></li> |
|
391 | <li><a href="/diff/xyzzy/foo?style=coal">diff</a></li> | |
388 | <li><a href="/comparison/xyzzy/foo?style=coal">comparison</a></li> |
|
392 | <li><a href="/comparison/xyzzy/foo?style=coal">comparison</a></li> | |
389 | <li><a href="/log/xyzzy/foo?style=coal">file log</a></li> |
|
393 | <li><a href="/log/xyzzy/foo?style=coal">file log</a></li> | |
390 | <li><a href="/raw-file/xyzzy/foo">raw</a></li> |
|
394 | <li><a href="/raw-file/xyzzy/foo">raw</a></li> | |
391 | annotate foo @ 1:<a href="/rev/a7c1559b7bba?style=coal">a7c1559b7bba</a> |
|
395 | annotate foo @ 1:<a href="/rev/a7c1559b7bba?style=coal">a7c1559b7bba</a> | |
392 | <td class="author"><a href="/file/43c799df6e75/foo?style=coal">43c799df6e75</a> </td> |
|
396 | <td class="author"><a href="/file/43c799df6e75/foo?style=coal">43c799df6e75</a> </td> | |
393 | <td class="author"><a href="/file/9d8c40cba617/foo?style=coal">9d8c40cba617</a> </td> |
|
397 | <td class="author"><a href="/file/9d8c40cba617/foo?style=coal">9d8c40cba617</a> </td> | |
394 | <a href="/annotate/43c799df6e75/foo?style=coal#l1"> |
|
398 | <a href="/annotate/43c799df6e75/foo?style=coal#l1"> | |
395 | <a href="/annotate/43c799df6e75/foo?style=coal#l1"> |
|
399 | <a href="/annotate/43c799df6e75/foo?style=coal#l1"> | |
396 | <a href="/diff/43c799df6e75/foo?style=coal">diff</a> |
|
400 | <a href="/diff/43c799df6e75/foo?style=coal">diff</a> | |
397 | <a href="/rev/43c799df6e75?style=coal">changeset</a> |
|
401 | <a href="/rev/43c799df6e75?style=coal">changeset</a> | |
398 | <a href="/annotate/a7c1559b7bba/foo?style=coal#l2"> |
|
402 | <a href="/annotate/a7c1559b7bba/foo?style=coal#l2"> | |
399 | <a href="/annotate/a7c1559b7bba/foo?style=coal#l2"> |
|
403 | <a href="/annotate/a7c1559b7bba/foo?style=coal#l2"> | |
400 | <a href="/annotate/43c799df6e75/foo?style=coal">0</a></div> |
|
404 | <a href="/annotate/43c799df6e75/foo?style=coal">0</a></div> | |
401 | <a href="/diff/a7c1559b7bba/foo?style=coal">diff</a> |
|
405 | <a href="/diff/a7c1559b7bba/foo?style=coal">diff</a> | |
402 | <a href="/rev/a7c1559b7bba?style=coal">changeset</a> |
|
406 | <a href="/rev/a7c1559b7bba?style=coal">changeset</a> | |
403 |
|
407 | |||
404 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'diff/xyzzy/foo?style=coal' | egrep $REVLINKS |
|
408 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'diff/xyzzy/foo?style=coal' | egrep $REVLINKS | |
405 | <li><a href="/shortlog/xyzzy?style=coal">log</a></li> |
|
409 | <li><a href="/shortlog/xyzzy?style=coal">log</a></li> | |
406 | <li><a href="/graph/xyzzy?style=coal">graph</a></li> |
|
410 | <li><a href="/graph/xyzzy?style=coal">graph</a></li> | |
407 | <li><a href="/rev/xyzzy?style=coal">changeset</a></li> |
|
411 | <li><a href="/rev/xyzzy?style=coal">changeset</a></li> | |
408 | <li><a href="/file/xyzzy?style=coal">browse</a></li> |
|
412 | <li><a href="/file/xyzzy?style=coal">browse</a></li> | |
409 | <li><a href="/file/xyzzy/foo?style=coal">file</a></li> |
|
413 | <li><a href="/file/xyzzy/foo?style=coal">file</a></li> | |
410 | <li><a href="/file/tip/foo?style=coal">latest</a></li> |
|
414 | <li><a href="/file/tip/foo?style=coal">latest</a></li> | |
411 | <li><a href="/comparison/xyzzy/foo?style=coal">comparison</a></li> |
|
415 | <li><a href="/comparison/xyzzy/foo?style=coal">comparison</a></li> | |
412 | <li><a href="/annotate/xyzzy/foo?style=coal">annotate</a></li> |
|
416 | <li><a href="/annotate/xyzzy/foo?style=coal">annotate</a></li> | |
413 | <li><a href="/log/xyzzy/foo?style=coal">file log</a></li> |
|
417 | <li><a href="/log/xyzzy/foo?style=coal">file log</a></li> | |
414 | <li><a href="/raw-file/xyzzy/foo">raw</a></li> |
|
418 | <li><a href="/raw-file/xyzzy/foo">raw</a></li> | |
415 | diff foo @ 1:<a href="/rev/a7c1559b7bba?style=coal">a7c1559b7bba</a> |
|
419 | diff foo @ 1:<a href="/rev/a7c1559b7bba?style=coal">a7c1559b7bba</a> | |
416 | <td><a href="/file/43c799df6e75/foo?style=coal">43c799df6e75</a> </td> |
|
420 | <td><a href="/file/43c799df6e75/foo?style=coal">43c799df6e75</a> </td> | |
417 | <td><a href="/file/9d8c40cba617/foo?style=coal">9d8c40cba617</a> </td> |
|
421 | <td><a href="/file/9d8c40cba617/foo?style=coal">9d8c40cba617</a> </td> | |
418 |
|
422 | |||
419 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'comparison/xyzzy/foo?style=coal' | egrep $REVLINKS |
|
423 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'comparison/xyzzy/foo?style=coal' | egrep $REVLINKS | |
420 | <li><a href="/shortlog/xyzzy?style=coal">log</a></li> |
|
424 | <li><a href="/shortlog/xyzzy?style=coal">log</a></li> | |
421 | <li><a href="/graph/xyzzy?style=coal">graph</a></li> |
|
425 | <li><a href="/graph/xyzzy?style=coal">graph</a></li> | |
422 | <li><a href="/rev/xyzzy?style=coal">changeset</a></li> |
|
426 | <li><a href="/rev/xyzzy?style=coal">changeset</a></li> | |
423 | <li><a href="/file/xyzzy?style=coal">browse</a></li> |
|
427 | <li><a href="/file/xyzzy?style=coal">browse</a></li> | |
424 | <li><a href="/file/xyzzy/foo?style=coal">file</a></li> |
|
428 | <li><a href="/file/xyzzy/foo?style=coal">file</a></li> | |
425 | <li><a href="/file/tip/foo?style=coal">latest</a></li> |
|
429 | <li><a href="/file/tip/foo?style=coal">latest</a></li> | |
426 | <li><a href="/diff/xyzzy/foo?style=coal">diff</a></li> |
|
430 | <li><a href="/diff/xyzzy/foo?style=coal">diff</a></li> | |
427 | <li><a href="/annotate/xyzzy/foo?style=coal">annotate</a></li> |
|
431 | <li><a href="/annotate/xyzzy/foo?style=coal">annotate</a></li> | |
428 | <li><a href="/log/xyzzy/foo?style=coal">file log</a></li> |
|
432 | <li><a href="/log/xyzzy/foo?style=coal">file log</a></li> | |
429 | <li><a href="/raw-file/xyzzy/foo">raw</a></li> |
|
433 | <li><a href="/raw-file/xyzzy/foo">raw</a></li> | |
430 | comparison foo @ 1:<a href="/rev/a7c1559b7bba?style=coal">a7c1559b7bba</a> |
|
434 | comparison foo @ 1:<a href="/rev/a7c1559b7bba?style=coal">a7c1559b7bba</a> | |
431 | <td><a href="/file/43c799df6e75/foo?style=coal">43c799df6e75</a> </td> |
|
435 | <td><a href="/file/43c799df6e75/foo?style=coal">43c799df6e75</a> </td> | |
432 | <td><a href="/file/9d8c40cba617/foo?style=coal">9d8c40cba617</a> </td> |
|
436 | <td><a href="/file/9d8c40cba617/foo?style=coal">9d8c40cba617</a> </td> | |
433 |
|
437 | |||
434 | (De)referencing symbolic revisions (gitweb) |
|
438 | (De)referencing symbolic revisions (gitweb) | |
435 |
|
439 | |||
436 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'summary?style=gitweb' | egrep $REVLINKS |
|
440 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'summary?style=gitweb' | egrep $REVLINKS | |
437 | <a href="/file?style=gitweb">files</a> | <a href="/archive/tip.zip">zip</a> | |
|
441 | <a href="/file?style=gitweb">files</a> | <a href="/archive/tip.zip">zip</a> | | |
438 | <a class="list" href="/rev/9d8c40cba617?style=gitweb"> |
|
442 | <a class="list" href="/rev/9d8c40cba617?style=gitweb"> | |
439 | <a href="/rev/9d8c40cba617?style=gitweb">changeset</a> | |
|
443 | <a href="/rev/9d8c40cba617?style=gitweb">changeset</a> | | |
440 | <a href="/file/9d8c40cba617?style=gitweb">files</a> |
|
444 | <a href="/file/9d8c40cba617?style=gitweb">files</a> | |
441 | <a class="list" href="/rev/a7c1559b7bba?style=gitweb"> |
|
445 | <a class="list" href="/rev/a7c1559b7bba?style=gitweb"> | |
442 | <a href="/rev/a7c1559b7bba?style=gitweb">changeset</a> | |
|
446 | <a href="/rev/a7c1559b7bba?style=gitweb">changeset</a> | | |
443 | <a href="/file/a7c1559b7bba?style=gitweb">files</a> |
|
447 | <a href="/file/a7c1559b7bba?style=gitweb">files</a> | |
444 | <a class="list" href="/rev/43c799df6e75?style=gitweb"> |
|
448 | <a class="list" href="/rev/43c799df6e75?style=gitweb"> | |
445 | <a href="/rev/43c799df6e75?style=gitweb">changeset</a> | |
|
449 | <a href="/rev/43c799df6e75?style=gitweb">changeset</a> | | |
446 | <a href="/file/43c799df6e75?style=gitweb">files</a> |
|
450 | <a href="/file/43c799df6e75?style=gitweb">files</a> | |
447 | <td><a class="list" href="/rev/xyzzy?style=gitweb"><b>xyzzy</b></a></td> |
|
451 | <td><a class="list" href="/rev/xyzzy?style=gitweb"><b>xyzzy</b></a></td> | |
448 | <a href="/rev/a7c1559b7bba?style=gitweb">changeset</a> | |
|
452 | <a href="/rev/a7c1559b7bba?style=gitweb">changeset</a> | | |
449 | <a href="/log/a7c1559b7bba?style=gitweb">changelog</a> | |
|
453 | <a href="/log/a7c1559b7bba?style=gitweb">changelog</a> | | |
450 | <a href="/file/a7c1559b7bba?style=gitweb">files</a> |
|
454 | <a href="/file/a7c1559b7bba?style=gitweb">files</a> | |
451 | <td class="open"><a class="list" href="/shortlog/default?style=gitweb"><b>default</b></a></td> |
|
455 | <td class="open"><a class="list" href="/shortlog/default?style=gitweb"><b>default</b></a></td> | |
452 | <a href="/changeset/9d8c40cba617?style=gitweb">changeset</a> | |
|
456 | <a href="/changeset/9d8c40cba617?style=gitweb">changeset</a> | | |
453 | <a href="/log/9d8c40cba617?style=gitweb">changelog</a> | |
|
457 | <a href="/log/9d8c40cba617?style=gitweb">changelog</a> | | |
454 | <a href="/file/9d8c40cba617?style=gitweb">files</a> |
|
458 | <a href="/file/9d8c40cba617?style=gitweb">files</a> | |
455 |
|
459 | |||
456 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'shortlog?style=gitweb' | egrep $REVLINKS |
|
460 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'shortlog?style=gitweb' | egrep $REVLINKS | |
457 | <a href="/log/tip?style=gitweb">changelog</a> | |
|
461 | <a href="/log/tip?style=gitweb">changelog</a> | | |
458 | <a href="/graph/tip?style=gitweb">graph</a> | |
|
462 | <a href="/graph/tip?style=gitweb">graph</a> | | |
459 | <a href="/file/tip?style=gitweb">files</a> | <a href="/archive/tip.zip">zip</a> | |
|
463 | <a href="/file/tip?style=gitweb">files</a> | <a href="/archive/tip.zip">zip</a> | | |
460 | <br/><a href="/shortlog/43c799df6e75?style=gitweb">(0)</a> <a href="/shortlog/tip?style=gitweb">tip</a> <br/> |
|
464 | <br/><a href="/shortlog/43c799df6e75?style=gitweb">(0)</a> <a href="/shortlog/tip?style=gitweb">tip</a> <br/> | |
461 | <a class="list" href="/rev/9d8c40cba617?style=gitweb"> |
|
465 | <a class="list" href="/rev/9d8c40cba617?style=gitweb"> | |
462 | <a href="/rev/9d8c40cba617?style=gitweb">changeset</a> | |
|
466 | <a href="/rev/9d8c40cba617?style=gitweb">changeset</a> | | |
463 | <a href="/file/9d8c40cba617?style=gitweb">files</a> |
|
467 | <a href="/file/9d8c40cba617?style=gitweb">files</a> | |
464 | <a class="list" href="/rev/a7c1559b7bba?style=gitweb"> |
|
468 | <a class="list" href="/rev/a7c1559b7bba?style=gitweb"> | |
465 | <a href="/rev/a7c1559b7bba?style=gitweb">changeset</a> | |
|
469 | <a href="/rev/a7c1559b7bba?style=gitweb">changeset</a> | | |
466 | <a href="/file/a7c1559b7bba?style=gitweb">files</a> |
|
470 | <a href="/file/a7c1559b7bba?style=gitweb">files</a> | |
467 | <a class="list" href="/rev/43c799df6e75?style=gitweb"> |
|
471 | <a class="list" href="/rev/43c799df6e75?style=gitweb"> | |
468 | <a href="/rev/43c799df6e75?style=gitweb">changeset</a> | |
|
472 | <a href="/rev/43c799df6e75?style=gitweb">changeset</a> | | |
469 | <a href="/file/43c799df6e75?style=gitweb">files</a> |
|
473 | <a href="/file/43c799df6e75?style=gitweb">files</a> | |
470 | <a href="/shortlog/43c799df6e75?style=gitweb">(0)</a> <a href="/shortlog/tip?style=gitweb">tip</a> |
|
474 | <a href="/shortlog/43c799df6e75?style=gitweb">(0)</a> <a href="/shortlog/tip?style=gitweb">tip</a> | |
471 |
|
475 | |||
472 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'log?style=gitweb' | egrep $REVLINKS |
|
476 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'log?style=gitweb' | egrep $REVLINKS | |
473 | <a href="/shortlog/tip?style=gitweb">shortlog</a> | |
|
477 | <a href="/shortlog/tip?style=gitweb">shortlog</a> | | |
474 | <a href="/graph/tip?style=gitweb">graph</a> | |
|
478 | <a href="/graph/tip?style=gitweb">graph</a> | | |
475 | <a href="/file/tip?style=gitweb">files</a> | <a href="/archive/tip.zip">zip</a> | |
|
479 | <a href="/file/tip?style=gitweb">files</a> | <a href="/archive/tip.zip">zip</a> | | |
476 | <a href="/log/43c799df6e75?style=gitweb">(0)</a> <a href="/log/tip?style=gitweb">tip</a> <br/> |
|
480 | <a href="/log/43c799df6e75?style=gitweb">(0)</a> <a href="/log/tip?style=gitweb">tip</a> <br/> | |
477 | <a class="title" href="/rev/9d8c40cba617?style=gitweb"> |
|
481 | <a class="title" href="/rev/9d8c40cba617?style=gitweb"> | |
478 | <a href="/rev/9d8c40cba617?style=gitweb">changeset</a><br/> |
|
482 | <a href="/rev/9d8c40cba617?style=gitweb">changeset</a><br/> | |
479 | <a class="title" href="/rev/a7c1559b7bba?style=gitweb"> |
|
483 | <a class="title" href="/rev/a7c1559b7bba?style=gitweb"> | |
480 | <a href="/rev/a7c1559b7bba?style=gitweb">changeset</a><br/> |
|
484 | <a href="/rev/a7c1559b7bba?style=gitweb">changeset</a><br/> | |
481 | <a class="title" href="/rev/43c799df6e75?style=gitweb"> |
|
485 | <a class="title" href="/rev/43c799df6e75?style=gitweb"> | |
482 | <a href="/rev/43c799df6e75?style=gitweb">changeset</a><br/> |
|
486 | <a href="/rev/43c799df6e75?style=gitweb">changeset</a><br/> | |
483 | <a href="/log/43c799df6e75?style=gitweb">(0)</a> <a href="/log/tip?style=gitweb">tip</a> <br/> |
|
487 | <a href="/log/43c799df6e75?style=gitweb">(0)</a> <a href="/log/tip?style=gitweb">tip</a> <br/> | |
484 |
|
488 | |||
485 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'graph?style=gitweb' | egrep $REVLINKS |
|
489 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'graph?style=gitweb' | egrep $REVLINKS | |
486 | <a href="/shortlog/tip?style=gitweb">shortlog</a> | |
|
490 | <a href="/shortlog/tip?style=gitweb">shortlog</a> | | |
487 | <a href="/log/tip?style=gitweb">changelog</a> | |
|
491 | <a href="/log/tip?style=gitweb">changelog</a> | | |
488 | <a href="/file/tip?style=gitweb">files</a> | |
|
492 | <a href="/file/tip?style=gitweb">files</a> | <a href="/archive/tip.zip">zip</a> | | |
489 | <a href="/graph/tip?revcount=30&style=gitweb">less</a> |
|
493 | <a href="/graph/tip?revcount=30&style=gitweb">less</a> | |
490 | <a href="/graph/tip?revcount=120&style=gitweb">more</a> |
|
494 | <a href="/graph/tip?revcount=120&style=gitweb">more</a> | |
491 | | <a href="/graph/43c799df6e75?style=gitweb">(0)</a> <a href="/graph/tip?style=gitweb">tip</a> |
|
495 | | <a href="/graph/43c799df6e75?style=gitweb">(0)</a> <a href="/graph/tip?style=gitweb">tip</a> | |
492 | <a class="list" href="/rev/9d8c40cba617?style=gitweb"><b>third</b></a> |
|
496 | <a class="list" href="/rev/9d8c40cba617?style=gitweb"><b>third</b></a> | |
493 | <a class="list" href="/rev/a7c1559b7bba?style=gitweb"><b>second</b></a> |
|
497 | <a class="list" href="/rev/a7c1559b7bba?style=gitweb"><b>second</b></a> | |
494 | <a class="list" href="/rev/43c799df6e75?style=gitweb"><b>first</b></a> |
|
498 | <a class="list" href="/rev/43c799df6e75?style=gitweb"><b>first</b></a> | |
495 | <a href="/graph/tip?revcount=30&style=gitweb">less</a> |
|
499 | <a href="/graph/tip?revcount=30&style=gitweb">less</a> | |
496 | <a href="/graph/tip?revcount=120&style=gitweb">more</a> |
|
500 | <a href="/graph/tip?revcount=120&style=gitweb">more</a> | |
497 | | <a href="/graph/43c799df6e75?style=gitweb">(0)</a> <a href="/graph/tip?style=gitweb">tip</a> |
|
501 | | <a href="/graph/43c799df6e75?style=gitweb">(0)</a> <a href="/graph/tip?style=gitweb">tip</a> | |
498 |
|
502 | |||
499 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'tags?style=gitweb' | egrep $REVLINKS |
|
503 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'tags?style=gitweb' | egrep $REVLINKS | |
500 | <td><a class="list" href="/rev/tip?style=gitweb"><b>tip</b></a></td> |
|
504 | <td><a class="list" href="/rev/tip?style=gitweb"><b>tip</b></a></td> | |
501 | <a href="/rev/9d8c40cba617?style=gitweb">changeset</a> | |
|
505 | <a href="/rev/9d8c40cba617?style=gitweb">changeset</a> | | |
502 | <a href="/log/9d8c40cba617?style=gitweb">changelog</a> | |
|
506 | <a href="/log/9d8c40cba617?style=gitweb">changelog</a> | | |
503 | <a href="/file/9d8c40cba617?style=gitweb">files</a> |
|
507 | <a href="/file/9d8c40cba617?style=gitweb">files</a> | |
504 |
|
508 | |||
505 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'bookmarks?style=gitweb' | egrep $REVLINKS |
|
509 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'bookmarks?style=gitweb' | egrep $REVLINKS | |
506 | <td><a class="list" href="/rev/xyzzy?style=gitweb"><b>xyzzy</b></a></td> |
|
510 | <td><a class="list" href="/rev/xyzzy?style=gitweb"><b>xyzzy</b></a></td> | |
507 | <a href="/rev/a7c1559b7bba?style=gitweb">changeset</a> | |
|
511 | <a href="/rev/a7c1559b7bba?style=gitweb">changeset</a> | | |
508 | <a href="/log/a7c1559b7bba?style=gitweb">changelog</a> | |
|
512 | <a href="/log/a7c1559b7bba?style=gitweb">changelog</a> | | |
509 | <a href="/file/a7c1559b7bba?style=gitweb">files</a> |
|
513 | <a href="/file/a7c1559b7bba?style=gitweb">files</a> | |
510 |
|
514 | |||
511 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'branches?style=gitweb' | egrep $REVLINKS |
|
515 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'branches?style=gitweb' | egrep $REVLINKS | |
512 | <td class="open"><a class="list" href="/shortlog/default?style=gitweb"><b>default</b></a></td> |
|
516 | <td class="open"><a class="list" href="/shortlog/default?style=gitweb"><b>default</b></a></td> | |
513 | <a href="/changeset/9d8c40cba617?style=gitweb">changeset</a> | |
|
517 | <a href="/changeset/9d8c40cba617?style=gitweb">changeset</a> | | |
514 | <a href="/log/9d8c40cba617?style=gitweb">changelog</a> | |
|
518 | <a href="/log/9d8c40cba617?style=gitweb">changelog</a> | | |
515 | <a href="/file/9d8c40cba617?style=gitweb">files</a> |
|
519 | <a href="/file/9d8c40cba617?style=gitweb">files</a> | |
516 |
|
520 | |||
517 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'file?style=gitweb' | egrep $REVLINKS |
|
521 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'file?style=gitweb' | egrep $REVLINKS | |
518 | <a href="/rev/tip?style=gitweb">changeset</a> | <a href="/archive/tip.zip">zip</a> | |
|
522 | <a href="/rev/tip?style=gitweb">changeset</a> | <a href="/archive/tip.zip">zip</a> | | |
519 | <a href="/file/tip/dir?style=gitweb">dir</a> |
|
523 | <a href="/file/tip/dir?style=gitweb">dir</a> | |
520 | <a href="/file/tip/dir/?style=gitweb"></a> |
|
524 | <a href="/file/tip/dir/?style=gitweb"></a> | |
521 | <a href="/file/tip/dir?style=gitweb">files</a> |
|
525 | <a href="/file/tip/dir?style=gitweb">files</a> | |
522 | <a class="list" href="/file/tip/foo?style=gitweb">foo</a> |
|
526 | <a class="list" href="/file/tip/foo?style=gitweb">foo</a> | |
523 | <a href="/file/tip/foo?style=gitweb">file</a> | |
|
527 | <a href="/file/tip/foo?style=gitweb">file</a> | | |
524 | <a href="/log/tip/foo?style=gitweb">revisions</a> | |
|
528 | <a href="/log/tip/foo?style=gitweb">revisions</a> | | |
525 | <a href="/annotate/tip/foo?style=gitweb">annotate</a> |
|
529 | <a href="/annotate/tip/foo?style=gitweb">annotate</a> | |
526 |
|
530 | |||
527 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'shortlog?style=gitweb&rev=all()' | egrep $REVLINKS |
|
531 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'shortlog?style=gitweb&rev=all()' | egrep $REVLINKS | |
528 | <a href="/file?style=gitweb">files</a> | <a href="/archive/tip.zip">zip</a> |
|
532 | <a href="/file?style=gitweb">files</a> | <a href="/archive/tip.zip">zip</a> | |
529 | <a class="title" href="/rev/9d8c40cba617?style=gitweb"> |
|
533 | <a class="title" href="/rev/9d8c40cba617?style=gitweb"> | |
530 | <a href="/rev/9d8c40cba617?style=gitweb">changeset</a><br/> |
|
534 | <a href="/rev/9d8c40cba617?style=gitweb">changeset</a><br/> | |
531 | <a class="title" href="/rev/a7c1559b7bba?style=gitweb"> |
|
535 | <a class="title" href="/rev/a7c1559b7bba?style=gitweb"> | |
532 | <a href="/rev/a7c1559b7bba?style=gitweb">changeset</a><br/> |
|
536 | <a href="/rev/a7c1559b7bba?style=gitweb">changeset</a><br/> | |
533 | <a class="title" href="/rev/43c799df6e75?style=gitweb"> |
|
537 | <a class="title" href="/rev/43c799df6e75?style=gitweb"> | |
534 | <a href="/rev/43c799df6e75?style=gitweb">changeset</a><br/> |
|
538 | <a href="/rev/43c799df6e75?style=gitweb">changeset</a><br/> | |
535 |
|
539 | |||
536 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'rev/xyzzy?style=gitweb' | egrep $REVLINKS |
|
540 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'rev/xyzzy?style=gitweb' | egrep $REVLINKS | |
537 | <a href="/shortlog/xyzzy?style=gitweb">shortlog</a> | |
|
541 | <a href="/shortlog/xyzzy?style=gitweb">shortlog</a> | | |
538 | <a href="/log/xyzzy?style=gitweb">changelog</a> | |
|
542 | <a href="/log/xyzzy?style=gitweb">changelog</a> | | |
539 | <a href="/graph/xyzzy?style=gitweb">graph</a> | |
|
543 | <a href="/graph/xyzzy?style=gitweb">graph</a> | | |
540 | <a href="/file/xyzzy?style=gitweb">files</a> | |
|
544 | <a href="/file/xyzzy?style=gitweb">files</a> | | |
541 | <a href="/raw-rev/xyzzy">raw</a> | <a href="/archive/xyzzy.zip">zip</a> | |
|
545 | <a href="/raw-rev/xyzzy">raw</a> | <a href="/archive/xyzzy.zip">zip</a> | | |
542 | <a class="title" href="/raw-rev/a7c1559b7bba"> |
|
546 | <a class="title" href="/raw-rev/a7c1559b7bba"> | |
543 | <td style="font-family:monospace"><a class="list" href="/rev/a7c1559b7bba?style=gitweb">a7c1559b7bba</a></td> |
|
547 | <td style="font-family:monospace"><a class="list" href="/rev/a7c1559b7bba?style=gitweb">a7c1559b7bba</a></td> | |
544 | <a class="list" href="/rev/43c799df6e75?style=gitweb">43c799df6e75</a> |
|
548 | <a class="list" href="/rev/43c799df6e75?style=gitweb">43c799df6e75</a> | |
545 | <a class="list" href="/rev/9d8c40cba617?style=gitweb">9d8c40cba617</a> |
|
549 | <a class="list" href="/rev/9d8c40cba617?style=gitweb">9d8c40cba617</a> | |
546 | <td><a class="list" href="/diff/a7c1559b7bba/foo?style=gitweb">foo</a></td> |
|
550 | <td><a class="list" href="/diff/a7c1559b7bba/foo?style=gitweb">foo</a></td> | |
547 | <a href="/file/a7c1559b7bba/foo?style=gitweb">file</a> | |
|
551 | <a href="/file/a7c1559b7bba/foo?style=gitweb">file</a> | | |
548 | <a href="/annotate/a7c1559b7bba/foo?style=gitweb">annotate</a> | |
|
552 | <a href="/annotate/a7c1559b7bba/foo?style=gitweb">annotate</a> | | |
549 | <a href="/diff/a7c1559b7bba/foo?style=gitweb">diff</a> | |
|
553 | <a href="/diff/a7c1559b7bba/foo?style=gitweb">diff</a> | | |
550 | <a href="/comparison/a7c1559b7bba/foo?style=gitweb">comparison</a> | |
|
554 | <a href="/comparison/a7c1559b7bba/foo?style=gitweb">comparison</a> | | |
551 | <a href="/log/a7c1559b7bba/foo?style=gitweb">revisions</a> |
|
555 | <a href="/log/a7c1559b7bba/foo?style=gitweb">revisions</a> | |
552 |
|
556 | |||
553 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'shortlog/xyzzy?style=gitweb' | egrep $REVLINKS |
|
557 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'shortlog/xyzzy?style=gitweb' | egrep $REVLINKS | |
554 | <a href="/log/xyzzy?style=gitweb">changelog</a> | |
|
558 | <a href="/log/xyzzy?style=gitweb">changelog</a> | | |
555 | <a href="/graph/xyzzy?style=gitweb">graph</a> | |
|
559 | <a href="/graph/xyzzy?style=gitweb">graph</a> | | |
556 | <a href="/file/xyzzy?style=gitweb">files</a> | <a href="/archive/xyzzy.zip">zip</a> | |
|
560 | <a href="/file/xyzzy?style=gitweb">files</a> | <a href="/archive/xyzzy.zip">zip</a> | | |
557 | <br/><a href="/shortlog/43c799df6e75?style=gitweb">(0)</a> <a href="/shortlog/tip?style=gitweb">tip</a> <br/> |
|
561 | <br/><a href="/shortlog/43c799df6e75?style=gitweb">(0)</a> <a href="/shortlog/tip?style=gitweb">tip</a> <br/> | |
558 | <a class="list" href="/rev/a7c1559b7bba?style=gitweb"> |
|
562 | <a class="list" href="/rev/a7c1559b7bba?style=gitweb"> | |
559 | <a href="/rev/a7c1559b7bba?style=gitweb">changeset</a> | |
|
563 | <a href="/rev/a7c1559b7bba?style=gitweb">changeset</a> | | |
560 | <a href="/file/a7c1559b7bba?style=gitweb">files</a> |
|
564 | <a href="/file/a7c1559b7bba?style=gitweb">files</a> | |
561 | <a class="list" href="/rev/43c799df6e75?style=gitweb"> |
|
565 | <a class="list" href="/rev/43c799df6e75?style=gitweb"> | |
562 | <a href="/rev/43c799df6e75?style=gitweb">changeset</a> | |
|
566 | <a href="/rev/43c799df6e75?style=gitweb">changeset</a> | | |
563 | <a href="/file/43c799df6e75?style=gitweb">files</a> |
|
567 | <a href="/file/43c799df6e75?style=gitweb">files</a> | |
564 | <a href="/shortlog/43c799df6e75?style=gitweb">(0)</a> <a href="/shortlog/tip?style=gitweb">tip</a> |
|
568 | <a href="/shortlog/43c799df6e75?style=gitweb">(0)</a> <a href="/shortlog/tip?style=gitweb">tip</a> | |
565 |
|
569 | |||
566 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'log/xyzzy?style=gitweb' | egrep $REVLINKS |
|
570 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'log/xyzzy?style=gitweb' | egrep $REVLINKS | |
567 | <a href="/shortlog/xyzzy?style=gitweb">shortlog</a> | |
|
571 | <a href="/shortlog/xyzzy?style=gitweb">shortlog</a> | | |
568 | <a href="/graph/xyzzy?style=gitweb">graph</a> | |
|
572 | <a href="/graph/xyzzy?style=gitweb">graph</a> | | |
569 | <a href="/file/xyzzy?style=gitweb">files</a> | <a href="/archive/xyzzy.zip">zip</a> | |
|
573 | <a href="/file/xyzzy?style=gitweb">files</a> | <a href="/archive/xyzzy.zip">zip</a> | | |
570 | <a href="/log/43c799df6e75?style=gitweb">(0)</a> <a href="/log/tip?style=gitweb">tip</a> <br/> |
|
574 | <a href="/log/43c799df6e75?style=gitweb">(0)</a> <a href="/log/tip?style=gitweb">tip</a> <br/> | |
571 | <a class="title" href="/rev/a7c1559b7bba?style=gitweb"> |
|
575 | <a class="title" href="/rev/a7c1559b7bba?style=gitweb"> | |
572 | <a href="/rev/a7c1559b7bba?style=gitweb">changeset</a><br/> |
|
576 | <a href="/rev/a7c1559b7bba?style=gitweb">changeset</a><br/> | |
573 | <a class="title" href="/rev/43c799df6e75?style=gitweb"> |
|
577 | <a class="title" href="/rev/43c799df6e75?style=gitweb"> | |
574 | <a href="/rev/43c799df6e75?style=gitweb">changeset</a><br/> |
|
578 | <a href="/rev/43c799df6e75?style=gitweb">changeset</a><br/> | |
575 | <a href="/log/43c799df6e75?style=gitweb">(0)</a> <a href="/log/tip?style=gitweb">tip</a> <br/> |
|
579 | <a href="/log/43c799df6e75?style=gitweb">(0)</a> <a href="/log/tip?style=gitweb">tip</a> <br/> | |
576 |
|
580 | |||
577 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'graph/xyzzy?style=gitweb' | egrep $REVLINKS |
|
581 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'graph/xyzzy?style=gitweb' | egrep $REVLINKS | |
578 | <a href="/shortlog/xyzzy?style=gitweb">shortlog</a> | |
|
582 | <a href="/shortlog/xyzzy?style=gitweb">shortlog</a> | | |
579 | <a href="/log/xyzzy?style=gitweb">changelog</a> | |
|
583 | <a href="/log/xyzzy?style=gitweb">changelog</a> | | |
580 | <a href="/file/xyzzy?style=gitweb">files</a> | |
|
584 | <a href="/file/xyzzy?style=gitweb">files</a> | <a href="/archive/xyzzy.zip">zip</a> | | |
581 | <a href="/graph/xyzzy?revcount=30&style=gitweb">less</a> |
|
585 | <a href="/graph/xyzzy?revcount=30&style=gitweb">less</a> | |
582 | <a href="/graph/xyzzy?revcount=120&style=gitweb">more</a> |
|
586 | <a href="/graph/xyzzy?revcount=120&style=gitweb">more</a> | |
583 | | <a href="/graph/43c799df6e75?style=gitweb">(0)</a> <a href="/graph/tip?style=gitweb">tip</a> |
|
587 | | <a href="/graph/43c799df6e75?style=gitweb">(0)</a> <a href="/graph/tip?style=gitweb">tip</a> | |
584 | <a class="list" href="/rev/a7c1559b7bba?style=gitweb"><b>second</b></a> |
|
588 | <a class="list" href="/rev/a7c1559b7bba?style=gitweb"><b>second</b></a> | |
585 | <a class="list" href="/rev/43c799df6e75?style=gitweb"><b>first</b></a> |
|
589 | <a class="list" href="/rev/43c799df6e75?style=gitweb"><b>first</b></a> | |
586 | <a href="/graph/xyzzy?revcount=30&style=gitweb">less</a> |
|
590 | <a href="/graph/xyzzy?revcount=30&style=gitweb">less</a> | |
587 | <a href="/graph/xyzzy?revcount=120&style=gitweb">more</a> |
|
591 | <a href="/graph/xyzzy?revcount=120&style=gitweb">more</a> | |
588 | | <a href="/graph/43c799df6e75?style=gitweb">(0)</a> <a href="/graph/tip?style=gitweb">tip</a> |
|
592 | | <a href="/graph/43c799df6e75?style=gitweb">(0)</a> <a href="/graph/tip?style=gitweb">tip</a> | |
589 |
|
593 | |||
590 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'file/xyzzy?style=gitweb' | egrep $REVLINKS |
|
594 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'file/xyzzy?style=gitweb' | egrep $REVLINKS | |
591 | <a href="/rev/xyzzy?style=gitweb">changeset</a> | <a href="/archive/xyzzy.zip">zip</a> | |
|
595 | <a href="/rev/xyzzy?style=gitweb">changeset</a> | <a href="/archive/xyzzy.zip">zip</a> | | |
592 | <a href="/file/xyzzy/dir?style=gitweb">dir</a> |
|
596 | <a href="/file/xyzzy/dir?style=gitweb">dir</a> | |
593 | <a href="/file/xyzzy/dir/?style=gitweb"></a> |
|
597 | <a href="/file/xyzzy/dir/?style=gitweb"></a> | |
594 | <a href="/file/xyzzy/dir?style=gitweb">files</a> |
|
598 | <a href="/file/xyzzy/dir?style=gitweb">files</a> | |
595 | <a class="list" href="/file/xyzzy/foo?style=gitweb">foo</a> |
|
599 | <a class="list" href="/file/xyzzy/foo?style=gitweb">foo</a> | |
596 | <a href="/file/xyzzy/foo?style=gitweb">file</a> | |
|
600 | <a href="/file/xyzzy/foo?style=gitweb">file</a> | | |
597 | <a href="/log/xyzzy/foo?style=gitweb">revisions</a> | |
|
601 | <a href="/log/xyzzy/foo?style=gitweb">revisions</a> | | |
598 | <a href="/annotate/xyzzy/foo?style=gitweb">annotate</a> |
|
602 | <a href="/annotate/xyzzy/foo?style=gitweb">annotate</a> | |
599 |
|
603 | |||
600 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'file/xyzzy/foo?style=gitweb' | egrep $REVLINKS |
|
604 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'file/xyzzy/foo?style=gitweb' | egrep $REVLINKS | |
601 | <a href="/file/xyzzy/?style=gitweb">files</a> | |
|
605 | <a href="/file/xyzzy/?style=gitweb">files</a> | | |
602 | <a href="/rev/xyzzy?style=gitweb">changeset</a> | |
|
606 | <a href="/rev/xyzzy?style=gitweb">changeset</a> | | |
603 | <a href="/file/tip/foo?style=gitweb">latest</a> | |
|
607 | <a href="/file/tip/foo?style=gitweb">latest</a> | | |
604 | <a href="/log/xyzzy/foo?style=gitweb">revisions</a> | |
|
608 | <a href="/log/xyzzy/foo?style=gitweb">revisions</a> | | |
605 | <a href="/annotate/xyzzy/foo?style=gitweb">annotate</a> | |
|
609 | <a href="/annotate/xyzzy/foo?style=gitweb">annotate</a> | | |
606 | <a href="/diff/xyzzy/foo?style=gitweb">diff</a> | |
|
610 | <a href="/diff/xyzzy/foo?style=gitweb">diff</a> | | |
607 | <a href="/comparison/xyzzy/foo?style=gitweb">comparison</a> | |
|
611 | <a href="/comparison/xyzzy/foo?style=gitweb">comparison</a> | | |
608 | <a href="/raw-file/xyzzy/foo">raw</a> | |
|
612 | <a href="/raw-file/xyzzy/foo">raw</a> | | |
609 | <td style="font-family:monospace"><a class="list" href="/rev/a7c1559b7bba?style=gitweb">a7c1559b7bba</a></td> |
|
613 | <td style="font-family:monospace"><a class="list" href="/rev/a7c1559b7bba?style=gitweb">a7c1559b7bba</a></td> | |
610 | <a class="list" href="/file/43c799df6e75/foo?style=gitweb"> |
|
614 | <a class="list" href="/file/43c799df6e75/foo?style=gitweb"> | |
611 | <a class="list" href="/file/9d8c40cba617/foo?style=gitweb">9d8c40cba617</a></td> |
|
615 | <a class="list" href="/file/9d8c40cba617/foo?style=gitweb">9d8c40cba617</a></td> | |
612 |
|
616 | |||
613 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'log/xyzzy/foo?style=gitweb' | egrep $REVLINKS |
|
617 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'log/xyzzy/foo?style=gitweb' | egrep $REVLINKS | |
614 | <a href="/file/xyzzy/foo?style=gitweb">file</a> | |
|
618 | <a href="/file/xyzzy/foo?style=gitweb">file</a> | | |
615 | <a href="/annotate/xyzzy/foo?style=gitweb">annotate</a> | |
|
619 | <a href="/annotate/xyzzy/foo?style=gitweb">annotate</a> | | |
616 | <a href="/diff/xyzzy/foo?style=gitweb">diff</a> | |
|
620 | <a href="/diff/xyzzy/foo?style=gitweb">diff</a> | | |
617 | <a href="/comparison/xyzzy/foo?style=gitweb">comparison</a> | |
|
621 | <a href="/comparison/xyzzy/foo?style=gitweb">comparison</a> | | |
618 | <a href="/rss-log/tip/foo">rss</a> | |
|
622 | <a href="/rss-log/tip/foo">rss</a> | | |
619 | <a href="/log/43c799df6e75/foo?style=gitweb">(0)</a> <a href="/log/tip/foo?style=gitweb">tip</a> |
|
623 | <a href="/log/43c799df6e75/foo?style=gitweb">(0)</a> <a href="/log/tip/foo?style=gitweb">tip</a> | |
620 | <a class="list" href="/rev/a7c1559b7bba?style=gitweb"> |
|
624 | <a class="list" href="/rev/a7c1559b7bba?style=gitweb"> | |
621 | <a href="/file/a7c1559b7bba/foo?style=gitweb">file</a> | |
|
625 | <a href="/file/a7c1559b7bba/foo?style=gitweb">file</a> | | |
622 | <a href="/diff/a7c1559b7bba/foo?style=gitweb">diff</a> | |
|
626 | <a href="/diff/a7c1559b7bba/foo?style=gitweb">diff</a> | | |
623 | <a href="/annotate/a7c1559b7bba/foo?style=gitweb">annotate</a> |
|
627 | <a href="/annotate/a7c1559b7bba/foo?style=gitweb">annotate</a> | |
624 | <a class="list" href="/rev/43c799df6e75?style=gitweb"> |
|
628 | <a class="list" href="/rev/43c799df6e75?style=gitweb"> | |
625 | <a href="/file/43c799df6e75/foo?style=gitweb">file</a> | |
|
629 | <a href="/file/43c799df6e75/foo?style=gitweb">file</a> | | |
626 | <a href="/diff/43c799df6e75/foo?style=gitweb">diff</a> | |
|
630 | <a href="/diff/43c799df6e75/foo?style=gitweb">diff</a> | | |
627 | <a href="/annotate/43c799df6e75/foo?style=gitweb">annotate</a> |
|
631 | <a href="/annotate/43c799df6e75/foo?style=gitweb">annotate</a> | |
628 | <a href="/log/xyzzy/foo?revcount=30&style=gitweb">less</a> |
|
632 | <a href="/log/xyzzy/foo?revcount=30&style=gitweb">less</a> | |
629 | <a href="/log/xyzzy/foo?revcount=120&style=gitweb">more</a> |
|
633 | <a href="/log/xyzzy/foo?revcount=120&style=gitweb">more</a> | |
630 | <a href="/log/43c799df6e75/foo?style=gitweb">(0)</a> <a href="/log/tip/foo?style=gitweb">tip</a> |
|
634 | <a href="/log/43c799df6e75/foo?style=gitweb">(0)</a> <a href="/log/tip/foo?style=gitweb">tip</a> | |
631 |
|
635 | |||
632 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'annotate/xyzzy/foo?style=gitweb' | egrep $REVLINKS |
|
636 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'annotate/xyzzy/foo?style=gitweb' | egrep $REVLINKS | |
633 | <a href="/file/xyzzy/?style=gitweb">files</a> | |
|
637 | <a href="/file/xyzzy/?style=gitweb">files</a> | | |
634 | <a href="/rev/xyzzy?style=gitweb">changeset</a> | |
|
638 | <a href="/rev/xyzzy?style=gitweb">changeset</a> | | |
635 | <a href="/file/xyzzy/foo?style=gitweb">file</a> | |
|
639 | <a href="/file/xyzzy/foo?style=gitweb">file</a> | | |
636 | <a href="/file/tip/foo?style=gitweb">latest</a> | |
|
640 | <a href="/file/tip/foo?style=gitweb">latest</a> | | |
637 | <a href="/log/xyzzy/foo?style=gitweb">revisions</a> | |
|
641 | <a href="/log/xyzzy/foo?style=gitweb">revisions</a> | | |
638 | <a href="/diff/xyzzy/foo?style=gitweb">diff</a> | |
|
642 | <a href="/diff/xyzzy/foo?style=gitweb">diff</a> | | |
639 | <a href="/comparison/xyzzy/foo?style=gitweb">comparison</a> | |
|
643 | <a href="/comparison/xyzzy/foo?style=gitweb">comparison</a> | | |
640 | <a href="/raw-file/xyzzy/foo">raw</a> | |
|
644 | <a href="/raw-file/xyzzy/foo">raw</a> | | |
641 | <td style="font-family:monospace"><a class="list" href="/rev/a7c1559b7bba?style=gitweb">a7c1559b7bba</a></td> |
|
645 | <td style="font-family:monospace"><a class="list" href="/rev/a7c1559b7bba?style=gitweb">a7c1559b7bba</a></td> | |
642 | <a class="list" href="/annotate/43c799df6e75/foo?style=gitweb"> |
|
646 | <a class="list" href="/annotate/43c799df6e75/foo?style=gitweb"> | |
643 | <a class="list" href="/annotate/9d8c40cba617/foo?style=gitweb">9d8c40cba617</a></td> |
|
647 | <a class="list" href="/annotate/9d8c40cba617/foo?style=gitweb">9d8c40cba617</a></td> | |
644 | <a href="/annotate/43c799df6e75/foo?style=gitweb#l1"> |
|
648 | <a href="/annotate/43c799df6e75/foo?style=gitweb#l1"> | |
645 | <a href="/annotate/43c799df6e75/foo?style=gitweb#l1"> |
|
649 | <a href="/annotate/43c799df6e75/foo?style=gitweb#l1"> | |
646 | <a href="/diff/43c799df6e75/foo?style=gitweb">diff</a> |
|
650 | <a href="/diff/43c799df6e75/foo?style=gitweb">diff</a> | |
647 | <a href="/rev/43c799df6e75?style=gitweb">changeset</a> |
|
651 | <a href="/rev/43c799df6e75?style=gitweb">changeset</a> | |
648 | <a href="/annotate/a7c1559b7bba/foo?style=gitweb#l2"> |
|
652 | <a href="/annotate/a7c1559b7bba/foo?style=gitweb#l2"> | |
649 | <a href="/annotate/a7c1559b7bba/foo?style=gitweb#l2"> |
|
653 | <a href="/annotate/a7c1559b7bba/foo?style=gitweb#l2"> | |
650 | <a href="/annotate/43c799df6e75/foo?style=gitweb">0</a></div> |
|
654 | <a href="/annotate/43c799df6e75/foo?style=gitweb">0</a></div> | |
651 | <a href="/diff/a7c1559b7bba/foo?style=gitweb">diff</a> |
|
655 | <a href="/diff/a7c1559b7bba/foo?style=gitweb">diff</a> | |
652 | <a href="/rev/a7c1559b7bba?style=gitweb">changeset</a> |
|
656 | <a href="/rev/a7c1559b7bba?style=gitweb">changeset</a> | |
653 |
|
657 | |||
654 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'diff/xyzzy/foo?style=gitweb' | egrep $REVLINKS |
|
658 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'diff/xyzzy/foo?style=gitweb' | egrep $REVLINKS | |
655 | <a href="/file/xyzzy?style=gitweb">files</a> | |
|
659 | <a href="/file/xyzzy?style=gitweb">files</a> | | |
656 | <a href="/rev/xyzzy?style=gitweb">changeset</a> | |
|
660 | <a href="/rev/xyzzy?style=gitweb">changeset</a> | | |
657 | <a href="/file/xyzzy/foo?style=gitweb">file</a> | |
|
661 | <a href="/file/xyzzy/foo?style=gitweb">file</a> | | |
658 | <a href="/file/tip/foo?style=gitweb">latest</a> | |
|
662 | <a href="/file/tip/foo?style=gitweb">latest</a> | | |
659 | <a href="/log/xyzzy/foo?style=gitweb">revisions</a> | |
|
663 | <a href="/log/xyzzy/foo?style=gitweb">revisions</a> | | |
660 | <a href="/annotate/xyzzy/foo?style=gitweb">annotate</a> | |
|
664 | <a href="/annotate/xyzzy/foo?style=gitweb">annotate</a> | | |
661 | <a href="/comparison/xyzzy/foo?style=gitweb">comparison</a> | |
|
665 | <a href="/comparison/xyzzy/foo?style=gitweb">comparison</a> | | |
662 | <a href="/raw-diff/xyzzy/foo">raw</a> | |
|
666 | <a href="/raw-diff/xyzzy/foo">raw</a> | | |
663 | <td style="font-family:monospace"><a class="list" href="/rev/a7c1559b7bba?style=gitweb">a7c1559b7bba</a></td> |
|
667 | <td style="font-family:monospace"><a class="list" href="/rev/a7c1559b7bba?style=gitweb">a7c1559b7bba</a></td> | |
664 | <a class="list" href="/diff/43c799df6e75/foo?style=gitweb"> |
|
668 | <a class="list" href="/diff/43c799df6e75/foo?style=gitweb"> | |
665 | <a class="list" href="/diff/9d8c40cba617/foo?style=gitweb">9d8c40cba617</a> |
|
669 | <a class="list" href="/diff/9d8c40cba617/foo?style=gitweb">9d8c40cba617</a> | |
666 |
|
670 | |||
667 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'comparison/xyzzy/foo?style=gitweb' | egrep $REVLINKS |
|
671 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'comparison/xyzzy/foo?style=gitweb' | egrep $REVLINKS | |
668 | <a href="/file/xyzzy?style=gitweb">files</a> | |
|
672 | <a href="/file/xyzzy?style=gitweb">files</a> | | |
669 | <a href="/rev/xyzzy?style=gitweb">changeset</a> | |
|
673 | <a href="/rev/xyzzy?style=gitweb">changeset</a> | | |
670 | <a href="/file/xyzzy/foo?style=gitweb">file</a> | |
|
674 | <a href="/file/xyzzy/foo?style=gitweb">file</a> | | |
671 | <a href="/file/tip/foo?style=gitweb">latest</a> | |
|
675 | <a href="/file/tip/foo?style=gitweb">latest</a> | | |
672 | <a href="/log/xyzzy/foo?style=gitweb">revisions</a> | |
|
676 | <a href="/log/xyzzy/foo?style=gitweb">revisions</a> | | |
673 | <a href="/annotate/xyzzy/foo?style=gitweb">annotate</a> | |
|
677 | <a href="/annotate/xyzzy/foo?style=gitweb">annotate</a> | | |
674 | <a href="/diff/xyzzy/foo?style=gitweb">diff</a> | |
|
678 | <a href="/diff/xyzzy/foo?style=gitweb">diff</a> | | |
675 | <a href="/raw-diff/xyzzy/foo">raw</a> | |
|
679 | <a href="/raw-diff/xyzzy/foo">raw</a> | | |
676 | <td style="font-family:monospace"><a class="list" href="/rev/a7c1559b7bba?style=gitweb">a7c1559b7bba</a></td> |
|
680 | <td style="font-family:monospace"><a class="list" href="/rev/a7c1559b7bba?style=gitweb">a7c1559b7bba</a></td> | |
677 | <a class="list" href="/comparison/43c799df6e75/foo?style=gitweb"> |
|
681 | <a class="list" href="/comparison/43c799df6e75/foo?style=gitweb"> | |
678 | <a class="list" href="/comparison/9d8c40cba617/foo?style=gitweb">9d8c40cba617</a> |
|
682 | <a class="list" href="/comparison/9d8c40cba617/foo?style=gitweb">9d8c40cba617</a> | |
679 |
|
683 | |||
680 | (De)referencing symbolic revisions (monoblue) |
|
684 | (De)referencing symbolic revisions (monoblue) | |
681 |
|
685 | |||
682 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'summary?style=monoblue' | egrep $REVLINKS |
|
686 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'summary?style=monoblue' | egrep $REVLINKS | |
683 | <li><a href="/archive/tip.zip">zip</a></li> |
|
687 | <li><a href="/archive/tip.zip">zip</a></li> | |
684 | <a href="/rev/9d8c40cba617?style=monoblue"> |
|
688 | <a href="/rev/9d8c40cba617?style=monoblue"> | |
685 | <a href="/rev/9d8c40cba617?style=monoblue">changeset</a> | |
|
689 | <a href="/rev/9d8c40cba617?style=monoblue">changeset</a> | | |
686 | <a href="/file/9d8c40cba617?style=monoblue">files</a> |
|
690 | <a href="/file/9d8c40cba617?style=monoblue">files</a> | |
687 | <a href="/rev/a7c1559b7bba?style=monoblue"> |
|
691 | <a href="/rev/a7c1559b7bba?style=monoblue"> | |
688 | <a href="/rev/a7c1559b7bba?style=monoblue">changeset</a> | |
|
692 | <a href="/rev/a7c1559b7bba?style=monoblue">changeset</a> | | |
689 | <a href="/file/a7c1559b7bba?style=monoblue">files</a> |
|
693 | <a href="/file/a7c1559b7bba?style=monoblue">files</a> | |
690 | <a href="/rev/43c799df6e75?style=monoblue"> |
|
694 | <a href="/rev/43c799df6e75?style=monoblue"> | |
691 | <a href="/rev/43c799df6e75?style=monoblue">changeset</a> | |
|
695 | <a href="/rev/43c799df6e75?style=monoblue">changeset</a> | | |
692 | <a href="/file/43c799df6e75?style=monoblue">files</a> |
|
696 | <a href="/file/43c799df6e75?style=monoblue">files</a> | |
693 | <td><a href="/rev/xyzzy?style=monoblue">xyzzy</a></td> |
|
697 | <td><a href="/rev/xyzzy?style=monoblue">xyzzy</a></td> | |
694 | <a href="/rev/a7c1559b7bba?style=monoblue">changeset</a> | |
|
698 | <a href="/rev/a7c1559b7bba?style=monoblue">changeset</a> | | |
695 | <a href="/log/a7c1559b7bba?style=monoblue">changelog</a> | |
|
699 | <a href="/log/a7c1559b7bba?style=monoblue">changelog</a> | | |
696 | <a href="/file/a7c1559b7bba?style=monoblue">files</a> |
|
700 | <a href="/file/a7c1559b7bba?style=monoblue">files</a> | |
697 | <td class="open"><a href="/shortlog/default?style=monoblue">default</a></td> |
|
701 | <td class="open"><a href="/shortlog/default?style=monoblue">default</a></td> | |
698 | <a href="/rev/9d8c40cba617?style=monoblue">changeset</a> | |
|
702 | <a href="/rev/9d8c40cba617?style=monoblue">changeset</a> | | |
699 | <a href="/log/9d8c40cba617?style=monoblue">changelog</a> | |
|
703 | <a href="/log/9d8c40cba617?style=monoblue">changelog</a> | | |
700 | <a href="/file/9d8c40cba617?style=monoblue">files</a> |
|
704 | <a href="/file/9d8c40cba617?style=monoblue">files</a> | |
701 |
|
705 | |||
702 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'shortlog?style=monoblue' | egrep $REVLINKS |
|
706 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'shortlog?style=monoblue' | egrep $REVLINKS | |
703 | <li><a href="/graph/tip?style=monoblue">graph</a></li> |
|
707 | <li><a href="/graph/tip?style=monoblue">graph</a></li> | |
704 | <li><a href="/file/tip?style=monoblue">files</a></li> |
|
708 | <li><a href="/file/tip?style=monoblue">files</a></li> | |
705 | <li><a href="/archive/tip.zip">zip</a></li> |
|
709 | <li><a href="/archive/tip.zip">zip</a></li> | |
706 | <a href="/rev/9d8c40cba617?style=monoblue"> |
|
710 | <a href="/rev/9d8c40cba617?style=monoblue"> | |
707 | <a href="/rev/9d8c40cba617?style=monoblue">changeset</a> | |
|
711 | <a href="/rev/9d8c40cba617?style=monoblue">changeset</a> | | |
708 | <a href="/file/9d8c40cba617?style=monoblue">files</a> |
|
712 | <a href="/file/9d8c40cba617?style=monoblue">files</a> | |
709 | <a href="/rev/a7c1559b7bba?style=monoblue"> |
|
713 | <a href="/rev/a7c1559b7bba?style=monoblue"> | |
710 | <a href="/rev/a7c1559b7bba?style=monoblue">changeset</a> | |
|
714 | <a href="/rev/a7c1559b7bba?style=monoblue">changeset</a> | | |
711 | <a href="/file/a7c1559b7bba?style=monoblue">files</a> |
|
715 | <a href="/file/a7c1559b7bba?style=monoblue">files</a> | |
712 | <a href="/rev/43c799df6e75?style=monoblue"> |
|
716 | <a href="/rev/43c799df6e75?style=monoblue"> | |
713 | <a href="/rev/43c799df6e75?style=monoblue">changeset</a> | |
|
717 | <a href="/rev/43c799df6e75?style=monoblue">changeset</a> | | |
714 | <a href="/file/43c799df6e75?style=monoblue">files</a> |
|
718 | <a href="/file/43c799df6e75?style=monoblue">files</a> | |
715 | <a href="/shortlog/43c799df6e75?style=monoblue">(0)</a> <a href="/shortlog/tip?style=monoblue">tip</a> |
|
719 | <a href="/shortlog/43c799df6e75?style=monoblue">(0)</a> <a href="/shortlog/tip?style=monoblue">tip</a> | |
716 |
|
720 | |||
717 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'log?style=monoblue' | egrep $REVLINKS |
|
721 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'log?style=monoblue' | egrep $REVLINKS | |
718 | <li><a href="/graph/tip?style=monoblue">graph</a></li> |
|
722 | <li><a href="/graph/tip?style=monoblue">graph</a></li> | |
719 | <li><a href="/file/tip?style=monoblue">files</a></li> |
|
723 | <li><a href="/file/tip?style=monoblue">files</a></li> | |
720 | <li><a href="/archive/tip.zip">zip</a></li> |
|
724 | <li><a href="/archive/tip.zip">zip</a></li> | |
721 | <a class="title" href="/rev/9d8c40cba617?style=monoblue"> |
|
725 | <a class="title" href="/rev/9d8c40cba617?style=monoblue"> | |
722 | <a class="title" href="/rev/a7c1559b7bba?style=monoblue"> |
|
726 | <a class="title" href="/rev/a7c1559b7bba?style=monoblue"> | |
723 | <a class="title" href="/rev/43c799df6e75?style=monoblue"> |
|
727 | <a class="title" href="/rev/43c799df6e75?style=monoblue"> | |
724 | <a href="/log/43c799df6e75?style=monoblue">(0)</a> <a href="/log/tip?style=monoblue">tip</a> |
|
728 | <a href="/log/43c799df6e75?style=monoblue">(0)</a> <a href="/log/tip?style=monoblue">tip</a> | |
725 |
|
729 | |||
726 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'graph?style=monoblue' | egrep $REVLINKS |
|
730 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'graph?style=monoblue' | egrep $REVLINKS | |
727 | <li><a href="/file/tip?style=monoblue">files</a></li> |
|
731 | <li><a href="/file/tip?style=monoblue">files</a></li> | |
|
732 | <li><a href="/archive/tip.zip">zip</a></li> | |||
728 | <a href="/rev/9d8c40cba617?style=monoblue">third</a> |
|
733 | <a href="/rev/9d8c40cba617?style=monoblue">third</a> | |
729 | <a href="/rev/a7c1559b7bba?style=monoblue">second</a> |
|
734 | <a href="/rev/a7c1559b7bba?style=monoblue">second</a> | |
730 | <a href="/rev/43c799df6e75?style=monoblue">first</a> |
|
735 | <a href="/rev/43c799df6e75?style=monoblue">first</a> | |
731 | <a href="/graph/tip?revcount=30&style=monoblue">less</a> |
|
736 | <a href="/graph/tip?revcount=30&style=monoblue">less</a> | |
732 | <a href="/graph/tip?revcount=120&style=monoblue">more</a> |
|
737 | <a href="/graph/tip?revcount=120&style=monoblue">more</a> | |
733 | | <a href="/graph/43c799df6e75?style=monoblue">(0)</a> <a href="/graph/tip?style=monoblue">tip</a> |
|
738 | | <a href="/graph/43c799df6e75?style=monoblue">(0)</a> <a href="/graph/tip?style=monoblue">tip</a> | |
734 |
|
739 | |||
735 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'tags?style=monoblue' | egrep $REVLINKS |
|
740 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'tags?style=monoblue' | egrep $REVLINKS | |
736 | <td><a href="/rev/tip?style=monoblue">tip</a></td> |
|
741 | <td><a href="/rev/tip?style=monoblue">tip</a></td> | |
737 | <a href="/rev/9d8c40cba617?style=monoblue">changeset</a> | |
|
742 | <a href="/rev/9d8c40cba617?style=monoblue">changeset</a> | | |
738 | <a href="/log/9d8c40cba617?style=monoblue">changelog</a> | |
|
743 | <a href="/log/9d8c40cba617?style=monoblue">changelog</a> | | |
739 | <a href="/file/9d8c40cba617?style=monoblue">files</a> |
|
744 | <a href="/file/9d8c40cba617?style=monoblue">files</a> | |
740 |
|
745 | |||
741 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'bookmarks?style=monoblue' | egrep $REVLINKS |
|
746 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'bookmarks?style=monoblue' | egrep $REVLINKS | |
742 | <td><a href="/rev/xyzzy?style=monoblue">xyzzy</a></td> |
|
747 | <td><a href="/rev/xyzzy?style=monoblue">xyzzy</a></td> | |
743 | <a href="/rev/a7c1559b7bba?style=monoblue">changeset</a> | |
|
748 | <a href="/rev/a7c1559b7bba?style=monoblue">changeset</a> | | |
744 | <a href="/log/a7c1559b7bba?style=monoblue">changelog</a> | |
|
749 | <a href="/log/a7c1559b7bba?style=monoblue">changelog</a> | | |
745 | <a href="/file/a7c1559b7bba?style=monoblue">files</a> |
|
750 | <a href="/file/a7c1559b7bba?style=monoblue">files</a> | |
746 |
|
751 | |||
747 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'branches?style=monoblue' | egrep $REVLINKS |
|
752 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'branches?style=monoblue' | egrep $REVLINKS | |
748 | <td class="open"><a href="/shortlog/default?style=monoblue">default</a></td> |
|
753 | <td class="open"><a href="/shortlog/default?style=monoblue">default</a></td> | |
749 | <a href="/rev/9d8c40cba617?style=monoblue">changeset</a> | |
|
754 | <a href="/rev/9d8c40cba617?style=monoblue">changeset</a> | | |
750 | <a href="/log/9d8c40cba617?style=monoblue">changelog</a> | |
|
755 | <a href="/log/9d8c40cba617?style=monoblue">changelog</a> | | |
751 | <a href="/file/9d8c40cba617?style=monoblue">files</a> |
|
756 | <a href="/file/9d8c40cba617?style=monoblue">files</a> | |
752 |
|
757 | |||
753 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'file?style=monoblue' | egrep $REVLINKS |
|
758 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'file?style=monoblue' | egrep $REVLINKS | |
754 | <li><a href="/graph/tip?style=monoblue">graph</a></li> |
|
759 | <li><a href="/graph/tip?style=monoblue">graph</a></li> | |
755 | <li><a href="/rev/tip?style=monoblue">changeset</a></li> |
|
760 | <li><a href="/rev/tip?style=monoblue">changeset</a></li> | |
756 | <li><a href="/archive/tip.zip">zip</a></li> |
|
761 | <li><a href="/archive/tip.zip">zip</a></li> | |
757 | <a href="/file/tip/dir?style=monoblue">dir</a> |
|
762 | <a href="/file/tip/dir?style=monoblue">dir</a> | |
758 | <a href="/file/tip/dir/?style=monoblue"></a> |
|
763 | <a href="/file/tip/dir/?style=monoblue"></a> | |
759 | <td><a href="/file/tip/dir?style=monoblue">files</a></td> |
|
764 | <td><a href="/file/tip/dir?style=monoblue">files</a></td> | |
760 | <td><a href="/file/tip/foo?style=monoblue">foo</a></td> |
|
765 | <td><a href="/file/tip/foo?style=monoblue">foo</a></td> | |
761 | <a href="/file/tip/foo?style=monoblue">file</a> | |
|
766 | <a href="/file/tip/foo?style=monoblue">file</a> | | |
762 | <a href="/log/tip/foo?style=monoblue">revisions</a> | |
|
767 | <a href="/log/tip/foo?style=monoblue">revisions</a> | | |
763 | <a href="/annotate/tip/foo?style=monoblue">annotate</a> |
|
768 | <a href="/annotate/tip/foo?style=monoblue">annotate</a> | |
764 |
|
769 | |||
765 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'shortlog?style=monoblue&rev=all()' | egrep $REVLINKS |
|
770 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'shortlog?style=monoblue&rev=all()' | egrep $REVLINKS | |
766 | <li><a href="/archive/tip.zip">zip</a></li> |
|
771 | <li><a href="/archive/tip.zip">zip</a></li> | |
767 | <a class="title" href="/rev/9d8c40cba617?style=monoblue"> |
|
772 | <a class="title" href="/rev/9d8c40cba617?style=monoblue"> | |
768 | <a class="title" href="/rev/a7c1559b7bba?style=monoblue"> |
|
773 | <a class="title" href="/rev/a7c1559b7bba?style=monoblue"> | |
769 | <a class="title" href="/rev/43c799df6e75?style=monoblue"> |
|
774 | <a class="title" href="/rev/43c799df6e75?style=monoblue"> | |
770 |
|
775 | |||
771 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'rev/xyzzy?style=monoblue' | egrep $REVLINKS |
|
776 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'rev/xyzzy?style=monoblue' | egrep $REVLINKS | |
772 | <li><a href="/graph/xyzzy?style=monoblue">graph</a></li> |
|
777 | <li><a href="/graph/xyzzy?style=monoblue">graph</a></li> | |
773 | <li><a href="/file/xyzzy?style=monoblue">files</a></li> |
|
778 | <li><a href="/file/xyzzy?style=monoblue">files</a></li> | |
774 | <li><a href="/raw-rev/xyzzy">raw</a></li> |
|
779 | <li><a href="/raw-rev/xyzzy">raw</a></li> | |
775 | <li><a href="/archive/xyzzy.zip">zip</a></li> |
|
780 | <li><a href="/archive/xyzzy.zip">zip</a></li> | |
776 | <a href="/raw-rev/a7c1559b7bba"> |
|
781 | <a href="/raw-rev/a7c1559b7bba"> | |
777 | <dd><a href="/rev/a7c1559b7bba?style=monoblue">a7c1559b7bba</a></dd> |
|
782 | <dd><a href="/rev/a7c1559b7bba?style=monoblue">a7c1559b7bba</a></dd> | |
778 | <dd><a href="/rev/43c799df6e75?style=monoblue">43c799df6e75</a></dd> |
|
783 | <dd><a href="/rev/43c799df6e75?style=monoblue">43c799df6e75</a></dd> | |
779 | <dd><a href="/rev/9d8c40cba617?style=monoblue">9d8c40cba617</a></dd> |
|
784 | <dd><a href="/rev/9d8c40cba617?style=monoblue">9d8c40cba617</a></dd> | |
780 | <td><a href="/diff/a7c1559b7bba/foo?style=monoblue">foo</a></td> |
|
785 | <td><a href="/diff/a7c1559b7bba/foo?style=monoblue">foo</a></td> | |
781 | <a href="/file/a7c1559b7bba/foo?style=monoblue">file</a> | |
|
786 | <a href="/file/a7c1559b7bba/foo?style=monoblue">file</a> | | |
782 | <a href="/annotate/a7c1559b7bba/foo?style=monoblue">annotate</a> | |
|
787 | <a href="/annotate/a7c1559b7bba/foo?style=monoblue">annotate</a> | | |
783 | <a href="/diff/a7c1559b7bba/foo?style=monoblue">diff</a> | |
|
788 | <a href="/diff/a7c1559b7bba/foo?style=monoblue">diff</a> | | |
784 | <a href="/comparison/a7c1559b7bba/foo?style=monoblue">comparison</a> | |
|
789 | <a href="/comparison/a7c1559b7bba/foo?style=monoblue">comparison</a> | | |
785 | <a href="/log/a7c1559b7bba/foo?style=monoblue">revisions</a> |
|
790 | <a href="/log/a7c1559b7bba/foo?style=monoblue">revisions</a> | |
786 |
|
791 | |||
787 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'shortlog/xyzzy?style=monoblue' | egrep $REVLINKS |
|
792 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'shortlog/xyzzy?style=monoblue' | egrep $REVLINKS | |
788 | <li><a href="/graph/xyzzy?style=monoblue">graph</a></li> |
|
793 | <li><a href="/graph/xyzzy?style=monoblue">graph</a></li> | |
789 | <li><a href="/file/xyzzy?style=monoblue">files</a></li> |
|
794 | <li><a href="/file/xyzzy?style=monoblue">files</a></li> | |
790 | <li><a href="/archive/xyzzy.zip">zip</a></li> |
|
795 | <li><a href="/archive/xyzzy.zip">zip</a></li> | |
791 | <a href="/rev/a7c1559b7bba?style=monoblue"> |
|
796 | <a href="/rev/a7c1559b7bba?style=monoblue"> | |
792 | <a href="/rev/a7c1559b7bba?style=monoblue">changeset</a> | |
|
797 | <a href="/rev/a7c1559b7bba?style=monoblue">changeset</a> | | |
793 | <a href="/file/a7c1559b7bba?style=monoblue">files</a> |
|
798 | <a href="/file/a7c1559b7bba?style=monoblue">files</a> | |
794 | <a href="/rev/43c799df6e75?style=monoblue"> |
|
799 | <a href="/rev/43c799df6e75?style=monoblue"> | |
795 | <a href="/rev/43c799df6e75?style=monoblue">changeset</a> | |
|
800 | <a href="/rev/43c799df6e75?style=monoblue">changeset</a> | | |
796 | <a href="/file/43c799df6e75?style=monoblue">files</a> |
|
801 | <a href="/file/43c799df6e75?style=monoblue">files</a> | |
797 | <a href="/shortlog/43c799df6e75?style=monoblue">(0)</a> <a href="/shortlog/tip?style=monoblue">tip</a> |
|
802 | <a href="/shortlog/43c799df6e75?style=monoblue">(0)</a> <a href="/shortlog/tip?style=monoblue">tip</a> | |
798 |
|
803 | |||
799 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'log/xyzzy?style=monoblue' | egrep $REVLINKS |
|
804 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'log/xyzzy?style=monoblue' | egrep $REVLINKS | |
800 | <li><a href="/graph/xyzzy?style=monoblue">graph</a></li> |
|
805 | <li><a href="/graph/xyzzy?style=monoblue">graph</a></li> | |
801 | <li><a href="/file/xyzzy?style=monoblue">files</a></li> |
|
806 | <li><a href="/file/xyzzy?style=monoblue">files</a></li> | |
802 | <li><a href="/archive/xyzzy.zip">zip</a></li> |
|
807 | <li><a href="/archive/xyzzy.zip">zip</a></li> | |
803 | <a class="title" href="/rev/a7c1559b7bba?style=monoblue"> |
|
808 | <a class="title" href="/rev/a7c1559b7bba?style=monoblue"> | |
804 | <a class="title" href="/rev/43c799df6e75?style=monoblue"> |
|
809 | <a class="title" href="/rev/43c799df6e75?style=monoblue"> | |
805 | <a href="/log/43c799df6e75?style=monoblue">(0)</a> <a href="/log/tip?style=monoblue">tip</a> |
|
810 | <a href="/log/43c799df6e75?style=monoblue">(0)</a> <a href="/log/tip?style=monoblue">tip</a> | |
806 |
|
811 | |||
807 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'graph/xyzzy?style=monoblue' | egrep $REVLINKS |
|
812 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'graph/xyzzy?style=monoblue' | egrep $REVLINKS | |
808 | <li><a href="/file/xyzzy?style=monoblue">files</a></li> |
|
813 | <li><a href="/file/xyzzy?style=monoblue">files</a></li> | |
|
814 | <li><a href="/archive/xyzzy.zip">zip</a></li> | |||
809 | <a href="/rev/a7c1559b7bba?style=monoblue">second</a> |
|
815 | <a href="/rev/a7c1559b7bba?style=monoblue">second</a> | |
810 | <a href="/rev/43c799df6e75?style=monoblue">first</a> |
|
816 | <a href="/rev/43c799df6e75?style=monoblue">first</a> | |
811 | <a href="/graph/xyzzy?revcount=30&style=monoblue">less</a> |
|
817 | <a href="/graph/xyzzy?revcount=30&style=monoblue">less</a> | |
812 | <a href="/graph/xyzzy?revcount=120&style=monoblue">more</a> |
|
818 | <a href="/graph/xyzzy?revcount=120&style=monoblue">more</a> | |
813 | | <a href="/graph/43c799df6e75?style=monoblue">(0)</a> <a href="/graph/tip?style=monoblue">tip</a> |
|
819 | | <a href="/graph/43c799df6e75?style=monoblue">(0)</a> <a href="/graph/tip?style=monoblue">tip</a> | |
814 |
|
820 | |||
815 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'file/xyzzy?style=monoblue' | egrep $REVLINKS |
|
821 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'file/xyzzy?style=monoblue' | egrep $REVLINKS | |
816 | <li><a href="/graph/xyzzy?style=monoblue">graph</a></li> |
|
822 | <li><a href="/graph/xyzzy?style=monoblue">graph</a></li> | |
817 | <li><a href="/rev/xyzzy?style=monoblue">changeset</a></li> |
|
823 | <li><a href="/rev/xyzzy?style=monoblue">changeset</a></li> | |
818 | <li><a href="/archive/xyzzy.zip">zip</a></li> |
|
824 | <li><a href="/archive/xyzzy.zip">zip</a></li> | |
819 | <a href="/file/xyzzy/dir?style=monoblue">dir</a> |
|
825 | <a href="/file/xyzzy/dir?style=monoblue">dir</a> | |
820 | <a href="/file/xyzzy/dir/?style=monoblue"></a> |
|
826 | <a href="/file/xyzzy/dir/?style=monoblue"></a> | |
821 | <td><a href="/file/xyzzy/dir?style=monoblue">files</a></td> |
|
827 | <td><a href="/file/xyzzy/dir?style=monoblue">files</a></td> | |
822 | <td><a href="/file/xyzzy/foo?style=monoblue">foo</a></td> |
|
828 | <td><a href="/file/xyzzy/foo?style=monoblue">foo</a></td> | |
823 | <a href="/file/xyzzy/foo?style=monoblue">file</a> | |
|
829 | <a href="/file/xyzzy/foo?style=monoblue">file</a> | | |
824 | <a href="/log/xyzzy/foo?style=monoblue">revisions</a> | |
|
830 | <a href="/log/xyzzy/foo?style=monoblue">revisions</a> | | |
825 | <a href="/annotate/xyzzy/foo?style=monoblue">annotate</a> |
|
831 | <a href="/annotate/xyzzy/foo?style=monoblue">annotate</a> | |
826 |
|
832 | |||
827 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'file/xyzzy/foo?style=monoblue' | egrep $REVLINKS |
|
833 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'file/xyzzy/foo?style=monoblue' | egrep $REVLINKS | |
828 | <li><a href="/graph/xyzzy?style=monoblue">graph</a></li> |
|
834 | <li><a href="/graph/xyzzy?style=monoblue">graph</a></li> | |
829 | <li><a href="/file/xyzzy/?style=monoblue">files</a></li> |
|
835 | <li><a href="/file/xyzzy/?style=monoblue">files</a></li> | |
830 | <li><a href="/file/tip/foo?style=monoblue">latest</a></li> |
|
836 | <li><a href="/file/tip/foo?style=monoblue">latest</a></li> | |
831 | <li><a href="/log/xyzzy/foo?style=monoblue">revisions</a></li> |
|
837 | <li><a href="/log/xyzzy/foo?style=monoblue">revisions</a></li> | |
832 | <li><a href="/annotate/xyzzy/foo?style=monoblue">annotate</a></li> |
|
838 | <li><a href="/annotate/xyzzy/foo?style=monoblue">annotate</a></li> | |
833 | <li><a href="/diff/xyzzy/foo?style=monoblue">diff</a></li> |
|
839 | <li><a href="/diff/xyzzy/foo?style=monoblue">diff</a></li> | |
834 | <li><a href="/comparison/xyzzy/foo?style=monoblue">comparison</a></li> |
|
840 | <li><a href="/comparison/xyzzy/foo?style=monoblue">comparison</a></li> | |
835 | <li><a href="/raw-file/xyzzy/foo">raw</a></li> |
|
841 | <li><a href="/raw-file/xyzzy/foo">raw</a></li> | |
836 | <dd><a class="list" href="/rev/a7c1559b7bba?style=monoblue">a7c1559b7bba</a></dd> |
|
842 | <dd><a class="list" href="/rev/a7c1559b7bba?style=monoblue">a7c1559b7bba</a></dd> | |
837 | <a href="/file/43c799df6e75/foo?style=monoblue"> |
|
843 | <a href="/file/43c799df6e75/foo?style=monoblue"> | |
838 | <a href="/file/9d8c40cba617/foo?style=monoblue">9d8c40cba617</a> |
|
844 | <a href="/file/9d8c40cba617/foo?style=monoblue">9d8c40cba617</a> | |
839 |
|
845 | |||
840 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'log/xyzzy/foo?style=monoblue' | egrep $REVLINKS |
|
846 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'log/xyzzy/foo?style=monoblue' | egrep $REVLINKS | |
841 | <li><a href="/graph/xyzzy?style=monoblue">graph</a></li> |
|
847 | <li><a href="/graph/xyzzy?style=monoblue">graph</a></li> | |
842 | <li><a href="/file/xyzzy?style=monoblue">files</a></li> |
|
848 | <li><a href="/file/xyzzy?style=monoblue">files</a></li> | |
843 | <li><a href="/file/xyzzy/foo?style=monoblue">file</a></li> |
|
849 | <li><a href="/file/xyzzy/foo?style=monoblue">file</a></li> | |
844 | <li><a href="/annotate/xyzzy/foo?style=monoblue">annotate</a></li> |
|
850 | <li><a href="/annotate/xyzzy/foo?style=monoblue">annotate</a></li> | |
845 | <li><a href="/diff/xyzzy/foo?style=monoblue">diff</a></li> |
|
851 | <li><a href="/diff/xyzzy/foo?style=monoblue">diff</a></li> | |
846 | <li><a href="/comparison/xyzzy/foo?style=monoblue">comparison</a></li> |
|
852 | <li><a href="/comparison/xyzzy/foo?style=monoblue">comparison</a></li> | |
847 | <li><a href="/rss-log/tip/foo">rss</a></li> |
|
853 | <li><a href="/rss-log/tip/foo">rss</a></li> | |
848 | <a href="/rev/a7c1559b7bba?style=monoblue"> |
|
854 | <a href="/rev/a7c1559b7bba?style=monoblue"> | |
849 | <a href="/file/a7c1559b7bba/foo?style=monoblue">file</a> | |
|
855 | <a href="/file/a7c1559b7bba/foo?style=monoblue">file</a> | | |
850 | <a href="/diff/a7c1559b7bba/foo?style=monoblue">diff</a> | |
|
856 | <a href="/diff/a7c1559b7bba/foo?style=monoblue">diff</a> | | |
851 | <a href="/annotate/a7c1559b7bba/foo?style=monoblue">annotate</a> |
|
857 | <a href="/annotate/a7c1559b7bba/foo?style=monoblue">annotate</a> | |
852 | <a href="/rev/43c799df6e75?style=monoblue"> |
|
858 | <a href="/rev/43c799df6e75?style=monoblue"> | |
853 | <a href="/file/43c799df6e75/foo?style=monoblue">file</a> | |
|
859 | <a href="/file/43c799df6e75/foo?style=monoblue">file</a> | | |
854 | <a href="/diff/43c799df6e75/foo?style=monoblue">diff</a> | |
|
860 | <a href="/diff/43c799df6e75/foo?style=monoblue">diff</a> | | |
855 | <a href="/annotate/43c799df6e75/foo?style=monoblue">annotate</a> |
|
861 | <a href="/annotate/43c799df6e75/foo?style=monoblue">annotate</a> | |
856 | <a href="/log/43c799df6e75/foo?style=monoblue">(0)</a> <a href="/log/tip/foo?style=monoblue">tip</a> |
|
862 | <a href="/log/43c799df6e75/foo?style=monoblue">(0)</a> <a href="/log/tip/foo?style=monoblue">tip</a> | |
857 |
|
863 | |||
858 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'annotate/xyzzy/foo?style=monoblue' | egrep $REVLINKS |
|
864 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'annotate/xyzzy/foo?style=monoblue' | egrep $REVLINKS | |
859 | <li><a href="/graph/xyzzy?style=monoblue">graph</a></li> |
|
865 | <li><a href="/graph/xyzzy?style=monoblue">graph</a></li> | |
860 | <li><a href="/file/xyzzy/?style=monoblue">files</a></li> |
|
866 | <li><a href="/file/xyzzy/?style=monoblue">files</a></li> | |
861 | <li><a href="/file/xyzzy/foo?style=monoblue">file</a></li> |
|
867 | <li><a href="/file/xyzzy/foo?style=monoblue">file</a></li> | |
862 | <li><a href="/file/tip/foo?style=monoblue">latest</a></li> |
|
868 | <li><a href="/file/tip/foo?style=monoblue">latest</a></li> | |
863 | <li><a href="/log/xyzzy/foo?style=monoblue">revisions</a></li> |
|
869 | <li><a href="/log/xyzzy/foo?style=monoblue">revisions</a></li> | |
864 | <li><a href="/diff/xyzzy/foo?style=monoblue">diff</a></li> |
|
870 | <li><a href="/diff/xyzzy/foo?style=monoblue">diff</a></li> | |
865 | <li><a href="/comparison/xyzzy/foo?style=monoblue">comparison</a></li> |
|
871 | <li><a href="/comparison/xyzzy/foo?style=monoblue">comparison</a></li> | |
866 | <li><a href="/raw-file/xyzzy/foo">raw</a></li> |
|
872 | <li><a href="/raw-file/xyzzy/foo">raw</a></li> | |
867 | <dd><a href="/rev/a7c1559b7bba?style=monoblue">a7c1559b7bba</a></dd> |
|
873 | <dd><a href="/rev/a7c1559b7bba?style=monoblue">a7c1559b7bba</a></dd> | |
868 | <a href="/annotate/43c799df6e75/foo?style=monoblue"> |
|
874 | <a href="/annotate/43c799df6e75/foo?style=monoblue"> | |
869 | <a href="/annotate/9d8c40cba617/foo?style=monoblue">9d8c40cba617</a> |
|
875 | <a href="/annotate/9d8c40cba617/foo?style=monoblue">9d8c40cba617</a> | |
870 | <a href="/annotate/43c799df6e75/foo?style=monoblue#l1"> |
|
876 | <a href="/annotate/43c799df6e75/foo?style=monoblue#l1"> | |
871 | <a href="/annotate/43c799df6e75/foo?style=monoblue#l1"> |
|
877 | <a href="/annotate/43c799df6e75/foo?style=monoblue#l1"> | |
872 | <a href="/diff/43c799df6e75/foo?style=monoblue">diff</a> |
|
878 | <a href="/diff/43c799df6e75/foo?style=monoblue">diff</a> | |
873 | <a href="/rev/43c799df6e75?style=monoblue">changeset</a> |
|
879 | <a href="/rev/43c799df6e75?style=monoblue">changeset</a> | |
874 | <a href="/annotate/a7c1559b7bba/foo?style=monoblue#l2"> |
|
880 | <a href="/annotate/a7c1559b7bba/foo?style=monoblue#l2"> | |
875 | <a href="/annotate/a7c1559b7bba/foo?style=monoblue#l2"> |
|
881 | <a href="/annotate/a7c1559b7bba/foo?style=monoblue#l2"> | |
876 | <a href="/annotate/43c799df6e75/foo?style=monoblue">0</a></div> |
|
882 | <a href="/annotate/43c799df6e75/foo?style=monoblue">0</a></div> | |
877 | <a href="/diff/a7c1559b7bba/foo?style=monoblue">diff</a> |
|
883 | <a href="/diff/a7c1559b7bba/foo?style=monoblue">diff</a> | |
878 | <a href="/rev/a7c1559b7bba?style=monoblue">changeset</a> |
|
884 | <a href="/rev/a7c1559b7bba?style=monoblue">changeset</a> | |
879 |
|
885 | |||
880 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'diff/xyzzy/foo?style=monoblue' | egrep $REVLINKS |
|
886 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'diff/xyzzy/foo?style=monoblue' | egrep $REVLINKS | |
881 | <li><a href="/graph/xyzzy?style=monoblue">graph</a></li> |
|
887 | <li><a href="/graph/xyzzy?style=monoblue">graph</a></li> | |
882 | <li><a href="/file/xyzzy?style=monoblue">files</a></li> |
|
888 | <li><a href="/file/xyzzy?style=monoblue">files</a></li> | |
883 | <li><a href="/file/xyzzy/foo?style=monoblue">file</a></li> |
|
889 | <li><a href="/file/xyzzy/foo?style=monoblue">file</a></li> | |
884 | <li><a href="/file/tip/foo?style=monoblue">latest</a></li> |
|
890 | <li><a href="/file/tip/foo?style=monoblue">latest</a></li> | |
885 | <li><a href="/log/xyzzy/foo?style=monoblue">revisions</a></li> |
|
891 | <li><a href="/log/xyzzy/foo?style=monoblue">revisions</a></li> | |
886 | <li><a href="/annotate/xyzzy/foo?style=monoblue">annotate</a></li> |
|
892 | <li><a href="/annotate/xyzzy/foo?style=monoblue">annotate</a></li> | |
887 | <li><a href="/comparison/xyzzy/foo?style=monoblue">comparison</a></li> |
|
893 | <li><a href="/comparison/xyzzy/foo?style=monoblue">comparison</a></li> | |
888 | <li><a href="/raw-diff/xyzzy/foo">raw</a></li> |
|
894 | <li><a href="/raw-diff/xyzzy/foo">raw</a></li> | |
889 | <dd><a href="/rev/a7c1559b7bba?style=monoblue">a7c1559b7bba</a></dd> |
|
895 | <dd><a href="/rev/a7c1559b7bba?style=monoblue">a7c1559b7bba</a></dd> | |
890 | <dd><a href="/diff/43c799df6e75/foo?style=monoblue">43c799df6e75</a></dd> |
|
896 | <dd><a href="/diff/43c799df6e75/foo?style=monoblue">43c799df6e75</a></dd> | |
891 | <dd><a href="/diff/9d8c40cba617/foo?style=monoblue">9d8c40cba617</a></dd> |
|
897 | <dd><a href="/diff/9d8c40cba617/foo?style=monoblue">9d8c40cba617</a></dd> | |
892 |
|
898 | |||
893 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'comparison/xyzzy/foo?style=monoblue' | egrep $REVLINKS |
|
899 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'comparison/xyzzy/foo?style=monoblue' | egrep $REVLINKS | |
894 | <li><a href="/graph/xyzzy?style=monoblue">graph</a></li> |
|
900 | <li><a href="/graph/xyzzy?style=monoblue">graph</a></li> | |
895 | <li><a href="/file/xyzzy?style=monoblue">files</a></li> |
|
901 | <li><a href="/file/xyzzy?style=monoblue">files</a></li> | |
896 | <li><a href="/file/xyzzy/foo?style=monoblue">file</a></li> |
|
902 | <li><a href="/file/xyzzy/foo?style=monoblue">file</a></li> | |
897 | <li><a href="/file/tip/foo?style=monoblue">latest</a></li> |
|
903 | <li><a href="/file/tip/foo?style=monoblue">latest</a></li> | |
898 | <li><a href="/log/xyzzy/foo?style=monoblue">revisions</a></li> |
|
904 | <li><a href="/log/xyzzy/foo?style=monoblue">revisions</a></li> | |
899 | <li><a href="/annotate/xyzzy/foo?style=monoblue">annotate</a></li> |
|
905 | <li><a href="/annotate/xyzzy/foo?style=monoblue">annotate</a></li> | |
900 | <li><a href="/diff/xyzzy/foo?style=monoblue">diff</a></li> |
|
906 | <li><a href="/diff/xyzzy/foo?style=monoblue">diff</a></li> | |
901 | <li><a href="/raw-diff/xyzzy/foo">raw</a></li> |
|
907 | <li><a href="/raw-diff/xyzzy/foo">raw</a></li> | |
902 | <dd><a href="/rev/a7c1559b7bba?style=monoblue">a7c1559b7bba</a></dd> |
|
908 | <dd><a href="/rev/a7c1559b7bba?style=monoblue">a7c1559b7bba</a></dd> | |
903 | <dd><a href="/comparison/43c799df6e75/foo?style=monoblue">43c799df6e75</a></dd> |
|
909 | <dd><a href="/comparison/43c799df6e75/foo?style=monoblue">43c799df6e75</a></dd> | |
904 | <dd><a href="/comparison/9d8c40cba617/foo?style=monoblue">9d8c40cba617</a></dd> |
|
910 | <dd><a href="/comparison/9d8c40cba617/foo?style=monoblue">9d8c40cba617</a></dd> | |
905 |
|
911 | |||
906 | (De)referencing symbolic revisions (spartan) |
|
912 | (De)referencing symbolic revisions (spartan) | |
907 |
|
913 | |||
908 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'shortlog?style=spartan' | egrep $REVLINKS |
|
914 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'shortlog?style=spartan' | egrep $REVLINKS | |
909 | <a href="/log/tip?style=spartan">changelog</a> |
|
915 | <a href="/log/tip?style=spartan">changelog</a> | |
910 | <a href="/graph/tip?style=spartan">graph</a> |
|
916 | <a href="/graph/tip?style=spartan">graph</a> | |
911 | <a href="/file/tip/?style=spartan">files</a> |
|
917 | <a href="/file/tip/?style=spartan">files</a> | |
912 | <a href="/archive/tip.zip">zip</a> |
|
918 | <a href="/archive/tip.zip">zip</a> | |
913 | navigate: <small class="navigate"><a href="/shortlog/43c799df6e75?style=spartan">(0)</a> <a href="/shortlog/tip?style=spartan">tip</a> </small> |
|
919 | navigate: <small class="navigate"><a href="/shortlog/43c799df6e75?style=spartan">(0)</a> <a href="/shortlog/tip?style=spartan">tip</a> </small> | |
914 | <td class="node"><a href="/rev/9d8c40cba617?style=spartan">third</a></td> |
|
920 | <td class="node"><a href="/rev/9d8c40cba617?style=spartan">third</a></td> | |
915 | <td class="node"><a href="/rev/a7c1559b7bba?style=spartan">second</a></td> |
|
921 | <td class="node"><a href="/rev/a7c1559b7bba?style=spartan">second</a></td> | |
916 | <td class="node"><a href="/rev/43c799df6e75?style=spartan">first</a></td> |
|
922 | <td class="node"><a href="/rev/43c799df6e75?style=spartan">first</a></td> | |
917 | navigate: <small class="navigate"><a href="/shortlog/43c799df6e75?style=spartan">(0)</a> <a href="/shortlog/tip?style=spartan">tip</a> </small> |
|
923 | navigate: <small class="navigate"><a href="/shortlog/43c799df6e75?style=spartan">(0)</a> <a href="/shortlog/tip?style=spartan">tip</a> </small> | |
918 |
|
924 | |||
919 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'log?style=spartan' | egrep $REVLINKS |
|
925 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'log?style=spartan' | egrep $REVLINKS | |
920 | <a href="/shortlog/tip?style=spartan">shortlog</a> |
|
926 | <a href="/shortlog/tip?style=spartan">shortlog</a> | |
921 | <a href="/graph/tip?style=spartan">graph</a> |
|
927 | <a href="/graph/tip?style=spartan">graph</a> | |
922 | <a href="/file/tip?style=spartan">files</a> |
|
928 | <a href="/file/tip?style=spartan">files</a> | |
923 | <a href="/archive/tip.zip">zip</a> |
|
929 | <a href="/archive/tip.zip">zip</a> | |
924 | navigate: <small class="navigate"><a href="/log/43c799df6e75?style=spartan">(0)</a> <a href="/log/tip?style=spartan">tip</a> </small> |
|
930 | navigate: <small class="navigate"><a href="/log/43c799df6e75?style=spartan">(0)</a> <a href="/log/tip?style=spartan">tip</a> </small> | |
925 | <td class="node"><a href="/rev/9d8c40cba617?style=spartan">9d8c40cba617</a></td> |
|
931 | <td class="node"><a href="/rev/9d8c40cba617?style=spartan">9d8c40cba617</a></td> | |
926 | <th class="files"><a href="/file/9d8c40cba617?style=spartan">files</a>:</th> |
|
932 | <th class="files"><a href="/file/9d8c40cba617?style=spartan">files</a>:</th> | |
927 | <td class="files"><a href="/diff/9d8c40cba617/foo?style=spartan">foo</a> </td> |
|
933 | <td class="files"><a href="/diff/9d8c40cba617/foo?style=spartan">foo</a> </td> | |
928 | <td class="node"><a href="/rev/a7c1559b7bba?style=spartan">a7c1559b7bba</a></td> |
|
934 | <td class="node"><a href="/rev/a7c1559b7bba?style=spartan">a7c1559b7bba</a></td> | |
929 | <th class="files"><a href="/file/a7c1559b7bba?style=spartan">files</a>:</th> |
|
935 | <th class="files"><a href="/file/a7c1559b7bba?style=spartan">files</a>:</th> | |
930 | <td class="files"><a href="/diff/a7c1559b7bba/foo?style=spartan">foo</a> </td> |
|
936 | <td class="files"><a href="/diff/a7c1559b7bba/foo?style=spartan">foo</a> </td> | |
931 | <td class="node"><a href="/rev/43c799df6e75?style=spartan">43c799df6e75</a></td> |
|
937 | <td class="node"><a href="/rev/43c799df6e75?style=spartan">43c799df6e75</a></td> | |
932 | <th class="files"><a href="/file/43c799df6e75?style=spartan">files</a>:</th> |
|
938 | <th class="files"><a href="/file/43c799df6e75?style=spartan">files</a>:</th> | |
933 | <td class="files"><a href="/diff/43c799df6e75/dir/bar?style=spartan">dir/bar</a> <a href="/diff/43c799df6e75/foo?style=spartan">foo</a> </td> |
|
939 | <td class="files"><a href="/diff/43c799df6e75/dir/bar?style=spartan">dir/bar</a> <a href="/diff/43c799df6e75/foo?style=spartan">foo</a> </td> | |
934 | navigate: <small class="navigate"><a href="/log/43c799df6e75?style=spartan">(0)</a> <a href="/log/tip?style=spartan">tip</a> </small> |
|
940 | navigate: <small class="navigate"><a href="/log/43c799df6e75?style=spartan">(0)</a> <a href="/log/tip?style=spartan">tip</a> </small> | |
935 |
|
941 | |||
936 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'graph?style=spartan' | egrep $REVLINKS |
|
942 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'graph?style=spartan' | egrep $REVLINKS | |
937 | <a href="/log/tip?style=spartan">changelog</a> |
|
943 | <a href="/log/tip?style=spartan">changelog</a> | |
938 | <a href="/shortlog/tip?style=spartan">shortlog</a> |
|
944 | <a href="/shortlog/tip?style=spartan">shortlog</a> | |
939 | <a href="/file/tip/?style=spartan">files</a> |
|
945 | <a href="/file/tip/?style=spartan">files</a> | |
940 | navigate: <small class="navigate"><a href="/graph/43c799df6e75?style=spartan">(0)</a> <a href="/graph/tip?style=spartan">tip</a> </small> |
|
946 | navigate: <small class="navigate"><a href="/graph/43c799df6e75?style=spartan">(0)</a> <a href="/graph/tip?style=spartan">tip</a> </small> | |
941 | <a href="/rev/9d8c40cba617?style=spartan">third</a> |
|
947 | <a href="/rev/9d8c40cba617?style=spartan">third</a> | |
942 | <a href="/rev/a7c1559b7bba?style=spartan">second</a> |
|
948 | <a href="/rev/a7c1559b7bba?style=spartan">second</a> | |
943 | <a href="/rev/43c799df6e75?style=spartan">first</a> |
|
949 | <a href="/rev/43c799df6e75?style=spartan">first</a> | |
944 | navigate: <small class="navigate"><a href="/graph/43c799df6e75?style=spartan">(0)</a> <a href="/graph/tip?style=spartan">tip</a> </small> |
|
950 | navigate: <small class="navigate"><a href="/graph/43c799df6e75?style=spartan">(0)</a> <a href="/graph/tip?style=spartan">tip</a> </small> | |
945 |
|
951 | |||
946 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'tags?style=spartan' | egrep $REVLINKS |
|
952 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'tags?style=spartan' | egrep $REVLINKS | |
947 | <a href="/rev/9d8c40cba617?style=spartan">tip</a> |
|
953 | <a href="/rev/9d8c40cba617?style=spartan">tip</a> | |
948 |
|
954 | |||
949 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'branches?style=spartan' | egrep $REVLINKS |
|
955 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'branches?style=spartan' | egrep $REVLINKS | |
950 | <a href="/shortlog/9d8c40cba617?style=spartan" class="open">default</a> |
|
956 | <a href="/shortlog/9d8c40cba617?style=spartan" class="open">default</a> | |
951 |
|
957 | |||
952 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'file?style=spartan' | egrep $REVLINKS |
|
958 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'file?style=spartan' | egrep $REVLINKS | |
953 | <a href="/log/tip?style=spartan">changelog</a> |
|
959 | <a href="/log/tip?style=spartan">changelog</a> | |
954 | <a href="/shortlog/tip?style=spartan">shortlog</a> |
|
960 | <a href="/shortlog/tip?style=spartan">shortlog</a> | |
955 | <a href="/graph/tip?style=spartan">graph</a> |
|
961 | <a href="/graph/tip?style=spartan">graph</a> | |
956 | <a href="/rev/tip?style=spartan">changeset</a> |
|
962 | <a href="/rev/tip?style=spartan">changeset</a> | |
957 | <a href="/archive/tip.zip">zip</a> |
|
963 | <a href="/archive/tip.zip">zip</a> | |
958 | <h2><a href="/">Mercurial</a> / files for changeset <a href="/rev/9d8c40cba617">9d8c40cba617</a>: /</h2> |
|
964 | <h2><a href="/">Mercurial</a> / files for changeset <a href="/rev/9d8c40cba617">9d8c40cba617</a>: /</h2> | |
959 | <a href="/file/tip/dir?style=spartan">dir/</a> |
|
965 | <a href="/file/tip/dir?style=spartan">dir/</a> | |
960 | <a href="/file/tip/dir/?style=spartan"> |
|
966 | <a href="/file/tip/dir/?style=spartan"> | |
961 | <td><a href="/file/tip/foo?style=spartan">foo</a></td> |
|
967 | <td><a href="/file/tip/foo?style=spartan">foo</a></td> | |
962 |
|
968 | |||
963 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'shortlog?style=spartan&rev=all()' | egrep $REVLINKS |
|
969 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'shortlog?style=spartan&rev=all()' | egrep $REVLINKS | |
964 | <a href="/archive/tip.zip">zip</a> |
|
970 | <a href="/archive/tip.zip">zip</a> | |
965 | <td class="node"><a href="/rev/9d8c40cba617?style=spartan">9d8c40cba617</a></td> |
|
971 | <td class="node"><a href="/rev/9d8c40cba617?style=spartan">9d8c40cba617</a></td> | |
966 | <a href="/rev/a7c1559b7bba?style=spartan">a7c1559b7bba</a> |
|
972 | <a href="/rev/a7c1559b7bba?style=spartan">a7c1559b7bba</a> | |
967 | <th class="files"><a href="/file/9d8c40cba617?style=spartan">files</a>:</th> |
|
973 | <th class="files"><a href="/file/9d8c40cba617?style=spartan">files</a>:</th> | |
968 | <td class="files"><a href="/diff/9d8c40cba617/foo?style=spartan">foo</a> </td> |
|
974 | <td class="files"><a href="/diff/9d8c40cba617/foo?style=spartan">foo</a> </td> | |
969 | <td class="node"><a href="/rev/a7c1559b7bba?style=spartan">a7c1559b7bba</a></td> |
|
975 | <td class="node"><a href="/rev/a7c1559b7bba?style=spartan">a7c1559b7bba</a></td> | |
970 | <a href="/rev/43c799df6e75?style=spartan">43c799df6e75</a> |
|
976 | <a href="/rev/43c799df6e75?style=spartan">43c799df6e75</a> | |
971 | <td class="child"><a href="/rev/9d8c40cba617?style=spartan">9d8c40cba617</a></td> |
|
977 | <td class="child"><a href="/rev/9d8c40cba617?style=spartan">9d8c40cba617</a></td> | |
972 | <th class="files"><a href="/file/a7c1559b7bba?style=spartan">files</a>:</th> |
|
978 | <th class="files"><a href="/file/a7c1559b7bba?style=spartan">files</a>:</th> | |
973 | <td class="files"><a href="/diff/a7c1559b7bba/foo?style=spartan">foo</a> </td> |
|
979 | <td class="files"><a href="/diff/a7c1559b7bba/foo?style=spartan">foo</a> </td> | |
974 | <td class="node"><a href="/rev/43c799df6e75?style=spartan">43c799df6e75</a></td> |
|
980 | <td class="node"><a href="/rev/43c799df6e75?style=spartan">43c799df6e75</a></td> | |
975 | <td class="child"><a href="/rev/a7c1559b7bba?style=spartan">a7c1559b7bba</a></td> |
|
981 | <td class="child"><a href="/rev/a7c1559b7bba?style=spartan">a7c1559b7bba</a></td> | |
976 | <th class="files"><a href="/file/43c799df6e75?style=spartan">files</a>:</th> |
|
982 | <th class="files"><a href="/file/43c799df6e75?style=spartan">files</a>:</th> | |
977 | <td class="files"><a href="/diff/43c799df6e75/dir/bar?style=spartan">dir/bar</a> <a href="/diff/43c799df6e75/foo?style=spartan">foo</a> </td> |
|
983 | <td class="files"><a href="/diff/43c799df6e75/dir/bar?style=spartan">dir/bar</a> <a href="/diff/43c799df6e75/foo?style=spartan">foo</a> </td> | |
978 |
|
984 | |||
979 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'rev/xyzzy?style=spartan' | egrep $REVLINKS |
|
985 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'rev/xyzzy?style=spartan' | egrep $REVLINKS | |
980 | <a href="/log/xyzzy?style=spartan">changelog</a> |
|
986 | <a href="/log/xyzzy?style=spartan">changelog</a> | |
981 | <a href="/shortlog/xyzzy?style=spartan">shortlog</a> |
|
987 | <a href="/shortlog/xyzzy?style=spartan">shortlog</a> | |
982 | <a href="/graph/xyzzy?style=spartan">graph</a> |
|
988 | <a href="/graph/xyzzy?style=spartan">graph</a> | |
983 | <a href="/file/xyzzy?style=spartan">files</a> |
|
989 | <a href="/file/xyzzy?style=spartan">files</a> | |
984 | <a href="/raw-rev/xyzzy">raw</a> |
|
990 | <a href="/raw-rev/xyzzy">raw</a> | |
985 | <a href="/archive/xyzzy.zip">zip</a> |
|
991 | <a href="/archive/xyzzy.zip">zip</a> | |
986 | <td class="changeset"><a href="/rev/a7c1559b7bba?style=spartan">a7c1559b7bba</a></td> |
|
992 | <td class="changeset"><a href="/rev/a7c1559b7bba?style=spartan">a7c1559b7bba</a></td> | |
987 | <td class="parent"><a href="/rev/43c799df6e75?style=spartan">43c799df6e75</a></td> |
|
993 | <td class="parent"><a href="/rev/43c799df6e75?style=spartan">43c799df6e75</a></td> | |
988 | <td class="child"><a href="/rev/9d8c40cba617?style=spartan">9d8c40cba617</a></td> |
|
994 | <td class="child"><a href="/rev/9d8c40cba617?style=spartan">9d8c40cba617</a></td> | |
989 | <td class="files"><a href="/file/a7c1559b7bba/foo?style=spartan">foo</a> </td> |
|
995 | <td class="files"><a href="/file/a7c1559b7bba/foo?style=spartan">foo</a> </td> | |
990 |
|
996 | |||
991 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'shortlog/xyzzy?style=spartan' | egrep $REVLINKS |
|
997 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'shortlog/xyzzy?style=spartan' | egrep $REVLINKS | |
992 | <a href="/log/xyzzy?style=spartan">changelog</a> |
|
998 | <a href="/log/xyzzy?style=spartan">changelog</a> | |
993 | <a href="/graph/xyzzy?style=spartan">graph</a> |
|
999 | <a href="/graph/xyzzy?style=spartan">graph</a> | |
994 | <a href="/file/xyzzy/?style=spartan">files</a> |
|
1000 | <a href="/file/xyzzy/?style=spartan">files</a> | |
995 | <a href="/archive/xyzzy.zip">zip</a> |
|
1001 | <a href="/archive/xyzzy.zip">zip</a> | |
996 | navigate: <small class="navigate"><a href="/shortlog/43c799df6e75?style=spartan">(0)</a> <a href="/shortlog/tip?style=spartan">tip</a> </small> |
|
1002 | navigate: <small class="navigate"><a href="/shortlog/43c799df6e75?style=spartan">(0)</a> <a href="/shortlog/tip?style=spartan">tip</a> </small> | |
997 | <td class="node"><a href="/rev/a7c1559b7bba?style=spartan">second</a></td> |
|
1003 | <td class="node"><a href="/rev/a7c1559b7bba?style=spartan">second</a></td> | |
998 | <td class="node"><a href="/rev/43c799df6e75?style=spartan">first</a></td> |
|
1004 | <td class="node"><a href="/rev/43c799df6e75?style=spartan">first</a></td> | |
999 | navigate: <small class="navigate"><a href="/shortlog/43c799df6e75?style=spartan">(0)</a> <a href="/shortlog/tip?style=spartan">tip</a> </small> |
|
1005 | navigate: <small class="navigate"><a href="/shortlog/43c799df6e75?style=spartan">(0)</a> <a href="/shortlog/tip?style=spartan">tip</a> </small> | |
1000 |
|
1006 | |||
1001 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'log/xyzzy?style=spartan' | egrep $REVLINKS |
|
1007 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'log/xyzzy?style=spartan' | egrep $REVLINKS | |
1002 | <a href="/shortlog/xyzzy?style=spartan">shortlog</a> |
|
1008 | <a href="/shortlog/xyzzy?style=spartan">shortlog</a> | |
1003 | <a href="/graph/xyzzy?style=spartan">graph</a> |
|
1009 | <a href="/graph/xyzzy?style=spartan">graph</a> | |
1004 | <a href="/file/xyzzy?style=spartan">files</a> |
|
1010 | <a href="/file/xyzzy?style=spartan">files</a> | |
1005 | <a href="/archive/xyzzy.zip">zip</a> |
|
1011 | <a href="/archive/xyzzy.zip">zip</a> | |
1006 | navigate: <small class="navigate"><a href="/log/43c799df6e75?style=spartan">(0)</a> <a href="/log/tip?style=spartan">tip</a> </small> |
|
1012 | navigate: <small class="navigate"><a href="/log/43c799df6e75?style=spartan">(0)</a> <a href="/log/tip?style=spartan">tip</a> </small> | |
1007 | <td class="node"><a href="/rev/a7c1559b7bba?style=spartan">a7c1559b7bba</a></td> |
|
1013 | <td class="node"><a href="/rev/a7c1559b7bba?style=spartan">a7c1559b7bba</a></td> | |
1008 | <th class="files"><a href="/file/a7c1559b7bba?style=spartan">files</a>:</th> |
|
1014 | <th class="files"><a href="/file/a7c1559b7bba?style=spartan">files</a>:</th> | |
1009 | <td class="files"><a href="/diff/a7c1559b7bba/foo?style=spartan">foo</a> </td> |
|
1015 | <td class="files"><a href="/diff/a7c1559b7bba/foo?style=spartan">foo</a> </td> | |
1010 | <td class="node"><a href="/rev/43c799df6e75?style=spartan">43c799df6e75</a></td> |
|
1016 | <td class="node"><a href="/rev/43c799df6e75?style=spartan">43c799df6e75</a></td> | |
1011 | <th class="files"><a href="/file/43c799df6e75?style=spartan">files</a>:</th> |
|
1017 | <th class="files"><a href="/file/43c799df6e75?style=spartan">files</a>:</th> | |
1012 | <td class="files"><a href="/diff/43c799df6e75/dir/bar?style=spartan">dir/bar</a> <a href="/diff/43c799df6e75/foo?style=spartan">foo</a> </td> |
|
1018 | <td class="files"><a href="/diff/43c799df6e75/dir/bar?style=spartan">dir/bar</a> <a href="/diff/43c799df6e75/foo?style=spartan">foo</a> </td> | |
1013 | navigate: <small class="navigate"><a href="/log/43c799df6e75?style=spartan">(0)</a> <a href="/log/tip?style=spartan">tip</a> </small> |
|
1019 | navigate: <small class="navigate"><a href="/log/43c799df6e75?style=spartan">(0)</a> <a href="/log/tip?style=spartan">tip</a> </small> | |
1014 |
|
1020 | |||
1015 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'graph/xyzzy?style=spartan' | egrep $REVLINKS |
|
1021 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'graph/xyzzy?style=spartan' | egrep $REVLINKS | |
1016 | <a href="/log/xyzzy?style=spartan">changelog</a> |
|
1022 | <a href="/log/xyzzy?style=spartan">changelog</a> | |
1017 | <a href="/shortlog/xyzzy?style=spartan">shortlog</a> |
|
1023 | <a href="/shortlog/xyzzy?style=spartan">shortlog</a> | |
1018 | <a href="/file/xyzzy/?style=spartan">files</a> |
|
1024 | <a href="/file/xyzzy/?style=spartan">files</a> | |
1019 | navigate: <small class="navigate"><a href="/graph/43c799df6e75?style=spartan">(0)</a> <a href="/graph/tip?style=spartan">tip</a> </small> |
|
1025 | navigate: <small class="navigate"><a href="/graph/43c799df6e75?style=spartan">(0)</a> <a href="/graph/tip?style=spartan">tip</a> </small> | |
1020 | <a href="/rev/a7c1559b7bba?style=spartan">second</a> |
|
1026 | <a href="/rev/a7c1559b7bba?style=spartan">second</a> | |
1021 | <a href="/rev/43c799df6e75?style=spartan">first</a> |
|
1027 | <a href="/rev/43c799df6e75?style=spartan">first</a> | |
1022 | navigate: <small class="navigate"><a href="/graph/43c799df6e75?style=spartan">(0)</a> <a href="/graph/tip?style=spartan">tip</a> </small> |
|
1028 | navigate: <small class="navigate"><a href="/graph/43c799df6e75?style=spartan">(0)</a> <a href="/graph/tip?style=spartan">tip</a> </small> | |
1023 |
|
1029 | |||
1024 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'file/xyzzy?style=spartan' | egrep $REVLINKS |
|
1030 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'file/xyzzy?style=spartan' | egrep $REVLINKS | |
1025 | <a href="/log/xyzzy?style=spartan">changelog</a> |
|
1031 | <a href="/log/xyzzy?style=spartan">changelog</a> | |
1026 | <a href="/shortlog/xyzzy?style=spartan">shortlog</a> |
|
1032 | <a href="/shortlog/xyzzy?style=spartan">shortlog</a> | |
1027 | <a href="/graph/xyzzy?style=spartan">graph</a> |
|
1033 | <a href="/graph/xyzzy?style=spartan">graph</a> | |
1028 | <a href="/rev/xyzzy?style=spartan">changeset</a> |
|
1034 | <a href="/rev/xyzzy?style=spartan">changeset</a> | |
1029 | <a href="/archive/xyzzy.zip">zip</a> |
|
1035 | <a href="/archive/xyzzy.zip">zip</a> | |
1030 | <h2><a href="/">Mercurial</a> / files for changeset <a href="/rev/a7c1559b7bba">a7c1559b7bba</a>: /</h2> |
|
1036 | <h2><a href="/">Mercurial</a> / files for changeset <a href="/rev/a7c1559b7bba">a7c1559b7bba</a>: /</h2> | |
1031 | <a href="/file/xyzzy/dir?style=spartan">dir/</a> |
|
1037 | <a href="/file/xyzzy/dir?style=spartan">dir/</a> | |
1032 | <a href="/file/xyzzy/dir/?style=spartan"> |
|
1038 | <a href="/file/xyzzy/dir/?style=spartan"> | |
1033 | <td><a href="/file/xyzzy/foo?style=spartan">foo</a></td> |
|
1039 | <td><a href="/file/xyzzy/foo?style=spartan">foo</a></td> | |
1034 |
|
1040 | |||
1035 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'file/xyzzy/foo?style=spartan' | egrep $REVLINKS |
|
1041 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'file/xyzzy/foo?style=spartan' | egrep $REVLINKS | |
1036 | <a href="/log/xyzzy?style=spartan">changelog</a> |
|
1042 | <a href="/log/xyzzy?style=spartan">changelog</a> | |
1037 | <a href="/shortlog/xyzzy?style=spartan">shortlog</a> |
|
1043 | <a href="/shortlog/xyzzy?style=spartan">shortlog</a> | |
1038 | <a href="/graph/xyzzy?style=spartan">graph</a> |
|
1044 | <a href="/graph/xyzzy?style=spartan">graph</a> | |
1039 | <a href="/rev/xyzzy?style=spartan">changeset</a> |
|
1045 | <a href="/rev/xyzzy?style=spartan">changeset</a> | |
1040 | <a href="/file/xyzzy/?style=spartan">files</a> |
|
1046 | <a href="/file/xyzzy/?style=spartan">files</a> | |
1041 | <a href="/log/xyzzy/foo?style=spartan">revisions</a> |
|
1047 | <a href="/log/xyzzy/foo?style=spartan">revisions</a> | |
1042 | <a href="/annotate/xyzzy/foo?style=spartan">annotate</a> |
|
1048 | <a href="/annotate/xyzzy/foo?style=spartan">annotate</a> | |
1043 | <a href="/raw-file/xyzzy/foo">raw</a> |
|
1049 | <a href="/raw-file/xyzzy/foo">raw</a> | |
1044 | <td><a href="/rev/a7c1559b7bba?style=spartan">a7c1559b7bba</a></td> |
|
1050 | <td><a href="/rev/a7c1559b7bba?style=spartan">a7c1559b7bba</a></td> | |
1045 | <a href="/file/43c799df6e75/foo?style=spartan"> |
|
1051 | <a href="/file/43c799df6e75/foo?style=spartan"> | |
1046 | <td><a href="/file/9d8c40cba617/foo?style=spartan">9d8c40cba617</a></td> |
|
1052 | <td><a href="/file/9d8c40cba617/foo?style=spartan">9d8c40cba617</a></td> | |
1047 |
|
1053 | |||
1048 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'log/xyzzy/foo?style=spartan' | egrep $REVLINKS |
|
1054 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'log/xyzzy/foo?style=spartan' | egrep $REVLINKS | |
1049 | href="/atom-log/tip/foo" title="Atom feed for test:foo"> |
|
1055 | href="/atom-log/tip/foo" title="Atom feed for test:foo"> | |
1050 | href="/rss-log/tip/foo" title="RSS feed for test:foo"> |
|
1056 | href="/rss-log/tip/foo" title="RSS feed for test:foo"> | |
1051 | <a href="/file/xyzzy/foo?style=spartan">file</a> |
|
1057 | <a href="/file/xyzzy/foo?style=spartan">file</a> | |
1052 | <a href="/annotate/xyzzy/foo?style=spartan">annotate</a> |
|
1058 | <a href="/annotate/xyzzy/foo?style=spartan">annotate</a> | |
1053 | <a type="application/rss+xml" href="/rss-log/tip/foo">rss</a> |
|
1059 | <a type="application/rss+xml" href="/rss-log/tip/foo">rss</a> | |
1054 | <a type="application/atom+xml" href="/atom-log/tip/foo" title="Atom feed for test:foo">atom</a> |
|
1060 | <a type="application/atom+xml" href="/atom-log/tip/foo" title="Atom feed for test:foo">atom</a> | |
1055 | <p>navigate: <small class="navigate"><a href="/log/43c799df6e75/foo?style=spartan">(0)</a> <a href="/log/tip/foo?style=spartan">tip</a> </small></p> |
|
1061 | <p>navigate: <small class="navigate"><a href="/log/43c799df6e75/foo?style=spartan">(0)</a> <a href="/log/tip/foo?style=spartan">tip</a> </small></p> | |
1056 | <th class="firstline"><a href="/rev/a7c1559b7bba?style=spartan">second</a></th> |
|
1062 | <th class="firstline"><a href="/rev/a7c1559b7bba?style=spartan">second</a></th> | |
1057 | <a href="/file/a7c1559b7bba/foo?style=spartan">a7c1559b7bba</a> |
|
1063 | <a href="/file/a7c1559b7bba/foo?style=spartan">a7c1559b7bba</a> | |
1058 | <a href="/diff/a7c1559b7bba/foo?style=spartan">(diff)</a> |
|
1064 | <a href="/diff/a7c1559b7bba/foo?style=spartan">(diff)</a> | |
1059 | <a href="/annotate/a7c1559b7bba/foo?style=spartan">(annotate)</a> |
|
1065 | <a href="/annotate/a7c1559b7bba/foo?style=spartan">(annotate)</a> | |
1060 | <th class="firstline"><a href="/rev/43c799df6e75?style=spartan">first</a></th> |
|
1066 | <th class="firstline"><a href="/rev/43c799df6e75?style=spartan">first</a></th> | |
1061 | <a href="/file/43c799df6e75/foo?style=spartan">43c799df6e75</a> |
|
1067 | <a href="/file/43c799df6e75/foo?style=spartan">43c799df6e75</a> | |
1062 | <a href="/diff/43c799df6e75/foo?style=spartan">(diff)</a> |
|
1068 | <a href="/diff/43c799df6e75/foo?style=spartan">(diff)</a> | |
1063 | <a href="/annotate/43c799df6e75/foo?style=spartan">(annotate)</a> |
|
1069 | <a href="/annotate/43c799df6e75/foo?style=spartan">(annotate)</a> | |
1064 |
|
1070 | |||
1065 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'annotate/xyzzy/foo?style=spartan' | egrep $REVLINKS |
|
1071 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'annotate/xyzzy/foo?style=spartan' | egrep $REVLINKS | |
1066 | <a href="/log/xyzzy?style=spartan">changelog</a> |
|
1072 | <a href="/log/xyzzy?style=spartan">changelog</a> | |
1067 | <a href="/shortlog/xyzzy?style=spartan">shortlog</a> |
|
1073 | <a href="/shortlog/xyzzy?style=spartan">shortlog</a> | |
1068 | <a href="/graph/xyzzy?style=spartan">graph</a> |
|
1074 | <a href="/graph/xyzzy?style=spartan">graph</a> | |
1069 | <a href="/rev/xyzzy?style=spartan">changeset</a> |
|
1075 | <a href="/rev/xyzzy?style=spartan">changeset</a> | |
1070 | <a href="/file/xyzzy/?style=spartan">files</a> |
|
1076 | <a href="/file/xyzzy/?style=spartan">files</a> | |
1071 | <a href="/file/xyzzy/foo?style=spartan">file</a> |
|
1077 | <a href="/file/xyzzy/foo?style=spartan">file</a> | |
1072 | <a href="/log/xyzzy/foo?style=spartan">revisions</a> |
|
1078 | <a href="/log/xyzzy/foo?style=spartan">revisions</a> | |
1073 | <a href="/raw-file/xyzzy/foo">raw</a> |
|
1079 | <a href="/raw-file/xyzzy/foo">raw</a> | |
1074 | <td><a href="/rev/a7c1559b7bba?style=spartan">a7c1559b7bba</a></td> |
|
1080 | <td><a href="/rev/a7c1559b7bba?style=spartan">a7c1559b7bba</a></td> | |
1075 | <a href="/annotate/43c799df6e75/foo?style=spartan"> |
|
1081 | <a href="/annotate/43c799df6e75/foo?style=spartan"> | |
1076 | <td><a href="/annotate/9d8c40cba617/foo?style=spartan">9d8c40cba617</a></td> |
|
1082 | <td><a href="/annotate/9d8c40cba617/foo?style=spartan">9d8c40cba617</a></td> | |
1077 | <a href="/annotate/43c799df6e75/foo?style=spartan#l1"> |
|
1083 | <a href="/annotate/43c799df6e75/foo?style=spartan#l1"> | |
1078 | <a href="/annotate/43c799df6e75/foo?style=spartan#l1"> |
|
1084 | <a href="/annotate/43c799df6e75/foo?style=spartan#l1"> | |
1079 | <a href="/diff/43c799df6e75/foo?style=spartan">diff</a> |
|
1085 | <a href="/diff/43c799df6e75/foo?style=spartan">diff</a> | |
1080 | <a href="/rev/43c799df6e75?style=spartan">changeset</a> |
|
1086 | <a href="/rev/43c799df6e75?style=spartan">changeset</a> | |
1081 | <a href="/annotate/a7c1559b7bba/foo?style=spartan#l2"> |
|
1087 | <a href="/annotate/a7c1559b7bba/foo?style=spartan#l2"> | |
1082 | <a href="/annotate/a7c1559b7bba/foo?style=spartan#l2"> |
|
1088 | <a href="/annotate/a7c1559b7bba/foo?style=spartan#l2"> | |
1083 | <a href="/annotate/43c799df6e75/foo?style=spartan">0</a></div> |
|
1089 | <a href="/annotate/43c799df6e75/foo?style=spartan">0</a></div> | |
1084 | <a href="/diff/a7c1559b7bba/foo?style=spartan">diff</a> |
|
1090 | <a href="/diff/a7c1559b7bba/foo?style=spartan">diff</a> | |
1085 | <a href="/rev/a7c1559b7bba?style=spartan">changeset</a> |
|
1091 | <a href="/rev/a7c1559b7bba?style=spartan">changeset</a> | |
1086 |
|
1092 | |||
1087 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'diff/xyzzy/foo?style=spartan' | egrep $REVLINKS |
|
1093 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'diff/xyzzy/foo?style=spartan' | egrep $REVLINKS | |
1088 | <a href="/log/xyzzy?style=spartan">changelog</a> |
|
1094 | <a href="/log/xyzzy?style=spartan">changelog</a> | |
1089 | <a href="/shortlog/xyzzy?style=spartan">shortlog</a> |
|
1095 | <a href="/shortlog/xyzzy?style=spartan">shortlog</a> | |
1090 | <a href="/graph/xyzzy?style=spartan">graph</a> |
|
1096 | <a href="/graph/xyzzy?style=spartan">graph</a> | |
1091 | <a href="/rev/xyzzy?style=spartan">changeset</a> |
|
1097 | <a href="/rev/xyzzy?style=spartan">changeset</a> | |
1092 | <a href="/file/xyzzy/foo?style=spartan">file</a> |
|
1098 | <a href="/file/xyzzy/foo?style=spartan">file</a> | |
1093 | <a href="/log/xyzzy/foo?style=spartan">revisions</a> |
|
1099 | <a href="/log/xyzzy/foo?style=spartan">revisions</a> | |
1094 | <a href="/annotate/xyzzy/foo?style=spartan">annotate</a> |
|
1100 | <a href="/annotate/xyzzy/foo?style=spartan">annotate</a> | |
1095 | <a href="/raw-diff/xyzzy/foo">raw</a> |
|
1101 | <a href="/raw-diff/xyzzy/foo">raw</a> | |
1096 | <td class="revision"><a href="/rev/a7c1559b7bba?style=spartan">a7c1559b7bba</a></td> |
|
1102 | <td class="revision"><a href="/rev/a7c1559b7bba?style=spartan">a7c1559b7bba</a></td> | |
1097 | <td class="parent"><a href="/rev/43c799df6e75?style=spartan">43c799df6e75</a></td> |
|
1103 | <td class="parent"><a href="/rev/43c799df6e75?style=spartan">43c799df6e75</a></td> | |
1098 | <td class="child"><a href="/rev/9d8c40cba617?style=spartan">9d8c40cba617</a></td> |
|
1104 | <td class="child"><a href="/rev/9d8c40cba617?style=spartan">9d8c40cba617</a></td> | |
1099 |
|
1105 | |||
1100 | Done |
|
1106 | Done | |
1101 |
|
1107 | |||
1102 | $ cat errors.log |
|
1108 | $ cat errors.log | |
1103 | $ "$TESTDIR/killdaemons.py" $DAEMON_PIDS |
|
1109 | $ "$TESTDIR/killdaemons.py" $DAEMON_PIDS | |
1104 | $ cd .. |
|
1110 | $ cd .. |
General Comments 0
You need to be logged in to leave comments.
Login now