~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to tools/history2weaves.py

  • Committer: Martin Pool
  • Date: 2005-09-06 02:26:28 UTC
  • Revision ID: mbp@sourcefrog.net-20050906022628-66d65f0feb4a9e80
- implement version 5 xml storage, and tests

  This stores files identified by the version that introduced the 
  text, and the version that introduced the name.  Entry kinds are
  given by the xml tag not an explicit kind field.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
    pass
26
26
 
27
27
 
 
28
import logging
 
29
 
28
30
import bzrlib.branch
29
31
from bzrlib.revfile import Revfile
30
32
from bzrlib.weave import Weave
31
33
from bzrlib.weavefile import read_weave, write_weave
32
34
from bzrlib.progress import ProgressBar
33
35
from bzrlib.atomicfile import AtomicFile
 
36
import bzrlib.trace
34
37
import tempfile
35
38
import hotshot, hotshot.stats
36
39
import sys
37
40
 
38
41
def convert():
 
42
    bzrlib.trace.enable_default_logging()
 
43
 
39
44
    pb = ProgressBar()
40
45
 
41
46
    inv_weave = Weave()