~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/inventory.py

  • Committer: aaron.bentley at utoronto
  • Date: 2005-08-05 02:53:57 UTC
  • mto: (1092.1.41) (1185.3.4) (974.1.47)
  • mto: This revision was merged to the branch mainline in revision 1110.
  • Revision ID: aaron.bentley@utoronto.ca-20050805025357-9d90b2e4c066eb4b
Switched from text-id to hashcache for merge optimization

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
from bzrlib.osutils import uuid, quotefn, splitpath, joinpath, appendpath
29
29
from bzrlib.trace import mutter
30
 
from bzrlib.errors import NotVersionedError
31
 
        
32
30
 
33
31
class InventoryEntry(object):
34
32
    """Description of a versioned file.
431
429
        """Add entry from a path.
432
430
 
433
431
        The immediate parent must already be versioned"""
434
 
        from bzrlib.branch import gen_file_id
 
432
        from bzrlib.errors import NotVersionedError
435
433
        
436
434
        parts = bzrlib.osutils.splitpath(relpath)
437
435
        if len(parts) == 0:
438
436
            raise BzrError("cannot re-add root of inventory")
439
437
 
440
438
        if file_id == None:
 
439
            from bzrlib.branch import gen_file_id
441
440
            file_id = gen_file_id(relpath)
442
441
 
443
442
        parent_path = parts[:-1]