Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb/webcommands.py @ 24087:6f5b4393590c
webcommands: document "log" web command
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Fri, 06 Feb 2015 21:13:03 -0800 |
parents | 2d8e93554822 |
children | fe3ee31b039f |
comparison
equal
deleted
inserted
replaced
24086:2d8e93554822 | 24087:6f5b4393590c |
---|---|
42 commands[self.name] = func | 42 commands[self.name] = func |
43 return func | 43 return func |
44 | 44 |
45 @webcommand('log') | 45 @webcommand('log') |
46 def log(web, req, tmpl): | 46 def log(web, req, tmpl): |
47 """ | |
48 /log[/{revision}[/{path}]] | |
49 -------------------------- | |
50 | |
51 Show repository or file history. | |
52 | |
53 For URLs of the form ``/log/{revision}``, a list of changesets starting at | |
54 the specified changeset identifier is shown. If ``{revision}`` is not | |
55 defined, the default is ``tip``. This form is equivalent to the | |
56 ``changelog`` handler. | |
57 | |
58 For URLs of the form ``/log/{revision}/{file}``, the history for a specific | |
59 file will be shown. This form is equivalent to the ``filelog`` handler. | |
60 """ | |
61 | |
47 if 'file' in req.form and req.form['file'][0]: | 62 if 'file' in req.form and req.form['file'][0]: |
48 return filelog(web, req, tmpl) | 63 return filelog(web, req, tmpl) |
49 else: | 64 else: |
50 return changelog(web, req, tmpl) | 65 return changelog(web, req, tmpl) |
51 | 66 |