Modify ↓
Opened 19 years ago
Closed 19 years ago
#4035 closed defect (fixed)
trac-post-commit-hook broken in trunk@HEAD
| Reported by: | Owned by: | Christian Boos | |
|---|---|---|---|
| Priority: | low | Milestone: | 0.11 |
| Component: | version control | Version: | devel |
| Severity: | minor | Keywords: | post-commit hook |
| Cc: | exarkun@… | Branch: | |
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
It passes an integer to Ticket.notify and Ticket.save_changes, but apparently a datetime object is expected now. This blows up.
Attachments (0)
Change History (3)
comment:1 by , 19 years ago
comment:2 by , 19 years ago
| Component: | general → version control |
|---|---|
| Keywords: | post-commit hook added |
| Milestone: | → 0.11 |
| Owner: | changed from to |
| Priority: | normal → low |
| Severity: | normal → minor |
Well, besides the datetime.datetime that we usually avoid by doing from datetime import datetime, I don't see what is ugly in that patch ;)
Note:
See TracTickets
for help on using tickets.



Here's an ugly patch which seems to fix the problem. The code isn't factored for testability so I didn't write any unit tests.
contrib/trac-post-commit-hook
int(time.time())#import traceback#traceback.print_exc(file=sys.stderr)