Edgewall Software

Opened 14 years ago

Last modified 14 years ago

#9264 closed defect

Versioncontrol browser: "export:" links formatted incorrectly — at Initial Version

Reported by: David Avsajanishvili <avsd05@…> Owned by:
Priority: high Milestone: 0.12
Component: version control/browser Version: 0.12dev
Severity: critical Keywords: export file versioncontrol
Cc: avsd05@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

As a result of changeset:9125/trunk/trac/versioncontrol/web_ui/browser.py the "export:" browser link does not work correctly anymore, because following line has been changed:

source:trunk/trac/versioncontrol/web_ui/browser.py@9125#L727 _format_export_link() method:

@@ -621,5 +725,5 @@
             path, rev = export.split('@', 1)
         else:
-            rev, path = self.env.get_repository().youngest_rev, export
+            rev, path = '', export
         return tag.a(label, class_='export',
                      href=formatter.href.export(rev, path) + fragment)

As a result, following kind of links are formed:

http://trac.edgewall.org/export//trunk/README

I have fixed this issue in my environment by returning old line back, and it worked! No other problems appeared!

Just don't understand, why this line was changed…

Change History (0)

Note: See TracTickets for help on using tickets.