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" 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 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.12 (GNU/Linux) > Comment: Using GnuPG with Icedove - http://www.enigmail.net/ > > iEYEARECAAYFAlRLtRgACgkQ31DJeiZFuHfwWQCfQeD6gsPUNAKswKpQFMeHCymm > O9MAniJBqDEZ8sBJaHBrAw/4JIeo73xp > =Jx3I > -----END PGP SIGNATURE----- > -- 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.
