~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transform.py

  • Committer: Martin Pool
  • Date: 2010-04-28 07:53:34 UTC
  • mto: This revision was merged to the branch mainline in revision 5192.
  • Revision ID: mbp@sourcefrog.net-20100428075334-mbrtapod09d7v6ea
wrap os.rename to insert the source and destination filenames in any exception that may be raised

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
    )
36
36
""")
37
37
from bzrlib.errors import (DuplicateKey, MalformedTransform, NoSuchFile,
38
 
                           ReusingTransform, CantMoveRoot,
 
38
                           ReusingTransform, NotVersionedError, CantMoveRoot,
39
39
                           ExistingLimbo, ImmortalLimbo, NoFinalPath,
40
40
                           UnableCreateSymlink)
41
41
from bzrlib.filters import filtered_output_bytes, ContentFilterContext
1798
1798
            executable = self.is_executable(file_id, path)
1799
1799
        return kind, executable, None
1800
1800
 
1801
 
    def is_locked(self):
1802
 
        return False
1803
 
 
1804
1801
    def lock_read(self):
1805
1802
        # Perhaps in theory, this should lock the TreeTransform?
1806
 
        return self
 
1803
        pass
1807
1804
 
1808
1805
    def unlock(self):
1809
1806
        pass