/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 tools/history2weaves.py

  • Committer: Martin Pool
  • Date: 2005-08-22 14:14:01 UTC
  • Revision ID: mbp@sourcefrog.net-20050822141401-e254d0a22fb12df8
- better progress messages for conversion to weaves

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
    text_count = 0
55
55
    
56
56
    for rev_id in rev_history:
57
 
        pb.update('converting inventory', revno, len(rev_history))
 
57
        pb.update('converting revision', revno, len(rev_history))
58
58
        
59
59
        inv_xml = b.get_inventory_xml(rev_id).readlines()
60
60
 
106
106
    # TODO: commit them all atomically at the end, not one by one
107
107
    write_atomic_weave(inv_weave, 'weaves/inventory.weave')
108
108
    for file_id, file_weave in text_weaves.items():
109
 
        pb.update('writing weave', i, text_count)
 
109
        pb.update('writing weave', i, len(text_weaves))
110
110
        write_atomic_weave(file_weave, 'weaves/%s.weave' % file_id)
111
111
        i += 1
112
112