~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transform.py

  • Committer: Aaron Bentley
  • Date: 2008-10-10 22:59:29 UTC
  • mto: (3363.19.2 fix-iter-changes)
  • mto: This revision was merged to the branch mainline in revision 3777.
  • Revision ID: aaron@aaronbentley.com-20081010225929-08pkzo68wbfr3yqg
Deprecate create_by_entry

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
from bzrlib.progress import DummyProgress, ProgressPhase
49
49
from bzrlib.symbol_versioning import (
50
50
        deprecated_function,
 
51
        deprecated_in,
51
52
        )
52
53
from bzrlib.trace import mutter, warning
53
54
from bzrlib import tree
2164
2165
        raise errors.BadFileKindError(name, kind)
2165
2166
 
2166
2167
 
 
2168
@deprecated_function(deprecated_in((1, 9, 0)))
2167
2169
def create_by_entry(tt, entry, tree, trans_id, lines=None, mode_id=None):
2168
 
    """Create new file contents according to an inventory entry."""
 
2170
    """Create new file contents according to an inventory entry.
 
2171
 
 
2172
    DEPRECATED.  Use create_from_tree instead.
 
2173
    """
2169
2174
    if entry.kind == "file":
2170
2175
        if lines is None:
2171
2176
            lines = tree.get_file(entry.file_id).readlines()