Anonymous avatar Anonymous committed 9564273

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

Comments (0)

Files changed (2)

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())
 
             

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)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.