#2485: trac-admin resync crash
-----------------------------+----------------------------------------------
 Reporter:  anonymous        |        Owner:  cboos   
     Type:  defect           |       Status:  assigned
 Priority:  normal           |    Milestone:  0.9.4   
Component:  version control  |      Version:  0.9.3   
 Severity:  major            |   Resolution:          
 Keywords:                   |  
-----------------------------+----------------------------------------------
Comment (by cboos):

 Apply the following patch:
 {{{
 Index: svn_fs.py
 ===================================================================
 --- svn_fs.py   (revision 2746)
 +++ svn_fs.py   (working copy)
 @@ -483,13 +483,11 @@
              else:
                  action = Changeset.EDIT
                  b_path, b_rev = change.base_path, change.base_rev
 -                if revroots.has_key(b_rev):
 -                    b_root = revroots[b_rev]
 -                else:
 -                    b_root = fs.revision_root(self.fs_ptr, b_rev, pool())
 -                    revroots[b_rev] = b_root
 -                change.base_path = fs.node_created_path(b_root, b_path,
 pool())
 -                change.base_rev = fs.node_created_rev(b_root, b_path,
 pool())
 +                try:
 +                    change.base_path = fs.node_created_path(root, b_path,
 pool())
 +                    change.base_rev = fs.node_created_rev(root, b_path,
 pool())
 +                except (SystemError, core.SubversionException):
 +                    pass
              kind = _kindmap[change.item_kind]
              path = path[len(self.scope) - 1:]
              base_path = _scoped_path(self.scope, change.base_path)
 }}}

 That's a quick workaround, however, not the correct fix.
 With that patch, you'll loose some interesting information,
 but the resync will succeed, at least.

-- 
Ticket URL: <http://projects.edgewall.com/trac/ticket/2485>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets

Reply via email to