/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 mapping.py

Register lazily where possible.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
        ForeignRevision,
25
25
        )
26
26
 
27
 
from dulwich.objects import Commit
28
 
 
29
 
 
30
27
def escape_file_id(file_id):
31
28
    return file_id.replace('_', '__').replace(' ', '_s')
32
29
 
85
82
        :param tree_sha: HACK parameter (until we can retrieve this from the mapping)
86
83
        :return dulwich.objects.Commit represent the revision:
87
84
        """
 
85
        from dulwich.objects import Commit
88
86
        commit = Commit()
89
87
        commit._tree = tree_sha
90
88
        for p in rev.parent_ids: