Opened 16 years ago
Closed 14 years ago
#8301 closed defect (duplicate)
trac-admin resync stops on copy
Reported by: | Owned by: | Christian Boos | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | version control | Version: | 0.11.1 |
Severity: | normal | Keywords: | svn scoped repository |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
After a 'svn move' I've changed the path in my trac.ini and I did a 'trac-admin resync'. But the resync command synchronzied only 1 revision:
Resyncing repository history… 1 revisions cached. Done.
In fact I have about 500 revisions. For me it looks like the resync command stops on copy. Doing a 'svn log' on my moved project, I get all my 500 revisions.
Attachments (0)
Change History (8)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
Yes, that's exactly what I did. We have done a reorganisation of our svn structure. Is there any workaround? Ohterwise we loose our whole history which is not the case on the command line.
comment:3 by , 16 years ago
The only workaround I can see is not to scope the repository:
[trac] repository_dir = /path/to/repos
But that's going to change the paths to your files (within Trac), so it may introduce other issues.
follow-up: 5 comment:4 by , 16 years ago
Milestone: | → 0.11.6 |
---|---|
Owner: | set to |
Yes, there's no easy workaround, but I have an idea how to fix this.
It won't be a small change: instead of an unique scope, we would need a list of (rev,scope), rev
being the revision in which the scope
was introduced. We would get that list when initializing the SubversionRepository and each usage of the scope would require to call a for finding the appropriate value of the scope given the rev
we're aiming at.
No promise when/if it can be done, but I'd like to give it a try.
comment:5 by , 15 years ago
Milestone: | 0.12.1 → 0.12 |
---|
comment:7 by , 15 years ago
Milestone: | 0.12 → next-minor-0.12.x |
---|
Definitely not. It would require a good deal of rewrite of the internals of svn_fs.py, but I think without any API change.
comment:8 by , 14 years ago
Keywords: | svn scoped repository added |
---|---|
Milestone: | next-minor-0.12.x |
Resolution: | → duplicate |
Status: | new → closed |
See #3470.
Your description is a bit terse, so please correct me if I got it wrong.
You had something like that in your trac.ini:
Then you did
svn move myproject anothername
and changed therepository_dir
accordingly (/path/to/repos/anothername
). At that point, the resync didn't work…That doesn't surprise me, the "scoped repository" model doesn't really support this scenario.