/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-07-28 02:47:10 UTC
  • mfrom: (7519.1.1 merge-3.1)
  • Revision ID: breezy.the.bot@gmail.com-20200728024710-a2ylds219f1lsl62
Merge lp:brz/3.1.

Merged from https://code.launchpad.net/~jelmer/brz/merge-3.1/+merge/388173

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
 
 
22
20
import stat
23
21
 
24
22
from dulwich.errors import (
32
30
    NULL_REVISION,
33
31
    )
34
32
 
 
33
from .mapping import (
 
34
    encode_git_path,
 
35
    )
 
36
 
35
37
 
36
38
class GitFileLastChangeScanner(object):
37
39
 
84
86
            self.change_scanner.repository.lookup_bzr_revision_id(
85
87
                text_revision))
86
88
        try:
87
 
            path = mapping.parse_file_id(file_id).encode('utf-8')
 
89
            path = encode_git_path(mapping.parse_file_id(file_id))
88
90
        except ValueError:
89
91
            raise KeyError(file_id)
90
92
        text_parents = []