/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/plugins/weave_fmt/xml4.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:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
 
from __future__ import absolute_import
18
 
 
19
17
from ...bzr.xml_serializer import (
20
18
    Element,
21
19
    SubElement,
145
143
                    p.set('revision_sha1', rev.parent_sha1s[i])
146
144
        return root
147
145
 
 
146
    def write_revision_to_string(self, rev):
 
147
        return tostring(self._pack_revision(rev)) + b'\n'
 
148
 
 
149
    def _write_element(self, elt, f):
 
150
        ElementTree(elt).write(f, 'utf-8')
 
151
        f.write(b'\n')
 
152
 
148
153
    def _unpack_revision(self, elt):
149
154
        """XML Element -> Revision object"""
150
155