Opened 19 years ago
Last modified 14 years ago
#2566 new defect
Trac browser should browse SVN symbolic links
Reported by: | 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)
Change History (15)
by , 19 years ago
Attachment: | symlink-browser.diff added |
---|
comment:1 by , 19 years ago
comment:2 by , 19 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 , 19 years ago
The patch also needs a link.png and linkdeny.png, for which I just copied the file png's.
comment:4 by , 19 years ago
Component: | browser → version control |
---|---|
Milestone: | → 0.10 |
Owner: | changed from | to
Severity: | normal → minor |
Status: | new → assigned |
If there's no objection, I'd like to check in that patch.
comment:5 by , 19 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 , 19 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 , 19 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:9 by , 18 years ago
Status: | assigned → new |
---|
comment:10 by , 18 years ago
Milestone: | 0.11 → 0.12 |
---|
comment:12 by , 18 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 , 18 years ago
Cc: | added |
---|
I've patched this into TracHacks, you can see it in action here.