[Trac-tickets] [The Trac Project] #2572: Bug with partial repositories in r2746

The Trac Project noreply at edgewall.com
Mon Jan 9 07:50:32 CST 2006


#2572: Bug with partial repositories in r2746
-----------------------------+----------------------------------------------
 Reporter:  Manuzhai         |       Owner:  cmlenz
     Type:  defect           |      Status:  new   
 Priority:  normal           |   Milestone:        
Component:  version control  |     Version:  devel 
 Severity:  normal           |    Keywords:        
-----------------------------+----------------------------------------------
 With r2746, I get the following error when viewing a particular revision.
 The environment is confined to a part of the repository, this works fine
 when browing source and viewing the timeline, but when viewing this
 particular changeset (which is confirmed to only change files within the
 configured partial repository), I get this exception:

 {{{
 Traceback (most recent call last):
   File "/home/manuzhai/dev/trac/trac/web/modpython_frontend.py", line 206,
 in handler
     dispatch_request(mpr.path_info, mpr, env)
   File "/home/manuzhai/dev/trac/trac/web/main.py", line 139, in
 dispatch_request
     dispatcher.dispatch(req)
   File "/home/manuzhai/dev/trac/trac/web/main.py", line 107, in dispatch
     resp = chosen_handler.process_request(req)
   File "/home/manuzhai/dev/trac/trac/versioncontrol/web_ui/changeset.py",
 line 91, in process_request
     self._render_html(req, repos, chgset, diff_options)
   File "/home/manuzhai/dev/trac/trac/versioncontrol/web_ui/changeset.py",
 line 155, in _render_html
     oldest_rev = repos.oldest_rev
   File "/home/manuzhai/dev/trac/trac/versioncontrol/api.py", line 125, in
 <lambda>
     oldest_rev = property(lambda x: x.get_oldest_rev())
   File "/home/manuzhai/dev/trac/trac/versioncontrol/cache.py", line 107,
 in get_oldest_rev
     return self.repos.oldest_rev
   File "/home/manuzhai/dev/trac/trac/versioncontrol/api.py", line 125, in
 <lambda>
     oldest_rev = property(lambda x: x.get_oldest_rev())
   File "/home/manuzhai/dev/trac/trac/versioncontrol/svn_fs.py", line 301,
 in get_oldest_rev
     self.oldest = self.next_rev(0)
   File "/home/manuzhai/dev/trac/trac/versioncontrol/svn_fs.py", line 328,
 in next_rev
     for path, next in self._history('', rev+1, next, limit=1):
   File "/home/manuzhai/dev/trac/trac/versioncontrol/svn_fs.py", line 58,
 in _get_history
     start, end, 1, pool())
   File "/usr/lib/python2.4/site-packages/libsvn/repos.py", line 291, in
 svn_repos_history2
     return apply(_repos.svn_repos_history2, args)
 SubversionException: ("File not found: revision 1, path 'hebe/'", 160013)
 }}}

 It seems that line 58 from svn_fs.py explicitly refers to r1, while it
 should probably refer to some other revision number that is the first
 revision of the partial repository.

-- 
Ticket URL: <http://projects.edgewall.com/trac/ticket/2572>
The Trac Project <http://trac.edgewall.com/>


More information about the Trac-Tickets mailing list