~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transform.py

  • Committer: Ian Clatworthy
  • Date: 2008-04-17 08:21:14 UTC
  • mto: (4171.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 4173.
  • Revision ID: ian.clatworthy@canonical.com-20080417082114-76imbiarcbj16ov3
first cut at working tree content filtering

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
                           ReusingTransform, NotVersionedError, CantMoveRoot,
33
33
                           ExistingLimbo, ImmortalLimbo, NoFinalPath,
34
34
                           UnableCreateSymlink)
 
35
from bzrlib.filters import filtered_writelines, filters_for_path
35
36
from bzrlib.inventory import InventoryEntry
36
37
from bzrlib.osutils import (file_kind, supports_executable, pathjoin, lexists,
37
38
                            delete_any, has_symlinks)
327
328
                os.unlink(name)
328
329
                raise
329
330
 
330
 
            f.writelines(contents)
 
331
            filtered_writelines(f, contents, filters_for_path(name))
331
332
        finally:
332
333
            f.close()
333
334
        self._set_mode(trans_id, mode_id, S_ISREG)