Changeset View
Changeset View
Standalone View
Standalone View
docs/uri-scheme-browse-revision.rst
Show All 14 Lines | .. http:get:: /browse/revision/(sha1_git)/ | ||||
Last but not least, the view displays the list of file changes introduced | Last but not least, the view displays the list of file changes introduced | ||||
in the revision but also the diffs of each changed files. | in the revision but also the diffs of each changed files. | ||||
:param string sha1_git: hexadecimal representation for the **sha1_git** | :param string sha1_git: hexadecimal representation for the **sha1_git** | ||||
identifier of a revision | identifier of a revision | ||||
:query string origin_url: used internally to associate an origin url | :query string origin_url: used internally to associate an origin url | ||||
(e.g. https://github.com/user/repo) to the revision | (e.g. https://github.com/user/repo) to the revision | ||||
:query string timestamp: used internally to associate an origin visit to the | :query string timestamp: an ISO 8601 datetime string to parse in order to find the | ||||
revision, must be a date string (any format parsable by `dateutil.parser.parse`_) | closest visit. | ||||
or Unix timestamp to parse in order to find the closest visit. | :query int visit_id: specify a visit id instead of | ||||
:query int visit_id: used internally to specify a visit id instead of | |||||
using the provided timestamp | using the provided timestamp | ||||
:query string path: used internally when navigating in the source tree | :query string path: optional relative path from the revision root directory | ||||
associated to the revision | |||||
:statuscode 200: no error | :statuscode 200: no error | ||||
:statuscode 404: requested revision can not be found in the archive | :statuscode 404: requested revision can not be found in the archive | ||||
**Examples:** | **Examples:** | ||||
.. parsed-literal:: | .. parsed-literal:: | ||||
:swh_web_browse:`revision/f1b94134a4b879bc55c3dacdb496690c8ebdc03f/` | :swh_web_browse:`revision/f1b94134a4b879bc55c3dacdb496690c8ebdc03f/` | ||||
:swh_web_browse:`revision/d1aa2b3f607b35dc5dbf613b2334b6d243ec2bda/` | :swh_web_browse:`revision/d1aa2b3f607b35dc5dbf613b2334b6d243ec2bda/` | ||||
.. _dateutil.parser.parse: http://dateutil.readthedocs.io/en/stable/parser.html | |||||
.. http:get:: /browse/revision/(sha1_git)/log/ | .. http:get:: /browse/revision/(sha1_git)/log/ | ||||
HTML view that displays the list of revisions heading to | HTML view that displays the list of revisions heading to | ||||
a given one. In other words, it shows a commit log. | a given one. In other words, it shows a commit log. | ||||
The following data are displayed for each log entry: | The following data are displayed for each log entry: | ||||
* link to browse the revision | * link to browse the revision | ||||
* author of the revision | * author of the revision | ||||
Show All 30 Lines |