~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_reconcile.py

  • Committer: John Arbash Meinel
  • Date: 2006-10-16 01:50:48 UTC
  • mfrom: (2078 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2080.
  • Revision ID: john@arbash-meinel.com-20061016015048-0f22df07e38093da
[merge] bzr.dev 2078

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006 by Canonical Ltd
 
1
# Copyright (C) 2006 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
19
19
 
20
20
import bzrlib
21
21
import bzrlib.bzrdir as bzrdir
 
22
from bzrlib.inventory import Inventory
22
23
import bzrlib.repository as repository
23
24
from bzrlib.tests import TestCaseWithTransport
24
25
from bzrlib.tests.blackbox import TestUIFactory
51
52
        t = bzrdir.BzrDir.create_standalone_workingtree('.')
52
53
        # an empty inventory with no revision will trigger reconciliation.
53
54
        repo = t.branch.repository
54
 
        inv = bzrlib.tree.EmptyTree().inventory
 
55
        inv = Inventory(revision_id='missing')
 
56
        inv.root.revision='missing'
55
57
        repo.add_inventory('missing', inv, [])
56
58
        (out, err) = self.run_bzr_captured(['reconcile'])
57
59
        self.assertEqualDiff(out, "Reconciling repository %s\n"