$ trac-admin /project/url resync

Cleared it right up and all is well.  I told you I was just learning.
Maybe this will help someone else.  If not, my apologies for the
well-intentioned spam.

On 8/10/06, Rob Wilkerson <[EMAIL PROTECTED]> wrote:
Hey all -

I'm working in something of a sandbox these days while I work out
processes for my team to start using Subversion and Trac as our new
project management platform and I ran into a problem.  I had been
doing some work in my Subversion repository and an annoying sequence
of events led to me having to dump and recreate my repository.  No
problem.  I thought.  Whether it's the "right" way or not, this is
what I did:

1.  I deleted the repository completely ($ rm -rf /srv/svn/repository)
2.  I rebuilt the repository ($ svnadmin create /srv/svn/repository)
3.  I imported a project

I've done this several times in the past, but never after having done
as much tinkering in the repository that was ultimately deleted.  Now,
when accessing the Browser through Trac, I get:

 Trac detected an internal error:

('No such revision 7', 160006)

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/web/modpython_frontend.py",
line 206, in handler
    dispatch_request(mpr.path_info, mpr, env)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 139,
in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 107,
in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.4/site-packages/trac/versioncontrol/web_ui/browser.py",
line 102, in process_request
    self._render_directory(req, repos, node, rev)
  File "/usr/lib/python2.4/site-packages/trac/versioncontrol/web_ui/browser.py",
line 134, in _render_directory
    changes = get_changes(self.env, repos, [i['rev'] for i in info])
  File "/usr/lib/python2.4/site-packages/trac/versioncontrol/web_ui/util.py",
line 33, in get_changes
    changeset = repos.get_changeset(rev)
  File "/usr/lib/python2.4/site-packages/trac/versioncontrol/cache.py",
line 42, in get_changeset
    self.sync()
  File "/usr/lib/python2.4/site-packages/trac/versioncontrol/cache.py",
line 82, in sync
    changeset = self.repos.get_changeset(current_rev)
  File "/usr/lib/python2.4/site-packages/trac/versioncontrol/svn_fs.py",
line 251, in get_changeset
    self.fs_ptr, self.pool)
  File "/usr/lib/python2.4/site-packages/trac/versioncontrol/svn_fs.py",
line 467, in __init__
    message = self._get_prop(core.SVN_PROP_REVISION_LOG)
  File "/usr/lib/python2.4/site-packages/trac/versioncontrol/svn_fs.py",
line 534, in _get_prop
    return fs.revision_prop(self.fs_ptr, self.rev, name, self.pool())
  File "/usr/lib/python2.4/site-packages/libsvn/fs.py", line 575, in
svn_fs_revision_prop
    return apply(_fs.svn_fs_revision_prop, args)
SubversionException: ('No such revision 7', 160006)

Is there a way to get past this or do I have to dump the entire
project (including trac) and rebuild it?  I had a little bit of wiki
content that I kind of wanted to save, but if it's the only way then I
guess I'll have to deal with that.

Thanks.

--

Rob Wilkerson



--

Rob Wilkerson
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac

Reply via email to