diff --git a/docs/changelog.rst b/docs/changelog.rst --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -22,7 +22,7 @@ news - fixed #90 whoosh indexer can index chooses repositories passed in command line - extended journal with day aggregates and paging -- implemented #107 customizable code highlights on code sources +- implemented #107 source code lines highlight ranges - implemented #93 customizable changelog on combined revision ranges - equivalent of githubs compare view - implemented #108 extended and more powerful LDAP configuration @@ -33,8 +33,8 @@ news - fixed many issues with international characters and unicode. It uses utf8 decode with replace to provide less errors even with non utf8 encoded strings - #125 added API KEY access to feeds -- #109 Repository can be created from external Mercurial link, and manually - updated (via pull) from admin panel +- #109 Repository can be created from external Mercurial link (aka. remote + repository, and manually updated (via pull) from admin panel fixes ----- @@ -49,6 +49,7 @@ fixes - removed issue with space inside renamed repository after deletion - fixed strange issue on formencode imports - fixed #126 Deleting repository on Windows, rename used incompatible chars. +- windows fixes for os.kill and path spliting, issues #148 and #133 1.1.7 (**2011-03-23**) ====================== diff --git a/rhodecode/controllers/files.py b/rhodecode/controllers/files.py --- a/rhodecode/controllers/files.py +++ b/rhodecode/controllers/files.py @@ -25,6 +25,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, # MA 02110-1301, USA. +import os import logging import rhodecode.lib.helpers as h @@ -153,7 +154,7 @@ class FilesController(BaseRepoController file_node = self.__get_filenode_or_redirect(repo_name, cs, f_path) response.content_disposition = 'attachment; filename=%s' % \ - f_path.split('/')[-1].encode('utf8', 'replace') + f_path.split(os.sep)[-1].encode('utf8', 'replace') response.content_type = file_node.mimetype return file_node.content