[meld/VersionControlRework: 27/123] vc.bzr: Don't populate the cache when committing



commit d3c1f1db6c2642bd08bfa784f846b0ec2ad0c844
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sun Mar 22 08:37:55 2015 +1000

    vc.bzr: Don't populate the cache when committing
    
    If that cache is empty here, something has gone very wrong.

 meld/vc/bzr.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/meld/vc/bzr.py b/meld/vc/bzr.py
index b8dbe87..fef272e 100644
--- a/meld/vc/bzr.py
+++ b/meld/vc/bzr.py
@@ -136,11 +136,10 @@ class Vc(_vc.Vc):
         return self.root
 
     def get_files_to_commit(self, paths):
-        tree = self._get_tree_cache()
         files = []
         for p in paths:
             if os.path.isdir(p):
-                for path, status in tree.items():
+                for path, status in self._tree_cache.items():
                     if status in self.commit_statuses and path.startswith(p):
                         files.append(os.path.relpath(path, self.root))
             else:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]