Edgewall Software
Modify

Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#1968 closed defect (fixed)

wiki linkify of commit logs doesn't handle svn+ssh:// links

Reported by: anonymous Owned by: Christian Boos
Priority: low Milestone: 0.9
Component: wiki system Version: 0.8.4
Severity: trivial Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

In our commit logs we have references to svn paths in the form svn+ssh://… trac converts this to a ssh:// url instead of svn+ssh:// url. trac should have support for parsing standard svn+<encapsulation>: links.

Attachments (0)

Change History (4)

comment:1 by Christian Boos, 19 years ago

Milestone: 0.9
Owner: changed from Jonas Borgström to Christian Boos
Status: newassigned
  • formatter.py

     
    137137                  r"(?P<inlinecode>!?\{\{\{(?P<inline>.*?)\}\}\})",
    138138                  r"(?P<inlinecode2>!?`(?P<inline2>.*?)`)",
    139139                  r"(?P<htmlescapeentity>!?&#\d+;)"]
    140     _post_rules = [r"(?P<shref>!?((?P<sns>\w+):(?P<stgt>'[^']+'|\"[^\"]+\"|((\|(?=[^| ])|[^| ])*[^|'~_\., \)]))))",
    141                    r"(?P<lhref>!?\[(?P<lns>\w+):(?P<ltgt>[^\] ]+)(?: (?P<label>.*?))?\])",
     140    _post_rules = [r"(?P<shref>!?((?P<sns>[\w+]+):(?P<stgt>'[^']+'|\"[^\"]+\"|((\|(?=[^| ])|[^| ])*[^|'~_\., \)]))))",
     141                   r"(?P<lhref>!?\[(?P<lns>[\w+]+):(?P<ltgt>[^\] ]+)(?: (?P<label>.*?))?\])",
    142142                   r"(?P<macro>!?\[\[(?P<macroname>[\w/+-]+)(\]\]|\((?P<macroargs>.*?)\)\]\]))",
    143143                   r"(?P<heading>^\s*(?P<hdepth>=+)\s.*\s(?P=hdepth)\s*$)",
    144144                   r"(?P<list>^(?P<ldepth>\s+)(?:\*|\d+\.) )",

Just wondering if there would be any adverse side effects. Probably not.

comment:2 by Christopher Lenz, 19 years ago

We should also allow dots in the scheme/namespace.

comment:3 by Christian Boos, 19 years ago

Yup. Just looked up the RFC 2396:

      scheme        = alpha *( alpha | digit | "+" | "-" | "." )

The change will have for consequence that CamelCase:CamelCase will not be recognized as two WikiPageNames separated by a colon, but rather as a scheme plus some unrecognized content.

The InterWiki feature also introduces this change, so that's OK for me (in the InterWiki context, CamelCase:CamelCase would be the CamelCase page in the CamelCase wiki, e.g. MeatBall:CamelCase)

comment:4 by Christian Boos, 19 years ago

Component: log viewwiki
Resolution: fixed
Status: assignedclosed

Implemented the above in r2134

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.