/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

Use public properties to set git objects values.

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
            self.repository._git.object_store.add_object(self._trees[path])
95
95
        c = Commit()
96
96
        root_tree = self._add_tree("")
97
 
        c._tree = root_tree.id 
98
 
        c._committer = self._committer
99
 
        c._author = self._revprops.get('author', self._committer)
100
 
        c._commit_timestamp = self._timestamp
101
 
        c._author_timestamp = self._timestamp
102
 
        c._commit_timezone = self._timezone
103
 
        c._author_timezone = self._timezone
104
 
        c._message = message.encode("utf-8")
 
97
        c.tree = root_tree.id 
 
98
        c.committer = self._committer
 
99
        c.author = self._revprops.get('author', self._committer)
 
100
        c.commit_timestamp = self._timestamp
 
101
        c.author_timestamp = self._timestamp
 
102
        c.commit_timezone = self._timezone
 
103
        c.author_timezone = self._timezone
 
104
        c.message = message.encode("utf-8")
105
105
        self.repository._git.object_store.add_object(c)