Edgewall Software
Modify

Opened 18 years ago

Last modified 14 years ago

#2566 new defect

Trac browser should browse SVN symbolic links

Reported by: Alec Thomas <alec@…> Owned by:
Priority: normal Milestone: unscheduled
Component: version control Version: 0.9.2
Severity: minor Keywords: symbolic links
Cc: sergei@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Here is a patch to add browsing of symbolic links. It has the following behaviour:

  • Links outside the repository are normalised to /, but display the full link path.
  • Links to non-existent objects will display the default file.

Attachments (1)

symlink-browser.diff (5.6 KB ) - added by Alec Thomas <alec@…> 18 years ago.

Download all attachments as: .zip

Change History (15)

by Alec Thomas <alec@…>, 18 years ago

Attachment: symlink-browser.diff added

comment:1 by Alec Thomas <alec@…>, 18 years ago

I've patched this into TracHacks, you can see it in action here.

comment:2 by Alec Thomas <alec@…>, 18 years ago

Actually this one is better. It moves the logic of deciding whether a node is a symlink into the version control layer.

comment:3 by Alec Thomas <alec@…>, 18 years ago

The patch also needs a link.png and linkdeny.png, for which I just copied the file png's.

comment:4 by Christian Boos, 18 years ago

Component: browserversion control
Milestone: 0.10
Owner: changed from Jonas Borgström to Christian Boos
Severity: normalminor
Status: newassigned

If there's no objection, I'd like to check in that patch.

comment:5 by Alec Thomas, 18 years ago

An issue is that the browser file name rows are no longer selectable, you have to click directly on the filename. I couldn't figure out a good way with CSS to achieve this but perhaps somebody more CSS savvy can?

comment:6 by Christian Boos, 18 years ago

you have to click directly on the filename

Really? By testing your sample, it seems that it works as usual (i.e. the whole cell containing the file name is clickable using Firefox, but only the name is, if using IE).

Ah, got it: seems that on Trac Hacks you still have the unmodified CSS. So, are the CSS changes in your patch really needed?

comment:7 by Alec Thomas, 18 years ago

I'm not actually running it on TracHacks anymore (it got lost in an upgrade :)), but IIRC the CSS changes are necessary, but not quite complete.

comment:8 by Christian Boos, 18 years ago

Milestone: 0.100.11

Will do later.

comment:9 by Christian Boos, 17 years ago

Status: assignednew

comment:10 by Christian Boos, 17 years ago

Milestone: 0.110.12

comment:11 by Christian Boos, 17 years ago

#4788 was closed as duplicate.

comment:12 by Christian Boos, 17 years ago

Looking again at the patch, there's a sequence which seems quite costly:

    for entry in node.get_entries(): 
       if entry.isfile and 'svn:special' in entry.get_properties(): 

I think this should rather be done during synchronization of the changeset, in a way that this information can be reused for browsing, as suggested in VcRefactoring#NewRepositoryCache.

In the meantime, there could be a simpler way to handle svn:special links, see #4788.

comment:13 by Sergei Haller <sergei@…>, 17 years ago

Cc: sergei@… added

comment:14 by Christian Boos, 14 years ago

Milestone: next-major-0.1Xunscheduled
Owner: Christian Boos removed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


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