/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/tests/test_roundtrip.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:
18
18
 
19
19
"""Tests for roundtripping text parsing."""
20
20
 
21
 
from __future__ import absolute_import
22
 
 
23
21
from ...tests import TestCase
24
22
 
25
23
from ..roundtrip import (
26
24
    CommitSupplement,
27
 
    deserialize_fileid_map,
28
25
    extract_bzr_metadata,
29
26
    generate_roundtripping_metadata,
30
27
    inject_bzr_metadata,
31
28
    parse_roundtripping_metadata,
32
 
    serialize_fileid_map,
33
29
    )
34
30
 
35
31
 
100
96
        metadata = CommitSupplement()
101
97
        msg = inject_bzr_metadata(b"Foo", metadata, "utf-8")
102
98
        self.assertEqual(b"Foo", msg)
103
 
 
104
 
 
105
 
class FileIdRoundTripTests(TestCase):
106
 
 
107
 
    def test_deserialize(self):
108
 
        self.assertEqual({"bar/bla": b"fid"},
109
 
                         deserialize_fileid_map(b"bar/bla\0fid\n"))
110
 
 
111
 
    def test_serialize(self):
112
 
        self.assertEqual([b"bar/bla\0fid\n"],
113
 
                         serialize_fileid_map({"bar/bla": b"fid"}))