/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 bzrlib/_chk_map_py.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-04-05 13:49:36 UTC
  • mfrom: (5753.2.4 lazyimport-scope)
  • Revision ID: pqm@pqm.ubuntu.com-20110405134936-0ys2p9oyxpsjqvh2
(jelmer) Remove unused lazy imports, fix two scope bugs. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
157
157
    result._node_width = len(prefix)
158
158
    result._search_prefix = common_prefix
159
159
    return result
 
160
 
 
161
 
 
162
def _bytes_to_text_key(bytes):
 
163
    """Take a CHKInventory value string and return a (file_id, rev_id) tuple"""
 
164
    sections = bytes.split('\n')
 
165
    kind, file_id = sections[0].split(': ')
 
166
    return (intern(file_id), intern(sections[3]))
 
167