Edgewall Software

Ticket #3579 (closed enhancement: fixed)

Opened 2 years ago

Last modified 20 months ago

Add direct access to the raw content in the repository

Reported by: cboos Owned by: cboos
Priority: normal Milestone: 0.11
Component: version control Version: devel
Severity: normal Keywords: raw format
Cc:

Description (last modified by cboos) (diff)

As discussed on the Mailing List, this is a feature which is quite useful for being able to have direct access to the HTML resources in the repository (like documentation), when using the ?format=raw URL suffix is not wanted, as it doesn't get propagated by relative links within those documents.

Therefore I propose to add:

  • /source request dispatcher, for accessing the raw source
  • /source-rXYZ request dispatcher, for accessing the raw source at the specified revision
  • the raw-source: TracLink prefix, for easily creating links to the above URLs, raw-source:/trunk/README.html or raw-source:/trunk/README.html@234 when specifying a revision.

The implementation will be based on this patch.

Attachments

raw_source-r3622.patch (2.0 KB) - added by cboos 2 years ago.
Implementation of the feature; apply the patch like this: cd trac/trunk; patch -p1 < raw_source-r3622.patch

Change History

Changed 2 years ago by cboos

  • keywords raw format added; documentation removed
  • version changed from 0.9.6 to devel
  • description modified (diff)

Changed 2 years ago by cboos

Implementation of the feature; apply the patch like this: cd trac/trunk; patch -p1 < raw_source-r3622.patch

Changed 2 years ago by anonymous

Maybe /source/HEAD and /source/r123 would be REST-ier.

Changed 2 years ago by cboos

Sounds good: the first "path" element should be mandatory and interpreted as a revision number.

Changed 2 years ago by cboos

  • status changed from new to closed
  • resolution set to duplicate

See rather #3083.

Changed 20 months ago by cboos

  • status changed from closed to reopened
  • resolution duplicate deleted
  • milestone set to 0.11

Well, #3083 was more about describing a defect in IExplorer that would incidentally benefit from the feature proposed here, so I'm reopening this ticket so that it will get listed as a new feature for 0.11.

Changed 20 months ago by cboos

  • status changed from reopened to closed
  • resolution set to fixed

Implemented in [4242].

Add/Change #3579 (Add direct access to the raw content in the repository)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from cboos. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.