Rev 5352: Delete bzrlib.transform.create_by_entry (no deprecation tests). in file:///home/vila/src/bzr/cleanup/deprecations/

Vincent Ladeuil v.ladeuil+lp at free.fr
Thu Jul 15 14:39:38 BST 2010


At file:///home/vila/src/bzr/cleanup/deprecations/

------------------------------------------------------------
revno: 5352
revision-id: v.ladeuil+lp at free.fr-20100715133938-ig82bitvdfonfu6w
parent: v.ladeuil+lp at free.fr-20100715133330-u06o1t8rkqf7rmw9
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: deprecations
timestamp: Thu 2010-07-15 15:39:38 +0200
message:
  Delete bzrlib.transform.create_by_entry (no deprecation tests).
-------------- next part --------------
=== modified file 'bzrlib/transform.py'
--- a/bzrlib/transform.py	2010-05-29 15:40:14 +0000
+++ b/bzrlib/transform.py	2010-07-15 13:39:38 +0000
@@ -2529,22 +2529,6 @@
         raise errors.BadFileKindError(name, kind)
 
 
- at deprecated_function(deprecated_in((1, 9, 0)))
-def create_by_entry(tt, entry, tree, trans_id, lines=None, mode_id=None):
-    """Create new file contents according to an inventory entry.
-
-    DEPRECATED.  Use create_from_tree instead.
-    """
-    if entry.kind == "file":
-        if lines is None:
-            lines = tree.get_file(entry.file_id).readlines()
-        tt.create_file(lines, trans_id, mode_id=mode_id)
-    elif entry.kind == "symlink":
-        tt.create_symlink(tree.get_symlink_target(entry.file_id), trans_id)
-    elif entry.kind == "directory":
-        tt.create_directory(trans_id)
-
-
 def create_from_tree(tt, trans_id, tree, file_id, bytes=None,
     filter_tree_path=None):
     """Create new file contents according to tree contents.



More information about the bazaar-commits mailing list