/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/transform.py

  • Committer: Ian Clatworthy
  • Date: 2008-04-24 02:56:09 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-20080424025609-mqsqq4r3z54opay6
default context should only support relpath

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_output_lines
 
35
from bzrlib.filters import filtered_output_lines, ContentFilterContext
36
36
from bzrlib.inventory import InventoryEntry
37
37
from bzrlib.osutils import (file_kind, supports_executable, pathjoin, lexists,
38
38
                            delete_any, has_symlinks)
332
332
            # (The +1 adjusts for the path separator.)
333
333
            relpath = name[len(self._limbodir) + 1:]
334
334
            filters = self._tree._content_filter_stack(relpath)
335
 
            f.writelines(filtered_output_lines(contents, filters))
 
335
            f.writelines(filtered_output_lines(contents, filters,
 
336
                ContentFilterContext(relpath)))
336
337
        finally:
337
338
            f.close()
338
339
        self._set_mode(trans_id, mode_id, S_ISREG)