/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: 2019-03-05 07:32:38 UTC
  • mto: (7290.1.21 work)
  • mto: This revision was merged to the branch mainline in revision 7311.
  • Revision ID: jelmer@jelmer.uk-20190305073238-zlqn981opwnqsmzi
Add appveyor configuration.

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)
90
88
        except ValueError:
91
89
            raise KeyError(file_id)
92
90
        text_parents = []
94
92
            try:
95
93
                (path, text_parent) = (
96
94
                    self.change_scanner.find_last_change_revision(
97
 
                        path, commit_parent))
 
95
                        path.encode('utf-8'), commit_parent))
98
96
            except KeyError:
99
97
                continue
100
98
            if text_parent not in text_parents: