repo-scripts/mailer.py

malekith cvs at pld-linux.org
Sat Jun 11 13:05:11 CEST 2005


Author: malekith
Date: Sat Jun 11 13:05:10 2005
New Revision: 6066

Modified:
   repo-scripts/mailer.py
Log:
Use svn.core not svn.util.

Modified: repo-scripts/mailer.py
==============================================================================
--- repo-scripts/mailer.py	(original)
+++ repo-scripts/mailer.py	Sat Jun 11 13:05:10 2005
@@ -24,7 +24,7 @@
 import re
 
 import svn.fs
-#import svn.util
+import svn.core
 import svn.delta
 import svn.repos
 
@@ -132,7 +132,7 @@
     ### so if the body doesn't change, then it can be sent N times
     ### rather than rebuilding it each time.
 
-    subpool = svn.util.svn_pool_create(pool)
+    subpool = svn.core.svn_pool_create(pool)
 
     for (group, param_tuple), params in groups.items():
       self.start(group, params)
@@ -142,9 +142,9 @@
                        group, params, subpool)
 
       self.finish()
-      svn.util.svn_pool_clear(subpool)
+      svn.core.svn_pool_clear(subpool)
 
-    svn.util.svn_pool_destroy(subpool)
+    svn.core.svn_pool_destroy(subpool)
 
   def start(self, group, params):
     self.to_addr = self.cfg.get('to_addr', group, params)
@@ -323,9 +323,9 @@
 
 def generate_content(output, cfg, repos, changelist, group, params, pool):
 
-  svndate = repos.get_rev_prop(svn.util.SVN_PROP_REVISION_DATE)
+  svndate = repos.get_rev_prop(svn.core.SVN_PROP_REVISION_DATE)
   ### pick a different date format?
-  date = time.ctime(svn.util.secs_from_timestr(svndate, pool))
+  date = time.ctime(svn.core.secs_from_timestr(svndate, pool))
 
   output.write('Author: %s\nDate: %s\nNew Revision: %s\n\n'
                % (repos.author, date, repos.rev))
@@ -335,7 +335,7 @@
   generate_list(output, 'Removed', changelist, _select_deletes)
   generate_list(output, 'Modified', changelist, _select_modifies)
 
-  log = repos.get_rev_prop(svn.util.SVN_PROP_REVISION_LOG) or ''
+  log = repos.get_rev_prop(svn.core.SVN_PROP_REVISION_LOG) or ''
   try:
       log = unicode(log, 'utf8').encode('iso-8859-2')
   except UnicodeError:
@@ -484,7 +484,7 @@
 
     self.root_this = self.get_root(rev)
 
-    self.author = self.get_rev_prop(svn.util.SVN_PROP_REVISION_AUTHOR)
+    self.author = self.get_rev_prop(svn.core.SVN_PROP_REVISION_AUTHOR)
 
   def get_rev_prop(self, propname):
     return svn.fs.revision_prop(self.fs_ptr, self.rev, propname, self.pool)
@@ -820,7 +820,7 @@
     raise MissingConfig(config_fname)
 
   ### run some validation on these params
-  svn.util.run_app(main, config_fname, repos_dir, revision)
+  svn.core.run_app(main, config_fname, repos_dir, revision)
 
 
 # ------------------------------------------------------------------------



More information about the pld-cvs-commit mailing list