# HG changeset patch # User Marcin Kuzminski # Date 2016-11-25 20:55:25 # Node ID 76a3f0e8db71a8a7c0248d2b4d342c8309640ac7 # Parent 230198b7279faeefa3cc5e40c13870254c02b1e3 svn-backend: add handling of rename file as changes. Fixes #4258 diff --git a/vcsserver/svn.py b/vcsserver/svn.py --- a/vcsserver/svn.py +++ b/vcsserver/svn.py @@ -197,13 +197,15 @@ class SvnRemote(object): for path, change in editor.changes.iteritems(): # TODO: Decide what to do with directory nodes. Subversion can add # empty directories. + if change.item_kind == svn.core.svn_node_dir: continue - if change.action == svn.repos.CHANGE_ACTION_ADD: + if change.action in [svn.repos.CHANGE_ACTION_ADD]: added.append(path) - elif change.action == svn.repos.CHANGE_ACTION_MODIFY: + elif change.action in [svn.repos.CHANGE_ACTION_MODIFY, + svn.repos.CHANGE_ACTION_REPLACE]: changed.append(path) - elif change.action == svn.repos.CHANGE_ACTION_DELETE: + elif change.action in [svn.repos.CHANGE_ACTION_DELETE]: removed.append(path) else: raise NotImplementedError(