[schema] remove ProjectEnvironment.vcs_path attribute draft
authorDavid Douard <david.douard@logilab.fr>
Sun, 09 Nov 2014 20:07:23 +0100
changeset 1771 3673586bc3d6
parent 1770 43ee4499b0a2
child 1772 139e0c756385
[schema] remove ProjectEnvironment.vcs_path attribute
hooks.py
schema.py
views/__init__.py
--- a/hooks.py	Fri Nov 14 12:44:03 2014 +0100
+++ b/hooks.py	Sun Nov 09 20:07:23 2014 +0100
@@ -143,14 +143,6 @@
             vcsrepo = revision.repository
             for basepe in vcsrepo.reverse_local_repository:
                 for pe in basepe.iter_refinements():
-                    if pe.vcs_path:
-                        # start test only if the revision is modifying file under
-                        # specified directory.
-                        if not self.cnx.execute(
-                            'Any R LIMIT 1 WHERE R eid %(r)s, VC from_revision R,'
-                            'VC content_for VF, VF directory ~= %(path)s',
-                            {'r': revision.eid, 'path': pe.vcs_path + '%'}):
-                            continue
                     for tc in pe.iter_configurations('on new revision'):
                         if tc.match_branch(pe, revision.branch):
                             # check recipe, we don't want buggy config to block
--- a/schema.py	Fri Nov 14 12:44:03 2014 +0100
+++ b/schema.py	Sun Nov 09 20:07:23 2014 +0100
@@ -95,10 +95,6 @@
                       'environment (one per line)'),
         fulltextindexed=True
         )
-    # XXX used?
-    vcs_path = String(
-        description=_('relative path to the project into the repository')
-        )
 
 
 class TestConfig(EntityType):
--- a/views/__init__.py	Fri Nov 14 12:44:03 2014 +0100
+++ b/views/__init__.py	Sun Nov 09 20:07:23 2014 +0100
@@ -18,8 +18,6 @@
     _afs.tag_subject_of((etype, 'refinement_of', '*'), 'main', 'attributes')
 
 
-_affk.tag_attribute(('ProjectEnvironment', 'vcs_path'),
-                    {'widget': wdgs.TextInput})
 _afs.tag_object_of(('*', 'for_environment', 'ProjectEnvironment'), 'main', 'relations')
 
 _affk.tag_attribute(('TestConfig', 'start_mode'), {'sort': False})