/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: Gustav Hartvigsson
  • Date: 2021-01-09 21:36:27 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20210109213627-h1xwcutzy9m7a99b
Added 'Case Preserving Working Tree Use Cases' from Canonical Wiki

* Addod a page from the Canonical Bazaar wiki
  with information on the scmeatics of case
  perserving filesystems an a case insensitive
  filesystem works.
  
  * Needs re-work, but this will do as it is the
    same inforamoton as what was on the linked
    page in the currint documentation.

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 = []