~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transform.py

Better error handling for bad transforms

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
from bzrlib.errors import (DuplicateKey, MalformedTransform, NoSuchFile,
22
22
                           ReusingTransform, NotVersionedError, CantMoveRoot,
23
 
                           ExistingLimbo, ImmortalLimbo)
 
23
                           ExistingLimbo, ImmortalLimbo, NoFinalPath)
24
24
from bzrlib.inventory import InventoryEntry
25
25
from bzrlib.osutils import (file_kind, supports_executable, pathjoin, lexists,
26
26
                            delete_any)
445
445
            try:
446
446
                return os.path.basename(self._tree_id_paths[trans_id])
447
447
            except KeyError:
448
 
                raise self.final_file_id(trans_id)
 
448
                raise NoFinalPath(trans_id, self)
449
449
 
450
450
    def by_parent(self):
451
451
        """Return a map of parent: children for known parents.