/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/commit.py

  • Committer: Robert Collins
  • Date: 2007-10-22 21:42:56 UTC
  • mto: This revision was merged to the branch mainline in revision 2931.
  • Revision ID: robertc@robertcollins.net-20071022214256-r19wm0qutqjezc21
Minor import cleanup in commit.py.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
17
17
 
18
 
# The newly committed revision is going to have a shape corresponding
19
 
# to that of the working inventory.  Files that are not in the
 
18
# The newly committed revisioVn is going to have a shape corresponding
 
19
# to that of the working tree.  Files that are not in the
20
20
# working tree and that were in the predecessor are reported as
21
21
# removed --- this can include files that were either removed from the
22
22
# inventory or deleted in the working tree.  If they were only
25
25
# We then consider the remaining entries, which will be in the new
26
26
# version.  Directory entries are simply copied across.  File entries
27
27
# must be checked to see if a new version of the file should be
28
 
# recorded.  For each parent revision inventory, we check to see what
 
28
# recorded.  For each parent revision tree, we check to see what
29
29
# version of the file was present.  If the file was present in at
30
30
# least one tree, and if it was the same version in all the trees,
31
31
# then we can just refer to that version.  Otherwise, a new version
59
59
from bzrlib import (
60
60
    debug,
61
61
    errors,
62
 
    inventory,
63
62
    revision,
64
63
    tree,
65
64
    )
76
75
from bzrlib.testament import Testament
77
76
from bzrlib.trace import mutter, note, warning, is_quiet
78
77
from bzrlib.xml5 import serializer_v5
79
 
from bzrlib.inventory import Inventory, InventoryEntry
 
78
from bzrlib.inventory import InventoryEntry, make_entry
80
79
from bzrlib import symbol_versioning
81
80
from bzrlib.symbol_versioning import (deprecated_passed,
82
81
        deprecated_function,
793
792
        # mutter('check %s {%s}', path, file_id)
794
793
        # mutter('%s selected for commit', path)
795
794
        if definitely_changed or existing_ie is None:
796
 
            ie = inventory.make_entry(kind, name, parent_id, file_id)
 
795
            ie = make_entry(kind, name, parent_id, file_id)
797
796
        else:
798
797
            ie = existing_ie.copy()
799
798
            ie.revision = None