Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8322714
uri-scheme-browse-revision.rst
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Subscribers
None
uri-scheme-browse-revision.rst
View Options
Revision
^^^^^^^^
..
http:get
::
/browse/revision/(sha1_git)/
HTML view to browse a revision. It notably shows the revision date
and message but also offers links to get more details on:
*
its author
*
its parent revisions
*
the history log reachable from it
The view also enables to navigate in the source tree associated to the
revision and browse its content.
Last but not least, the view displays the list of file changes introduced
in the revision but also the diffs of each changed files.
:param string sha1_git:
hexadecimal representation for the
**sha1_git**
identifier of a revision
:query string origin_url:
used internally to associate an origin url
(e.g. https://github.com/user/repo) to the revision
:query string timestamp:
used internally to associate an origin visit to the
revision, must be a date string (any format parsable by
`dateutil.parser.parse`_
)
or Unix timestamp to parse in order to find the closest visit.
:query int visit_id:
used internally to specify a visit id instead of
using the provided timestamp
:query string path:
used internally when navigating in the source tree
associated to the revision
:statuscode 200:
no error
:statuscode 404:
requested revision can not be found in the archive
**Examples:**
..
parsed-literal
::
:swh_web_browse:
`revision/f1b94134a4b879bc55c3dacdb496690c8ebdc03f/`
:swh_web_browse:
`revision/d1aa2b3f607b35dc5dbf613b2334b6d243ec2bda/`
..
_dateutil.parser.parse:
http://dateutil.readthedocs.io/en/stable/parser.html
..
http:get
::
/browse/revision/(sha1_git)/log/
HTML view that displays the list of revisions heading to
a given one. In other words, it shows a commit log.
The following data are displayed for each log entry:
*
link to browse the revision
*
author of the revision
*
date of the revision
*
message associated to the revision
*
commit date of the revision
By default, the revisions are ordered in reverse chronological order of
their commit date.
N log entries are displayed per page (default is 100). In order to navigate
in a large history, two buttons are present at the bottom of the view:
*
**Newer**
: fetch and display if available the N more recent log entries
than the ones currently displayed
*
**Older**
: fetch and display if available the N older log entries
than the ones currently displayed
:param string sha1_git:
hexadecimal representation for the
**sha1_git**
identifier of a revision
:query int per_page:
the number of log entries to display per page
:query int offset:
the number of revisions to skip before returning those to display
:query str revs_ordering:
specify the revisions ordering, possible values are
``committer_date``
,
``dfs``
,
``dfs_post``
and
``bfs``
:statuscode 200:
no error
:statuscode 404:
requested revision can not be found in the archive
**Examples:**
..
parsed-literal
::
:swh_web_browse:
`revision/f1b94134a4b879bc55c3dacdb496690c8ebdc03f/log/`
:swh_web_browse:
`revision/d1aa2b3f607b35dc5dbf613b2334b6d243ec2bda/log/`
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jun 3, 7:43 AM (3 d, 21 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3327885
Attached To
rDWAPPS Web applications
Event Timeline
Log In to Comment