> -----Original Message----- > From: [email protected] [mailto:[email protected]] On > Behalf Of Jeff Skyrunner > > Il giorno sabato 25 ottobre 2014 16:35:30 UTC+2, hasienda ha scritto: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 25.10.2014 11:41, Jeff Skyrunner wrote: > > So, pretending to ignore my dumbness, could you please help me with > > another issue? I've commited a file in the repo, but had to manually > > resync the repository to see that file in the source code... > shouldn't > > that be provided automatically by the hooks? Or am I missing (again) > > something very obvious? > > You may find the part on repo sync in "TracRepositoryAdmin" [1] wiki > page (self-documentation as in you own Trac environments) > enlightening. > In short, since Trac v0.12 you'll have to install a repository- > specific > hook script (examples available) or opt for per-request sync. And make > sure that the related option 'repository_sync_per_request' is set > accordingly in you trac.ini file. > > > Thanks for your help, Steffen, but as I've wrote in the first message, I've > already set this :) > In particular, I'm following this link: http://trac.edgewall.org/wiki/Ubuntu- > 11.04-Subversion > > I've set repository_sync_per_request in a blank value and created these two > scripts: > > /var/lib/svn/YourProject/hooks/post-commit > > #!/bin/sh > export PYTHON_EGG_CACHE="/home/jeff/.python-eggs" > /usr/bin/trac-admin /var/lib/trac/YourProject changeset added "$1" "$2"
Since you are on *nix, this could be a permissions thing. How are you serving Trac? If using apache httpd then this almost certainly runs as a different user and may well not have access to "/home/jeff" and/or the svn and trac folders... Mind you, I use Windoze, so YMMV... ~ Mark C > and > > /var/lib/svn/YourProject/hooks/post-revprop-change > > #!/bin/sh > export PYTHON_EGG_CACHE="/home/jeff/.python-eggs" > /usr/bin/trac-admin /var/lib/trac/YourProject changeset modified "$1" "$2" > > Then I've marked them as executable: > > sudo chmod +x /var/lib/svn/YourProject/hooks/post-commit > sudo chmod +x /var/lib/svn/YourProject/hooks/post-revprop-change > > > What am I doing wrong? > > Thanks in advance > > J. > > Steffen Hoffmann > > > [1] http://trac.edgewall.org/wiki/TracRepositoryAdmin#Synchronization > <http://trac.edgewall.org/wiki/TracRepositoryAdmin#Synchronization> -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.
