[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[Subclipse-users] Can I switch the executed command when i check in files with subversion?

From: ying lcs <yinglcs_at_gmail.com>
Date: 2007-01-14 05:13:33 CET

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.blot@gmail.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@googlegroups.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@googlegroups.com
To unsubscribe from this group, send email to
trac-users-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: users-help@subclipse.tigris.org
Received on Sun Jan 14 05:13:46 2007

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.