/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 breezy/git/filegraph.py

  • Committer: Jelmer Vernooij
  • Date: 2020-03-22 20:02:36 UTC
  • mto: (7490.7.7 work)
  • mto: This revision was merged to the branch mainline in revision 7501.
  • Revision ID: jelmer@jelmer.uk-20200322200236-fsbl91ktcn6fcbdd
Fix tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
"""File graph access."""
19
19
 
 
20
from __future__ import absolute_import
 
21
 
20
22
import stat
21
23
 
22
24
from dulwich.errors import (
30
32
    NULL_REVISION,
31
33
    )
32
34
 
33
 
from .mapping import (
34
 
    encode_git_path,
35
 
    )
36
 
 
37
35
 
38
36
class GitFileLastChangeScanner(object):
39
37
 
86
84
            self.change_scanner.repository.lookup_bzr_revision_id(
87
85
                text_revision))
88
86
        try:
89
 
            path = encode_git_path(mapping.parse_file_id(file_id))
 
87
            path = mapping.parse_file_id(file_id).encode('utf-8')
90
88
        except ValueError:
91
89
            raise KeyError(file_id)
92
90
        text_parents = []