~cjwatson/brz-loom/breezy-3.0.0

« back to all changes in this revision

Viewing changes to loom_io.py

  • Committer: Jelmer Vernooij
  • Date: 2018-05-20 13:59:05 UTC
  • Revision ID: jelmer@jelmer.uk-20180520135905-xprutd7e7785g94r
Port to breezy (mostly)

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
from __future__ import absolute_import
22
22
 
23
23
 
24
 
import bzrlib.osutils
 
24
import breezy.osutils
25
25
 
26
26
 
27
27
# The current format marker for serialised loom state.
48
48
            thread_content += '%s %s\n' % (rev_id, thread)
49
49
        thread_content = thread_content.encode('utf8')
50
50
        stream.write(thread_content)
51
 
        return bzrlib.osutils.sha_strings([thread_content])
 
51
        return breezy.osutils.sha_strings([thread_content])
52
52
 
53
53
 
54
54
class LoomStateWriter(object):