~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Aaron Bentley
  • Date: 2007-04-12 04:39:21 UTC
  • mto: (2520.4.1 bzr.mpbundle)
  • mto: This revision was merged to the branch mainline in revision 2631.
  • Revision ID: aaron.bentley@utoronto.ca-20070412043921-nl2n5ez9pl4m8vxj
Fix restoration bug

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
                                     help='dump pseudo-knit to stdout'),
28
28
                     commands.Option('extract', help='test extract time'),
29
29
                     commands.Option('single', help='use a single parent'),
 
30
                     commands.Option('verify', help='verify added texts'),
30
31
                    ]
31
32
    hidden = True
32
33
 
33
34
    def run(self, file=None, sync_snapshots=False, snapshot_interval=26,
34
 
            lsprof_timed=False, dump=False, extract=False, single=False):
 
35
            lsprof_timed=False, dump=False, extract=False, single=False,
 
36
            verify=False):
35
37
        if file is None:
36
38
            wt, path = WorkingTree.open_containing('.')
37
39
            file_weave = wt.branch.repository.get_inventory_weave()
54
56
            to_sync = snapshots
55
57
        else:
56
58
            to_sync = None
57
 
        vf.import_versionedfile(file_weave, to_sync, single_parent=single)
 
59
        vf.import_versionedfile(file_weave, to_sync, single_parent=single,
 
60
                                verify=verify)
58
61
        print >> sys.stderr, "%d fulltexts" % len(snapshots)
59
62
        print >> sys.stderr, "%d snapshots" % len(vf._snapshots)
60
63
        vf.clear_cache()