[Pkg-bazaar-commits] ./bzr/unstable r464: - remove dead code

Martin Pool mbp at sourcefrog.net
Fri Apr 10 08:19:13 UTC 2009


------------------------------------------------------------
revno: 464
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Wed 2005-05-11 15:15:13 +1000
message:
  - remove dead code
modified:
  bzrlib/status.py
-------------- next part --------------
=== modified file 'bzrlib/status.py'
--- a/bzrlib/status.py	2005-05-05 06:24:20 +0000
+++ b/bzrlib/status.py	2005-05-11 05:15:13 +0000
@@ -15,38 +15,3 @@
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
 
-
-def find_modified(branch):
-    """Return a list of files that have been modified in the working copy.
-
-    This does not consider renames and does not include files added or
-    deleted.
-
-    Each modified file is returned as (PATH, ENTRY).
-    """
-    import cache
-
-    inv = branch.read_working_inventory()
-    cc = cache.update_cache(branch, inv)
-    basis_inv = branch.basis_tree().inventory
-    
-    for path, entry in inv.iter_entries():
-        if entry.kind != 'file':
-            continue
-        
-        file_id = entry.file_id
-        ce = cc.get(file_id)
-        if not ce:
-            continue                    # not in working dir
-
-        if file_id not in basis_inv:
-            continue                    # newly added
-
-        old_entry = basis_inv[file_id]
- 
-        if (old_entry.text_size == ce[3]
-            and old_entry.text_sha1 == ce[1]):
-            continue
-
-        yield path, entry
-        



More information about the Pkg-bazaar-commits mailing list