~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_tree/__init__.py

  • Committer: Martin Pool
  • Date: 2010-02-25 06:17:27 UTC
  • mfrom: (5055 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5057.
  • Revision ID: mbp@sourcefrog.net-20100225061727-4sd9lt0qmdc6087t
merge news

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006, 2007, 2008 Canonical Ltd
 
1
# Copyright (C) 2006-2010 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
80
80
    basis = tree.basis_tree()
81
81
    tt = TransformPreview(basis)
82
82
    testcase.addCleanup(tt.finalize)
83
 
    pp = progress.ProgressPhase('', 1, progress.DummyProgress())
84
83
    tree.lock_read()
85
84
    testcase.addCleanup(tree.unlock)
86
 
    transform._prepare_revert_transform(basis, tree, tt, None, False, pp,
 
85
    pp = None
 
86
    transform._prepare_revert_transform(basis, tree, tt, None, False, None,
87
87
                                        basis, {})
88
88
    preview_tree = tt.get_preview_tree()
89
89
    preview_tree.set_parent_ids(tree.get_parent_ids())