Login | Register
My pages Projects Community openCollabNet

Discussions > users > Can I switch the executed command when i check in files with subversion?

subclipse
Discussion topic

Back to topic list

Can I switch the executed command when i check in files with subversion?

Author ying lcs <yinglcs at gmail dot com>
Full name ying lcs <yinglcs at gmail dot com>
Date 2007-01-13 20:13:33 PST
Message Hi,

Can I switch the executed command when i check in files with subversion?
Instead of the svn commit command, can i use the Trac SVN commit hook
script to check in files? The reason is I need to keep track of the
changes of each Trac ticket using that commit hook script?

Thank you.



---------- Forwarded message ----------
From: Emmanuel Blot <manu dot blot at gmail dot com>
Date: Jan 13, 2007 6:42 PM
Subject: [Trac] Re: How can I use Trac to track changes of a ticket
To: trac-users at googlegroups dot com



> Can you please tell me how can I use Trac to track what files and
> version of the files have been changed by a specified ticket in Trac?

You could use the SVN commit hook scripts that come with Trac (see
/contrib directory):
When a user wants to commit his changes to the Subversion repository,
he needs to put a special keyword in his log messages, along with a
ticket number, such as:
"Fixes #40". The remaining part of the log message is just free text.

The hook scripts parse these messages, and find the reference to a
ticket number. The ticket is updated with the log message, and a
reference to the changeset is added to the ticket. This way cross
references (changesets <-> tickets) are tracked within Trac. If you
've set Trac email notification, an email is also sent with the log
message.

You can also customize the hook scripts to extend them so that they
match your need - as long as you know a bit of Python.

HTH,
Manu

--~--~---------~--~-​---~------------~---​----~--~----~
You received this message because you are subscribed to the Google
Groups "Trac Users" group.
To post to this group, send email to trac-users at googlegroups dot com
To unsubscribe from this group, send email to
trac-users-unsubscri​be at googlegroups dot com
For more options, visit this group at
http://groups.google​.com/group/trac-user​s?hl=en
-~----------~----~--​--~----~------~----~​------~--~---

« Previous message in topic | 1 of 4 | Next message in topic »

Messages

Show all messages in topic

Can I switch the executed command when i check in files with subversion? ying lcs <yinglcs at gmail dot com> ying lcs <yinglcs at gmail dot com> 2007-01-13 20:13:33 PST
     Re: [Subclipse-users] Can I switch the executed command when i check in files with subversion? Mark Phippard <markphip at gmail dot com> Mark Phippard <markphip at gmail dot com> 2007-01-14 06:21:38 PST
         Re: [Subclipse-users] Can I switch the executed command when i check in files with subversion? ying lcs <yinglcs at gmail dot com> ying lcs <yinglcs at gmail dot com> 2007-01-14 08:06:45 PST
             Re: [Subclipse-users] Can I switch the executed command when i check in files with subversion? Mark Phippard <markphip at gmail dot com> Mark Phippard <markphip at gmail dot com> 2007-01-14 08:11:25 PST
Messages per page: