Show More
@@ -146,6 +146,18 b' class SvnRemote(object):' | |||||
146 | return False |
|
146 | return False | |
147 | return True |
|
147 | return True | |
148 |
|
148 | |||
|
149 | @reraise_safe_exceptions | |||
|
150 | def verify(self, wire,): | |||
|
151 | repo_path = wire['path'] | |||
|
152 | if not self.is_path_valid_repository(wire, repo_path): | |||
|
153 | raise Exception( | |||
|
154 | "Path %s is not a valid Subversion repository." % repo_path) | |||
|
155 | ||||
|
156 | load = subprocess.Popen( | |||
|
157 | ['svnadmin', 'info', repo_path], | |||
|
158 | stdout=subprocess.PIPE, stderr=subprocess.PIPE) | |||
|
159 | return ''.join(load.stdout) | |||
|
160 | ||||
149 | def lookup(self, wire, revision): |
|
161 | def lookup(self, wire, revision): | |
150 | if revision not in [-1, None, 'HEAD']: |
|
162 | if revision not in [-1, None, 'HEAD']: | |
151 | raise NotImplementedError |
|
163 | raise NotImplementedError |
General Comments 0
You need to be logged in to leave comments.
Login now