• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

allura


Commit MetaInfo

Revisión62e1c0a2de22ed610de05f663380f389bf430d53 (tree)
Tiempo2010-07-28 02:36:39
AutorJenny Steele <jsteele@geek...>
CommiterJenny Steele

Log Message

Fixed an issue with empty svn repo

Cambiar Resumen

Diferencia incremental

--- a/ForgeSVN/forgesvn/model/svn.py
+++ b/ForgeSVN/forgesvn/model/svn.py
@@ -98,7 +98,10 @@ class SVNRepository(M.Repository):
9898 return self._log(self.local_url, offset=offset, limit=limit)
9999
100100 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
102105 if not latest: return 0
103106 return latest[0].revision.number
104107