Edgewall Software
Modify

Opened 18 years ago

Closed 17 years ago

#3579 closed enhancement (fixed)

Add direct access to the raw content in the repository

Reported by: Christian Boos Owned by: Christian Boos
Priority: normal Milestone: 0.11
Component: version control Version: devel
Severity: normal Keywords: raw format
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christian Boos)

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 (1)

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

Download all attachments as: .zip

Change History (7)

comment:1 by Christian Boos, 18 years ago

Description: modified (diff)
Keywords: raw format added; documentation removed
Version: 0.9.6devel

by Christian Boos, 18 years ago

Attachment: raw_source-r3622.patch added

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

comment:2 by anonymous, 18 years ago

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

comment:3 by Christian Boos, 18 years ago

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

comment:4 by Christian Boos, 17 years ago

Resolution: duplicate
Status: newclosed

See rather #3083.

comment:5 by Christian Boos, 17 years ago

Milestone: 0.11
Resolution: duplicate
Status: closedreopened

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.

comment:6 by Christian Boos, 17 years ago

Resolution: fixed
Status: reopenedclosed

Implemented in [4242].

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.