[meld] vc: Remove support for additional VC metadata file/folders



commit 671e385499ebe9747355d3eaf6941fc63f67a1ba
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Fri Apr 6 07:52:58 2018 +1000

    vc: Remove support for additional VC metadata file/folders
    
    This was only ever used for default ignore patterns, and hasn't been in
    use for a long time. The ignore patterns are now in the gsettings
    schema, and there's no intention of making them partially-dynamic again.

 meld/vc/__init__.py | 12 ------------
 meld/vc/_vc.py      |  1 -
 2 files changed, 13 deletions(-)
---
diff --git a/meld/vc/__init__.py b/meld/vc/__init__.py
index ca86d688..b9991d0f 100644
--- a/meld/vc/__init__.py
+++ b/meld/vc/__init__.py
@@ -30,18 +30,6 @@ from . import _null, bzr, darcs, git, mercurial, svn
 VC_PLUGINS = (git, mercurial, bzr, svn, darcs)
 
 
-def get_plugins_metadata():
-    ret = []
-    for p in VC_PLUGINS:
-        # Some plugins have VC_DIR=None until instantiated
-        if p.Vc.VC_DIR:
-            ret.append(p.Vc.VC_DIR)
-        # Most plugins have VC_METADATA=None
-        if p.Vc.VC_METADATA:
-            ret.extend(p.Vc.VC_METADATA)
-    return ret
-
-
 def get_vcs(location):
     """Pick only the Vcs with the longest repo root
 
diff --git a/meld/vc/_vc.py b/meld/vc/_vc.py
index c8be65c4..d138f992 100644
--- a/meld/vc/_vc.py
+++ b/meld/vc/_vc.py
@@ -129,7 +129,6 @@ class Vc(object):
 
     VC_DIR = None
     VC_ROOT_WALK = True
-    VC_METADATA = None
 
     def __init__(self, path):
         # Save the requested comparison location. The location may be a


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