OK some more information, I applied the patch and the output is below,
as you can see they are different. What seems to happen is I switch to
rc1, get the message, do a resync. its fine. But then someone checks
something in to the repo and the message pops up again. So its like its
no longer able to automatically add new revisions any more.
Hope this helps,
Greg
2006-12-08 20:28:46,003 Trac[cache] INFO: 'repository_dir' has changed
(from u'svn:86469a65-c8e5-0310-a4d4-b40e7934c2fe:/srv/svnroot/re
positories/apps' to
u'svn:7d53f789-d0bb-0310-afb0-8326cb99db7d:/srv/svnroot/repositories/packages')
2006-12-08 20:28:46,053 Trac[main] ERROR: The 'repository_dir' has
changed, a 'trac-admin resync' operation is needed.
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 387, in
dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 191, in
dispatch
chosen_handler = self._pre_process_request(req, chosen_handler)
File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 263, in
_pre_process_request
chosen_handler = f.pre_process_request(req, chosen_handler)
File "/usr/lib/python2.3/site-packages/trac/versioncontrol/api.py",
line 73, in pre_process_request
self.get_repository(req.authname) # triggers a sync if applicable
File "/usr/lib/python2.3/site-packages/trac/versioncontrol/api.py",
line 101, in get_repository
repos = self._connector.get_repository(rtype, rdir, authname)
File "/usr/lib/python2.3/site-packages/trac/versioncontrol/svn_fs.py",
line 260, in get_repository
crepos = CachedRepository(self.env.get_db_cnx(), repos, None,
self.log)
File "/usr/lib/python2.3/site-packages/trac/versioncontrol/cache.py",
line 34, in __init__
self.sync()
File "/usr/lib/python2.3/site-packages/trac/versioncontrol/cache.py",
line 61, in sync
raise TracError("The 'repository_dir' has changed, "
TracError: The 'repository_dir' has changed, a 'trac-admin resync'
operation is needed.
On Fri, 2006-12-08 at 19:34 +0100, Christian Boos wrote:
> Greg Dickie wrote:
> > On all my projects. trac-admin resync does NOT fix it. reverting
> > to .10.2. Database is postgresql.
> >
>
> I have a possible explanation: it could happen if you're using a
> non-ascii path for your repository.
>
> Try the following fix:
>
> Index: trac/versioncontrol/svn_fs.py
> ===================================================================
> --- trac/versioncontrol/svn_fs.py (revision 4426)
> +++ trac/versioncontrol/svn_fs.py (working copy)
> @@ -293,7 +293,7 @@
> self.fs_ptr = repos.svn_repos_fs(self.repos)
>
> uuid = fs.get_uuid(self.fs_ptr, self.pool())
> - name = 'svn:%s:%s' % (uuid, path)
> + name = 'svn:%s:%s' % (uuid, _from_svn(path))
>
> Repository.__init__(self, name, authz, log)
>
>
>
> If the above is not enough, then apply this patch, which will output in
> the log the actual values for the repository_dir, so that we can maybe
> understand why it thinks they are different:
>
> Index: trac/versioncontrol/cache.py
> ===================================================================
> --- trac/versioncontrol/cache.py (revision 4426)
> +++ trac/versioncontrol/cache.py (working copy)
> @@ -56,6 +56,8 @@
> cursor.execute("SELECT value FROM system WHERE
> name='repository_dir'")
> for previous_repository_dir, in cursor:
> if previous_repository_dir != self.name:
> + self.log.info("'repository_dir' has changed (from %r to
> %r)"
> + % (previous_repository_dir, self.name))
> raise TracError("The 'repository_dir' has changed, "
> "a 'trac-admin resync' operation is
> needed.")
> break
>
>
> -- Christian
>
> >
--
Greg Dickie
just a guy
Maximum Throughput
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---