~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/weavefile.py

  • Committer: John Arbash Meinel
  • Date: 2005-09-29 20:34:25 UTC
  • mfrom: (1185.11.24)
  • mto: (1393.1.12)
  • mto: This revision was merged to the branch mainline in revision 1396.
  • Revision ID: john@arbash-meinel.com-20050929203425-7fc2ea87f449dfe8
Merged in split-storage-2 branch. Need to cleanup a little bit more still.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /usr/bin/python
2
 
 
3
1
# Copyright (C) 2005 Canonical Ltd
4
2
 
5
3
# This program is free software; you can redistribute it and/or modify
100
98
 
101
99
def read_weave_v5(f):
102
100
    from weave import Weave, WeaveFormatError
103
 
    w = Weave()
 
101
    w = Weave(getattr(f, 'name', None))
104
102
 
105
 
    wfe = WeaveFormatError
106
103
    l = f.readline()
107
104
    if l != FORMAT_1:
108
105
        raise WeaveFormatError('invalid weave file header: %r' % l)