Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb/webcommands.py @ 24089:f17773432782
webcommands: document "changelog" web command
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Fri, 06 Feb 2015 21:39:15 -0800 |
parents | fe3ee31b039f |
children | a86b2922ea30 |
comparison
equal
deleted
inserted
replaced
24088:fe3ee31b039f | 24089:f17773432782 |
---|---|
317 modedesc=searchfunc[1], | 317 modedesc=searchfunc[1], |
318 showforcekw=showforcekw, showunforcekw=showunforcekw) | 318 showforcekw=showforcekw, showunforcekw=showunforcekw) |
319 | 319 |
320 @webcommand('changelog') | 320 @webcommand('changelog') |
321 def changelog(web, req, tmpl, shortlog=False): | 321 def changelog(web, req, tmpl, shortlog=False): |
322 """ | |
323 /changelog[/{revision}] | |
324 ----------------------- | |
325 | |
326 Show information about multiple changesets. | |
327 | |
328 If the optional ``revision`` URL argument is absent, information about | |
329 all changesets starting at ``tip`` will be rendered. If the ``revision`` | |
330 argument is present, changesets will be shown starting from the specified | |
331 revision. | |
332 | |
333 If ``revision`` is absent, the ``rev`` query string argument may be | |
334 defined. This will perform a search for changesets. | |
335 | |
336 The argument for ``rev`` can be a single revision, a revision set, | |
337 or a literal keyword to search for in changeset data (equivalent to | |
338 :hg:`log -k`. | |
339 | |
340 The ``revcount`` query string argument defines the maximum numbers of | |
341 changesets to render. | |
342 | |
343 For non-searches, the ``changelog`` template will be rendered. | |
344 """ | |
322 | 345 |
323 query = '' | 346 query = '' |
324 if 'node' in req.form: | 347 if 'node' in req.form: |
325 ctx = webutil.changectx(web.repo, req) | 348 ctx = webutil.changectx(web.repo, req) |
326 elif 'rev' in req.form: | 349 elif 'rev' in req.form: |