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

  • Committer: Jelmer Vernooij
  • Date: 2018-11-06 02:25:29 UTC
  • mto: This revision was merged to the branch mainline in revision 7150.
  • Revision ID: jelmer@jelmer.uk-20181106022529-qlctdqketvoibpvz
Simplify brz-git, drop imports.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
    trace,
31
31
    urlutils,
32
32
    )
33
 
from ..bzr.inventory import (
34
 
    ROOT_ID,
35
 
    )
36
33
from ..foreign import (
37
34
    ForeignVcs,
38
35
    VcsMappingRegistry,
73
70
 
74
71
FILE_ID_PREFIX = b'git:'
75
72
 
 
73
# Always the same.
 
74
ROOT_ID = b"TREE_ROOT"
 
75
 
76
76
 
77
77
def escape_file_id(file_id):
78
78
    return file_id.replace(b'_', b'__').replace(b' ', b'_s').replace(b'\x0c', b'_c')