> -----Original Message----- > From: Jeff Skyrunner [mailto:[email protected]] > Sent: 23 October 2014 13:19 > > Hi there. > > Here are more informations: > > DISTRIB_ID=Ubuntu > DISTRIB_RELEASE=14.04 > DISTRIB_CODENAME=trusty > DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS" > > Python 2.7.6 > > svn, version 1.8.8 (r1568071) > > Regarding the trac.ini (thanks for the hint, Mark, I've read that pages many > times, but still haven't found any clue of my mistake), those are the > relevant settings, in my opinion: > > repository_dir = > repository_sync_per_request = > repository_type = svn > > [components] > tracopt.versioncontrol.svn.* = enabled > > (I've tried also to set re repository_sync_per_request=false) > > As said, I've set the svn repository like in this link: > http://trac.edgewall.org/wiki/Ubuntu-11.04-Subversion and I've set the post- > commit and post-revprop-change hooks > > If I try the > > trac-admin /var/lib/trac/YourProject repository resync "*" > > command, it says (translating from italian's version): > > Resyncing repository history for (default)... > 0 revisions cached. > Done.
Ahh... > Checking the log file, I've seen this: > > 2014-10-23 13:56:21,363 Trac[svn_fs] DEBUG: Subversion bindings imported > 2014-10-23 13:56:21,379 Trac[cache] INFO: Cleaning cache > 2014-10-23 13:56:21,421 Trac[cache] INFO: Resetting "repository_dir": > svn:29b30372-f039-4182-be65-c0aa4fea183c:/var/lib/svn/YourProject > 2014-10-23 13:56:21,438 Trac[cache] DEBUG: cache metadata undefined > (youngest_rev=0) > 2014-10-23 13:56:21,439 Trac[cache] INFO: repos rev [0] != cached rev [None] That looks fine to me > This is what I see in the /var/lib/svn/YourProject > > drwxr-xr-x 2 jeff root 4096 ott 16 13:12 conf > drwxr-sr-x 6 jeff root 4096 ott 16 13:12 db > -r--r--r-- 1 jeff root 2 ott 16 13:12 format > drwxr-xr-x 2 jeff root 4096 ott 16 13:22 hooks > drwxr-xr-x 2 jeff root 4096 ott 16 13:12 locks > -rw-r--r-- 1 jeff root 246 ott 16 13:12 README.txt > > If I try: > > svnlook history /var/lib/svn/YourProject > > I receive: > > REVISION PATH > --------- -------- > 0 / Ahh... (again) > Any idea? Maybe something wrong in svn? > > I know the solution will be a tiny thing I've forgotten somewhere... >.< I suspect that this might be an edge case that could be handled better: there is nothing in the repository to report on! Can you please commit something (anything) to the repository and try again (you can always recreate a new empty repo afterwards)? I suspect that will work (assuming your post-commit works). If it does, then we can look at how an "empty repo" is handled... I almost always create the "trunk, tags, branches" triumvirate before syncing the repo, so have not tried this before. For reference, your original error is: > 6. I've clicked the "Browse source button" and... ""No changeset 0 in the > repository" ~ Mark C P.S. this list prefers posting in-line or at the bottom (and in plain text), if possible. > Thanks in advance > > J. > > > Il giorno giovedì 23 ottobre 2014 10:57:49 UTC+2, Cooke, Mark ha scritto: > > > -----Original Message----- > > From: Jeff Skyrunner [mailto:[email protected] <javascript:> ] > > Sent: 23 October 2014 08:33 > > > > Thanks Mark and Mike for your help. > > > > > It would be useful to see all relevant lines in your trac.ini, > there > > > should be others. > > > > Have you any suggestion of any lines in particular or do you prefer > all > > of it? > > Any lines that seem relevant to repository operation. The docs [1, > depending on your version] list the contents (with descriptions) to help you > decide. I mentioned one specifically in the bits you cut out (anything with > `repository` is a good start). [2] also gives good information, have you > read that? > > [1] http://trac.edgewall.org/wiki/0.12/TracIni > <http://trac.edgewall.org/wiki/0.12/TracIni> > [2] http://trac.edgewall.org/wiki/0.12/TracRepositoryAdmin > <http://trac.edgewall.org/wiki/0.12/TracRepositoryAdmin> > > > > > Yes, we almost certainly can. However you can help us to help you > by > > > providing more of the essential detail, such as the version of > Trac > > > you have tried to install (very important) your platform (probably > > > Ubuntu, but which version?) and, where appropriate, all of the > relevant > > > lines from your trac.ini. > > > > At the moment I'm at office and do not have such informations, but I > will > > provide it ASAP > > > > > The short answer (as already mentioned by Mike) is that you > (probably) > > > need to synchronise Trac with your repository and keep it in sync. > > > > Yep, I forgot to mention that in my first mail; I've syncronized it > via trac- > > admin and there were no scary messages... In 4 hours I will be back > at home > > for lunch and provide the exact message I receive. > > > > > All of the above is based on assumptions about your trac version > and > > assumes that you have the subversion SWIG bindings installed and > working. > > > > How can I check this? > > The troubleshooting section [3] is a good place to start. > > [3] http://trac.edgewall.org/wiki/TracSubversion#Troubleshooting > <http://trac.edgewall.org/wiki/TracSubversion#Troubleshooting> > > ~ Mark C > > -- 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.
