Commits

Jun Omae committed d39f60b

1.0.2dev: follow-ups to r11745, adds missing `.zip` to the file name of zip download from changeset page and removed undefined `self` in `render_zip` utility function

Comments (0)

Files changed (2)

trac/versioncontrol/web_ui/changeset.py

             if format == 'diff':
                 self._render_diff(req, filename, repos, data)
             elif format == 'zip':
-                render_zip(req, filename, repos, None,
+                render_zip(req, filename + '.zip', repos, None,
                            partial(self._zip_iter_nodes, req, repos, data))
 
         # -- HTML format

trac/versioncontrol/web_ui/util.py

             continue
         zipinfo = ZipInfo()
         path = node.path.strip('/')
-        if not path.startswith(root_path):
-            self.log.debug('path=%r, root_path=%r', path, root_path)
         assert path.startswith(root_path)
         # The general purpose bit flag 11 is used to denote
         # UTF-8 encoding for path and comment. Only set it for