Mailing List Archive

Patch for post-commit hook
The attached patch just updates the database version check in the
script, everything else works just the same.
--
Tristan Seligmann
Developer / Network Administrator
-------------- next part --------------
Index: contrib/trac-post-commit-hook
===================================================================
--- contrib/trac-post-commit-hook (revision 726)
+++ contrib/trac-post-commit-hook (working copy)
@@ -154,9 +154,9 @@
"""Make sure the database uses a known schema version"""
cursor = self.con.cursor()
cursor.execute('SELECT value FROM system WHERE '
- 'name=%s AND value=%s', 'database_version', '3')
+ 'name=%s AND value=%s', 'database_version', '6')
if not cursor.fetchone():
- raise Exception('Expected Trac database version 3')
+ raise Exception('Expected Trac database version 6')

if __name__ == "__main__":
if len(sys.argv) < 5: