Commits

k0s  committed 9564273

[svn r5079] use transaction instead of revision for pre-commit; closes #4327

  • Participants
  • Parent commits 1aeb83b

Comments (0)

Files changed (2)

File 0.11/repository_hook_system/svnhooksystem.py

 import os
 import subprocess
 
+from dateutil.parser import parse
+
 from genshi.builder import tag
 from repository_hook_system.filesystemhooks import FileSystemHooks
 from repository_hook_system.interface import IRepositoryChangeListener
 
             def svnlook(subcommand, *args):
 
-                process = subprocess.Popen([self._svnlook, subcommand, repo, '-r', transaction] + list(args), stdout=subprocess.PIPE)
+                process = subprocess.Popen([self._svnlook, subcommand, repo, '-t', transaction] + list(args), stdout=subprocess.PIPE)
                 return process.communicate()[0]
 
             # get the attributes
             author = svnlook('author').strip()
-            from dateutil.parser import parse
-#            import pdb;  pdb.set_trace()
             date = parse(svnlook('date').split('(')[0].strip())
 
             

File 0.11/repository_hook_system/ticketchanger.py

                 
                 tn = TicketNotifyEmail(self.env)
                 tn.notify(ticket, newticket=0, modtime=now)
+
             except Exception, e:
                 # import traceback
                 # traceback.print_exc(file=sys.stderr)