Permalink
Browse files

GitPlugin: fix exception on changesets that contain file-mode changes…

… denoted by 'T'
  • Loading branch information...
1 parent f0f2f43 commit de6186dad1c3af656c3b6eea168c80e2eba66f0a @hvr committed Aug 23, 2008
Showing with 5 additions and 4 deletions.
  1. +5 −4 tracext/git/git_fs.py
View
@@ -375,13 +375,14 @@ def get_last_modified(self):
class GitChangeset(Changeset):
- action_map = {
+ action_map = { # see also git-diff-tree(1) --diff-filter
'A': Changeset.ADD,
- 'M': Changeset.EDIT,
+ 'M': Changeset.EDIT, # modified
+ 'T': Changeset.EDIT, # file type (mode) change
'D': Changeset.DELETE,
- 'R': Changeset.MOVE,
+ 'R': Changeset.MOVE, # renamed
'C': Changeset.COPY
- }
+ } # TODO: U, X, B
def __init__(self, git, sha):
self.git = git

0 comments on commit de6186d

Please sign in to comment.