allura
Revisión | 62e1c0a2de22ed610de05f663380f389bf430d53 (tree) |
---|---|
Tiempo | 2010-07-28 02:36:39 |
Autor | Jenny Steele <jsteele@geek...> |
Commiter | Jenny Steele |
Fixed an issue with empty svn repo
@@ -98,7 +98,10 @@ class SVNRepository(M.Repository): | ||
98 | 98 | return self._log(self.local_url, offset=offset, limit=limit) |
99 | 99 | |
100 | 100 | def count(self, branch=None): |
101 | - latest = self._impl.log(self.local_url, limit=1) | |
101 | + try: | |
102 | + latest = self._impl.log(self.local_url, limit=1) | |
103 | + except pysvn.ClientError: | |
104 | + return 0 | |
102 | 105 | if not latest: return 0 |
103 | 106 | return latest[0].revision.number |
104 | 107 |