/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to commit.py

Abstract out kind mapping a bit, initial work on support tree-references.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
    )
29
29
 
30
30
from dulwich.objects import (
 
31
    S_IFGITLINK,
31
32
    Blob,
32
33
    Commit,
33
34
    Tree,
84
85
            elif kind[1] == "symlink":
85
86
                mode = stat.S_IFLNK
86
87
                sha = link_sha1(path[1], file_id)
 
88
            elif kind[1] == "tree-reference":
 
89
                mode = S_IFGITLINK
 
90
                sha = "FIXME"
87
91
            else:
88
92
                raise AssertionError("Unknown kind %r" % kind[1])
89
93
            if executable: