Polite note: the convention on this list is to post in plain text and in-line (i.e. not at the top but in chronological order) to make things easier to read. I have moved your (and my) reply to the bottom...
> > -----Original Message----- > > From: [email protected] <javascript:> On > Behalf Of Stuart Cracraft > > Sent: 31 August 2013 00:31 > > To: [email protected] <javascript:> > > Subject: [Trac] trac and svn > > > > So my trac page at > > > > http://trachost:8000/trac > > > > after login with login button to admin account > > doesn't have any browse source tab. > > > > In /home/trac/trac.ini: > > > > repository_dir = path_to_my_mtg > > repository_sync_per_request = > > repository_type = svn > > > > Note: trac-admin /home/trac initenv > > > > failed to ask for any repository information at setup. > > > > Suggestions? Tips? Counsel? > > On Monday, September 2, 2013 1:55:35 AM UTC-7, Cooke, Mark wrote: > > Have you read the trac wiki [1]? As you have turned > off `repository_sync_per_request`, have you done the initial > `resync` and configured your svn hook scripts? Are you sure > `path_to_my_mtg` is valid? Trac needs local file level > access to the repo (and a suitable set of python libraries > for the access). > > In general, repos are no longer configured using the > "documents" you seem to have followed. Trac-admin initenv no > longer prompts for repos and you use the admin panel to > configure them. If you do so, you will be prompted to run > the initial sync and setup your hook scripts. Or you can go > back to the "old ways" and just enable > `repository_sync_per_request` again... > > [1] http://trac.edgewall.org/wiki/TracRepositoryAdmin > > Note it always helps to provide your setup info, I > assume you are on *nix as you use /home/trac but I'm guessing > beyond that. What version of Trac are you trying to use? > > ~ mark c > > -----Original Message----- > From: Stuart Cracraft [mailto:[email protected]] > Sent: 03 September 2013 22:49 > To: [email protected] > Cc: Cooke, Mark > Subject: Re: [Trac] trac and svn > > The repository which is the first repository is defined in > trac.ini which looks like: > > : > [trac] > : > repository_dir = /home/svn/mtg > repository_sync_per_request = > repository_type = svn > > [versioncontrol] > allowed_repository_dir_prefixes = > > Yet, even with that and a restarted tracd, login as admin yields only > the following, confirming the above, and no Browse button. > I have reviewed documentation but not found the "easy-up" into > the "Browse-from-Trac" world that I so seek. Who is my enlightener? > > --Stuart <snip unhelpful html of trac admin repo panel> As I mentioned above, you have disabled the "old" trac integration (by setting `repository_sync_per_request` to an empty value) and you have not told us if you have set up the post-commit hook in subversion as described in the linked help pages. Without either of these trac will not have any info about the repo you are trying to look at... As you are "starting from fresh", I suggest you learn the "new" way and remove the repo settings from the [trac]` section:- > repository_dir = /home/svn/mtg > repository_sync_per_request = > repository_type = svn ...then use the admin panel to add your repo. Next, setup the post-commit hooks as detailed in the help (see the TracRepositoryAdmin link above) and do the `trac-admin <env> repository resync "*"` (as prompted when you added the repo in the admin panel) to perform the initial synchronisation. As an aside, you would normally need specific permissions to see the `Browse Source` button but I am ASSUMING from your description that your current user has the TRAC_ADMIN permission. It would help if you told us more about your setup (what is your OS, what versions of trac and subversion are you using, which python subversion library are you using etc). If you still have no button, go to the Admin > Logging panel and set Type to `File` and Log Level to `DEBUG` and apply your changes. Then restart tracd and try to access the source tab as your admin user. Then review the log file and see if you can spot any obvious errors, such as "unknown" near "svn"... ~ 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/groups/opt_out.
