~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_smart_add.py

  • Committer: Robert Collins
  • Date: 2006-05-19 13:53:22 UTC
  • mto: (1724.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 1725.
  • Revision ID: robertc@robertcollins.net-20060519135322-6d20c1d87f1a9204
refactor smart_add to pass around the parent inventory entry and use that, resulting in another 100bzrlib/inventory.py performance improvement, and making inventory writing the dominating factory in add. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
208
208
        inv = Inventory()
209
209
        stdout = StringIO()
210
210
 
211
 
        self.apply_redirected(None, stdout, None, action, inv, 'path', 'file')
 
211
        self.apply_redirected(None, stdout, None, action, inv, None, 'path', 'file')
212
212
        self.assertEqual(stdout.getvalue(), output)
213
213
 
214
214
        if should_add: