/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

Set RepositoryFormat.supports_external_lookups.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
from dulwich.index import (
22
22
    commit_tree,
23
23
    )
24
 
import os
25
24
import stat
26
25
 
27
26
from bzrlib.repository import (
95
94
            self._any_changes = True
96
95
            self._blobs[path[1].encode("utf-8")] = (mode, sha)
97
96
            file_sha1 = workingtree.get_file_sha1(file_id, path[1])
98
 
            yield file_id, path[1], (file_sha1, os.lstat(workingtree.abspath(path[1])))
 
97
            _, st = workingtree.get_file_with_stat(file_id, path[1])
 
98
            yield file_id, path[1], (file_sha1, st)
99
99
        # Fill in entries that were not changed
100
100
        basis_tree = workingtree.basis_tree()
101
101
        assert basis_tree.get_revision_id() == basis_revid