Edgewall Software
Modify

Opened 13 years ago

Closed 13 years ago

Last modified 11 years ago

#4937 closed defect (fixed)

Empty repositories broken on trunk

Reported by: Eli Carter Owned by: Christian Boos
Priority: highest Milestone: 0.10.4
Component: version control Version: devel
Severity: major Keywords: resync
Cc: Branch:
Release Notes:
API Changes:

Description

[4965] breaks completely empty repositories.

$ svnlook youngest testdata/svn 
0
$ ./trac-develop-bin/trac-admin testdata/trac resync
Resyncing repository history... 
(this will take a time proportional to the number of your changesets)
Command failed: ('No such revision 1', 160006)

Also, every page I visit has:

SubversionException: ('No such revision 1', 160006)

From the logs:

2007-03-12 17:14:39,177 Trac[main] DEBUG: Dispatching <Request "GET /login">
2007-03-12 17:14:39,181 Trac[cache] INFO: Upgraded cache metadata (youngest_rev=)
2007-03-12 17:14:39,181 Trac[cache] INFO: Check for sync [None] vs. cached [0]
2007-03-12 17:14:39,182 Trac[cache] INFO: Trying to sync revision [1]
2007-03-12 17:14:39,182 Trac[main] ERROR: ('No such revision 1', 160006)
Traceback (most recent call last):
  File "/home/eli/workflow/trac-develop/trac/web/main.py", line 429, in dispatch_request
    dispatcher.dispatch(req)
  File "/home/eli/workflow/trac-develop/trac/web/main.py", line 192, in dispatch
    chosen_handler = self._pre_process_request(req, chosen_handler)
  File "/home/eli/workflow/trac-develop/trac/web/main.py", line 300, in _pre_process_request
    chosen_handler = filter_.pre_process_request(req, chosen_handler)
  File "/home/eli/workflow/trac-develop/trac/versioncontrol/api.py", line 74, in pre_process_request
    self.get_repository(req.authname) # triggers a sync if applicable
  File "/home/eli/workflow/trac-develop/trac/versioncontrol/api.py", line 104, in get_repository
    repos = self._connector.get_repository(rtype, rdir, authname)
  File "/home/eli/workflow/trac-develop/trac/versioncontrol/svn_fs.py", line 279, in get_repository
    crepos = CachedRepository(self.env.get_db_cnx(), repos, None, self.log)
  File "/home/eli/workflow/trac-develop/trac/versioncontrol/cache.py", line 42, in __init__
    self.sync()
  File "/home/eli/workflow/trac-develop/trac/versioncontrol/cache.py", line 150, in sync
    cset = self.repos.get_changeset(next_youngest)
  File "/home/eli/workflow/trac-develop/trac/versioncontrol/svn_fs.py", line 460, in get_changeset
    self.fs_ptr, self.pool)
  File "/home/eli/workflow/trac-develop/trac/versioncontrol/svn_fs.py", line 801, in __init__
    message = self._get_prop(core.SVN_PROP_REVISION_LOG)
  File "/home/eli/workflow/trac-develop/trac/versioncontrol/svn_fs.py", line 908, 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 570, in svn_fs_revision_prop
    return apply(_fs.svn_fs_revision_prop, args)
SubversionException: ('No such revision 1', 160006)

Attachments (0)

Change History (3)

comment:1 by Christian Boos, 13 years ago

Component: generalversion control
Milestone: 0.10.4
Owner: changed from Jonas Borgström to Christian Boos
Priority: normalhighest
Severity: normalmajor

comment:2 by Christian Boos, 13 years ago

Keywords: resync added
Resolution: fixed
Status: newclosed

Fixed by r4995 (trunk) and r4996 (0.10-stable), thanks for the report!

comment:3 by anonymous, 11 years ago

have the same problem

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to as closed The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.