#3584: Zip file names should match the latest version of their contents, not of
the whole repository
-------------------------+--------------------------------------------------
Reporter: eblot | Owner: jonas
Type: enhancement | Status: new
Priority: low | Milestone:
Component: general | Version: devel
Severity: minor | Resolution:
Keywords: |
-------------------------+--------------------------------------------------
Comment (by athomas):
This patch works, and I've enabled it on TracHacks:
{{{
#!diff
Index: trac/versioncontrol/web_ui/changeset.py
===================================================================
--- trac/versioncontrol/web_ui/changeset.py (revision 3622)
+++ trac/versioncontrol/web_ui/changeset.py (working copy)
@@ -228,7 +228,9 @@
req.perm.assert_permission('FILE_VIEW')
# choosing an appropriate filename
rpath = new_path.replace('/','_')
- if chgset:
+ if 'filename' in req.args:
+ filename = req.args['filename']
+ elif chgset:
if restricted:
filename = 'changeset_%s_r%s' % (rpath, new)
else:
}}}
--
Ticket URL: <http://trac.edgewall.org/ticket/3584#comment:1>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets