Commits

jonas  committed 108907b

Removed support for subversion < 1.0.

  • Participants
  • Parent commits 9ed7a8a
  • Branches trunk

Comments (0)

Files changed (3)

   * Python, version >= 2.1.
       + Please keep in mind, that for RPM-based systems you will also need
         python-devel and python-xml packages.
-  * Subversion, version >= 0.37. (>=1.0.1 recommended)
+  * Subversion, version >= 1.0. (>=1.0.5 recommended)
   * Subversion Python bindings.
-  * PySQLite, version >= 0.4.3 (>= 0.5 for better performance)
+  * PySQLite, version >= 0.5.
   * Clearsilver, version >= 0.9.3
   * A CGI-capable web server (we QA-test on Apache2 )
 

File trac/Changeset.py

                               self.args, self.env)
         e_ptr, e_baton = svn.delta.make_editor(editor, self.pool)
 
-        if svn.util.SVN_VER_MAJOR == 0 and svn.util.SVN_VER_MINOR == 37:
-            svn.repos.svn_repos_dir_delta(old_root, '', '',
-                                      new_root, '', e_ptr, e_baton, None, None,
-                                      0, 1, 0, 1, self.pool)
-        else:
-            def authz_cb(root, path, pool): return 1
-            svn.repos.svn_repos_dir_delta(old_root, '', '',
+        def authz_cb(root, path, pool): return 1
+        svn.repos.svn_repos_dir_delta(old_root, '', '',
                                       new_root, '', e_ptr, e_baton, authz_cb,
                                       0, 1, 0, 1, self.pool)
 

File trac/sync.py

     the repository.
     """
 
-    if util.SVN_VER_MAJOR == 0 and util.SVN_VER_MINOR < 37:
+    if util.SVN_VER_MAJOR < 1:
         raise EnvironmentError, \
-              "Subversion >= 0.37 required: Found %d.%d.%d" % \
+              "Subversion >= 1.0 required: Found %d.%d.%d" % \
               (util.SVN_VER_MAJOR, util.SVN_VER_MINOR, util.SVN_VER_MICRO)
 
     cursor = db.cursor()
     editor = ChangeEditor(rev, old_root, new_root, cursor)
     e_ptr, e_baton = delta.make_editor(editor, pool)
 
-    if util.SVN_VER_MAJOR == 0 and util.SVN_VER_MINOR == 37:
-        repos.svn_repos_dir_delta(old_root, '', '',
-                                  new_root, '', e_ptr, e_baton, None, None,
-                                  0, 1, 0, 1, pool)
-    else:
-        def authz_cb(root, path, pool): return 1
-        repos.svn_repos_dir_delta(old_root, '', '',
-                                  new_root, '', e_ptr, e_baton, authz_cb,
-                                  0, 1, 0, 1, pool)
-
+    def authz_cb(root, path, pool): return 1
+    repos.svn_repos_dir_delta(old_root, '', '',
+                              new_root, '', e_ptr, e_baton, authz_cb,
+                              0, 1, 0, 1, pool)
+