[meld/VersionControlRework: 41/123] vc._null: Use a less hacky implementation of a no-op tree cache
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld/VersionControlRework: 41/123] vc._null: Use a less hacky implementation of a no-op tree cache
- Date: Sun, 19 Apr 2015 20:09:26 +0000 (UTC)
commit 83c905a7aae9b044b5fab9420c841328111269dd
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sun Mar 22 14:40:28 2015 +1000
vc._null: Use a less hacky implementation of a no-op tree cache
meld/vc/_null.py | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/meld/vc/_null.py b/meld/vc/_null.py
index eb31da9..3ac3ee5 100644
--- a/meld/vc/_null.py
+++ b/meld/vc/_null.py
@@ -34,14 +34,8 @@ class Vc(_vc.Vc):
NAME = ""
VC_DIR = "."
- def lookup_files(self, dirs, files, directory=None):
- dirs = [
- _vc.Entry(path, name, _vc.STATE_NONE, isdir=True)
- for name, path in dirs]
- files = [
- _vc.Entry(path, name, _vc.STATE_NONE, isdir=False)
- for name, path in files]
- return dirs, files
+ def _update_tree_state_cache(*args):
+ pass
def get_path_for_repo_file(self, path, commit=None):
with tempfile.NamedTemporaryFile(prefix='meld-tmp', delete=False) as f:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]