Commit 6cd470bf authored by Kai Willadsen's avatar Kai Willadsen

meld.vc: Remove unused directory argument from _get_tree_cache

parent 22309de5
......@@ -195,7 +195,7 @@ class Vc(object):
def cache_tree(self, directory):
raise NotImplementedError()
def _get_tree_cache(self, directory):
def _get_tree_cache(self):
if not self._tree_cache:
self._tree_cache = self.cache_tree()
return self._tree_cache
......
......@@ -226,7 +226,7 @@ class Vc(_vc.Vc):
return tree_cache
def _get_dirsandfiles(self, directory, dirs, files):
tree = self._get_tree_cache(directory)
tree = self._get_tree_cache()
retfiles = []
retdirs = []
......
......@@ -373,12 +373,12 @@ class Vc(_vc.Vc):
return tree_state
def update_file_state(self, path):
tree_state = self._get_tree_cache(os.path.dirname(path))
tree_state = self._get_tree_cache()
self._update_tree_state_cache(path, tree_state)
def _get_dirsandfiles(self, directory, dirs, files):
tree = self._get_tree_cache(directory)
tree = self._get_tree_cache()
retfiles = []
retdirs = []
......
......@@ -128,12 +128,12 @@ class Vc(_vc.Vc):
return tree_state
def update_file_state(self, path):
tree_state = self._get_tree_cache(os.path.dirname(path))
tree_state = self._get_tree_cache()
self._update_tree_state_cache(path, tree_state)
def _get_dirsandfiles(self, directory, dirs, files):
tree = self._get_tree_cache(directory)
tree = self._get_tree_cache()
retfiles = []
retdirs = []
......
......@@ -222,11 +222,11 @@ class Vc(_vc.Vc):
return tree_state
def update_file_state(self, path):
tree_state = self._get_tree_cache(os.path.dirname(path))
tree_state = self._get_tree_cache()
self._update_tree_state_cache(path, tree_state)
def _get_dirsandfiles(self, directory, dirs, files):
tree = self._get_tree_cache(directory)
tree = self._get_tree_cache()
if not directory in tree:
return [], []
......
......@@ -428,7 +428,7 @@ class VcView(melddoc.MeldDoc, gnomeglade.Component):
active_action(a[0]) and a[1]]
yield _("Scanning %s") % rootname
self.vc._get_tree_cache(rootname)
self.vc._get_tree_cache()
while todo:
# This needs to happen sorted and depth-first in order for our row
# references to remain valid while we traverse.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment