~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commit.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-09-22 21:02:46 UTC
  • mfrom: (1551.8.30 Aaron's mergeable stuff)
  • Revision ID: pqm@pqm.ubuntu.com-20060922210246-f5feadad82fc6617
Make commit puke on unversioned files

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
 
72
72
from cStringIO import StringIO
73
73
 
 
74
from bzrlib import (
 
75
    errors,
 
76
    tree,
 
77
    )
74
78
import bzrlib.config
75
 
import bzrlib.errors as errors
76
79
from bzrlib.errors import (BzrError, PointlessCommit,
77
80
                           ConflictsInTree,
78
81
                           StrictCommitFailed
277
280
            self.work_inv = self.work_tree.inventory
278
281
            self.basis_tree = self.work_tree.basis_tree()
279
282
            self.basis_inv = self.basis_tree.inventory
 
283
            if specific_files is not None:
 
284
                # Ensure specified files are versioned
 
285
                # (We don't actually need the ids here)
 
286
                tree.find_ids_across_trees(specific_files, 
 
287
                                           [self.basis_tree, self.work_tree])
280
288
            # one to finish, one for rev and inventory, and one for each
281
289
            # inventory entry, and the same for the new inventory.
282
290
            # note that this estimate is too long when we do a partial tree