Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#3440 closed task (invalid)

Updating the Status of a Trac ticket via a SVN commit

Reported by: cuongbd Owned by: k0s
Priority: normal Component: SvnChangeListenerPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10


One of the really nice things about the SVN/Trac combo is that when you commit changes to SVN, you can have the changeset update the status of a Trac ticket.

I am trying to integrate subversion and trac. I am using the post commit hook script found at to be able to modify tickets and in my post-commit.tmpl in my svn i have

REPOS="$1" REV="$2" LOG=C:\Program Files\Subversion\bin\svnlook log -r $REV $REPOS TRAC_ENV='c:\projects\trac' TRAC_URL='http://localhost:8000/myproject2' C:\Python24\python.exe C:\projects\svn\hooks\ -p "$TRAC_ENV" -r "$REV" -m "$LOG" -s "$TRAC_URL"

I am new to all of this. any help would be appreciated.

Attachments (0)

Change History (4)

comment:1 Changed 8 years ago by cuongbd

  • Component changed from TracHacks to CacheSystemPlugin
  • Owner changed from athomas to coderanger
  • Priority changed from normal to highest
  • Severity changed from normal to critical
  • Type changed from defect to task

comment:2 follow-up: Changed 8 years ago by cuongbd

  • Component changed from CacheSystemPlugin to SvnChangeListenerPlugin
  • Owner changed from coderanger to k0s

comment:3 in reply to: ↑ 2 Changed 8 years ago by k0s

  • Priority changed from highest to normal
  • Severity changed from critical to normal

i'm not sure what the issue is here; does the post-commit script not work for you? in either case, it is NOT an issue for SvnChangeListenerPlugin, which does the identical task but in a different way; i think this ticket is invalid but will await more information

comment:4 Changed 8 years ago by k0s

  • Resolution set to invalid
  • Status changed from new to closed

Add Comment

Modify Ticket

as closed The owner will remain k0s.
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.