Show More
@@ -83,6 +83,15 b' class HGVerify(MaintenanceTask):' | |||
|
83 | 83 | return res |
|
84 | 84 | |
|
85 | 85 | |
|
86 | class SVNVerify(MaintenanceTask): | |
|
87 | human_name = 'SVN Verify repo' | |
|
88 | ||
|
89 | def run(self): | |
|
90 | instance = self.db_repo.scm_instance() | |
|
91 | res = instance.verify() | |
|
92 | return res | |
|
93 | ||
|
94 | ||
|
86 | 95 | class RepoMaintenance(object): |
|
87 | 96 | """ |
|
88 | 97 | Performs maintenance of repository based on it's type |
@@ -90,7 +99,7 b' class RepoMaintenance(object):' | |||
|
90 | 99 | tasks = { |
|
91 | 100 | 'hg': [HGVerify], |
|
92 | 101 | 'git': [GitGC], |
|
93 | 'svn': [], | |
|
102 | 'svn': [SVNVerify], | |
|
94 | 103 | } |
|
95 | 104 | |
|
96 | 105 | def get_tasks_for_repo(self, db_repo): |
@@ -158,6 +158,12 b' class SubversionRepository(base.BaseRepo' | |||
|
158 | 158 | return commit_id1 |
|
159 | 159 | return commit_id2 |
|
160 | 160 | |
|
161 | def verify(self): | |
|
162 | verify = self._remote.verify() | |
|
163 | ||
|
164 | self._remote.invalidate_vcs_cache() | |
|
165 | return verify | |
|
166 | ||
|
161 | 167 | def compare(self, commit_id1, commit_id2, repo2, merge, pre_load=None): |
|
162 | 168 | # TODO: johbo: Implement better comparison, this is a very naive |
|
163 | 169 | # version which does not allow to compare branches, tags or folders |
General Comments 0
You need to be logged in to leave comments.
Login now