Edgewall Software
Modify

Opened 20 years ago

Closed 20 years ago

Last modified 19 years ago

#1032 closed enhancement (fixed)

[patch] Recognize Subversion-style revision numbers (rNNNN) as a changeset link

Reported by: rmunn@… Owned by: Christopher Lenz
Priority: normal Milestone: 0.9
Component: wiki system Version: 0.8
Severity: normal Keywords: wikiformatter helpwanted
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christopher Lenz)

Currently (as of Trac 0.8), the Wiki recognizes [N] as a changeset link, and will recognize that syntax in commit log messages. But the traditional format for writing Subversion revision numbers is rNNNN. See, for instance, http://svnbook.red-bean.com/en/1.1/ch04s04.html, where commit log messages like "Merged my-calc-branch changes r406:480 into the trunk" or "Undoing change committed in r303" are given as examples.

I propose that WikiFormatter.py should recognize not just [N] format, but also rNNNN format, as a changeset link.

Attachments (1)

patch-recognize-subversion-style-revision-numbers-r1111.diff (1.3 KB ) - added by rmunn@… 20 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 by rmunn@…, 20 years ago

Please note that I have not yet tested this patch. I should have a working Trac installation in a week or so; when I do, I'll test my patch and update this ticket if testing reveals any problems.

comment:2 by cboos@…, 20 years ago

It works, but what gets actually displayed for e.g. r123 is still the usual [123]. Was that intended? I see no problem with that, however, it will tell people the "right" notation to use :)

comment:3 by Christopher Lenz, 20 years ago

Keywords: helpwanted added

comment:4 by Christopher Lenz, 20 years ago

Milestone: 0.9
Owner: changed from Jonas Borgström to Christopher Lenz
Status: newassigned

comment:5 by Christopher Lenz, 20 years ago

Description: modified (diff)

comment:6 by Christopher Lenz, 20 years ago

Resolution: fixed
Status: assignedclosed

This notation has been added to the wiki formatter in [1224]. Forgot to mention this change in the log message, sorry. Only lower case 'r' prefix is matched.

comment:7 by Christian Boos, 19 years ago

r2165 added support for "Merged my-calc-branch changes r406:480 into the trunk"

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christopher Lenz.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christopher Lenz 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.