Commits

Anonymous committed 2832037

[svn r10858] 0.12.3dev: Fixed a compatibility issue with Subversion 1.4.

Closes #10439.

  • Participants
  • Parent commits 68e3912

Comments (0)

Files changed (1)

trac/versioncontrol/svn_fs.py

             path = _from_svn(path_utf8)
             base_path = _from_svn(base_path_utf8)
             base_rev = change.base_rev
-            action = getattr(change, 'action', None)
+            change_action = getattr(change, 'action', None)
 
             # Ensure `base_path` is within the scope
             if not _is_path_within_scope(self.scope, base_path):
             # Determine the action
             if not path and not new_path and self.scope == '/':
                 action = Changeset.EDIT # root property change
-            elif not path or action == repos.CHANGE_ACTION_DELETE:
+            elif not path or (change_action is not None
+                              and change_action == repos.CHANGE_ACTION_DELETE):
                 if new_path:            # deletion
                     action = Changeset.DELETE
                     deletions[new_path.lstrip('/')] = idx