You've specified the option "-s" twice, and you forgot the other
mandatory options, so it is unlikely that this command could have
worked.

Cheers,
Manu

On 1/16/07, ying lcs <[EMAIL PROTECTED]> wrote:

I have tried this:
$ export TRAC_ENV=/srv/svn/tracenv/snapshot
$ ~/src/trac-0.10.3/contrib/trac-post-commit-hook  -s
http://localhost/tracprojects/sample -s sample

But when I go back to view the ticket #2, I don't see any files (my
code changes committed to svn) associated with that  ticket.

I did use this "$ svn commit -m "Fix #2. Switch to use relative path"
" to commit my changes.

Thank you.




On 1/16/07, ying lcs <[EMAIL PROTECTED]> wrote:
> Emmanuel,
>
> I try your suggestions:
>
> $ svn commit -m "Fix #2. Switch to use relative path"
> Sending        sample/changeToOffical.sh
> Sending        sample/changeToStandAlone.sh
> Transmitting file data ....
> Committed revision 8.
>
> But when I go to Trac to view my Ticket, I don't see it assoicates my
> ticket with those changes. Can you please tell me how can I setup this
> hook script? and what is the name of the hook script.
>
> Thank you.
>
>
> On 1/13/07, Emmanuel Blot <[EMAIL PROTECTED]> wrote:
> >
> > > 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
> >
> > > >
> >
>

>



--
Manu

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to