Edgewall Software

Ticket #2599 (closed defect: duplicate)

Opened 3 years ago

Last modified 2 years ago

can't import a repo with a copied-from-before-then-modified state

Reported by: radix@… Owned by: jonas
Priority: normal Milestone:
Component: general Version: 0.9.2
Severity: normal Keywords:
Cc:

Description

A repository that's had the following done:

  foo/bar/ exists at revN
  svn rm foo; svn commit
  svn cp -r 1 svn://../foo foo
  svn propset svn:ignore 'blargh' foo/bar
  svn commit

can't be imported by trac. A tar file containing a dump of such a repository and the actual command-history leading up to it is at http://twistedmatrix.com/users/exarkun/initenv-bug.tar

The error that it shows is something like:

 Indexing repository
Failed to initialize environment. ("File not found: revision 2, path '/foo/bar'", 160013)
Traceback (most recent call last):
  File "/home/trac/usr/lib/python2.4/site-packages/trac/scripts/admin.py", line 617, in do_initenv
    repos.sync()
  File "/home/trac/usr/lib/python2.4/site-packages/trac/versioncontrol/cache.py", line 83, in sync
    for path,kind,action,base_path,base_rev in changeset.get_changes():
  File "/home/trac/usr/lib/python2.4/site-packages/trac/versioncontrol/svn_fs.py", line 488, in get_changes
    change.base_path, pool())
SubversionException: ("File not found: revision 2, path '/foo/bar'", 160013)

This problem showed itself when trying to import the Twisted repository.

Attachments

Change History

Changed 3 years ago by mrowe

This appears to work correctly with r2763. It's not obvious to me which changeset is responsible for fixing the problem, but if someone can track it down I think it would be a candidate for being included in a future 0.9.x release (should one happen).

Changed 3 years ago by mrowe

alect pointed out that the fix is likely [2623].

Changed 3 years ago by cboos

  • status changed from new to closed
  • resolution set to duplicate

Yes, I confirm the bug is present in 0.9.2 but not in 0.9.3 anymore. Please upgrade.

Also, if you have a very big repository, you might even want the fix for a resync memory leak that is in 0.9.4pre (svn co http://svn.edgewall.com/repos/trac/branches/0.9-stable)

Duplicate of #2440.

Add/Change #2599 (can't import a repo with a copied-from-before-then-modified state)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from jonas. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.