##// END OF EJS Templates
maintenance: added svn verify command to tasks to be able to verify...
marcink -
r1765:ed2f2338 default
parent child Browse files
Show More
@@ -83,6 +83,15 b' class HGVerify(MaintenanceTask):'
83 return res
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 class RepoMaintenance(object):
95 class RepoMaintenance(object):
87 """
96 """
88 Performs maintenance of repository based on it's type
97 Performs maintenance of repository based on it's type
@@ -90,7 +99,7 b' class RepoMaintenance(object):'
90 tasks = {
99 tasks = {
91 'hg': [HGVerify],
100 'hg': [HGVerify],
92 'git': [GitGC],
101 'git': [GitGC],
93 'svn': [],
102 'svn': [SVNVerify],
94 }
103 }
95
104
96 def get_tasks_for_repo(self, db_repo):
105 def get_tasks_for_repo(self, db_repo):
@@ -158,6 +158,12 b' class SubversionRepository(base.BaseRepo'
158 return commit_id1
158 return commit_id1
159 return commit_id2
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 def compare(self, commit_id1, commit_id2, repo2, merge, pre_load=None):
167 def compare(self, commit_id1, commit_id2, repo2, merge, pre_load=None):
162 # TODO: johbo: Implement better comparison, this is a very naive
168 # TODO: johbo: Implement better comparison, this is a very naive
163 # version which does not allow to compare branches, tags or folders
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