2007/12/27, Ryan Schmidt <subversion-2007b@ryandesign.com>:
> On Dec 26, 2007, at 13:22, Henrik Sundberg wrote:
>
> > I have a repository in which lots of documents were imported with
> > wrong mime-types.
> > Is it possible to correct this afterwards, for all revisions? How?
> >
> > It doesn't seem correct to do it for the oldest revision of the file,
> > since subversion doesn't trace (at the original place that is) when
> > files are copied.
> > It doesn't seem correct to do it for the newest revision of the file,
> > since the log only keeps the changes of the file done in my branch (or
> > in ancestors, not those done in a parallell branch).
> > And I don't think the parameters for svn propset can help me out.
> >
> > Is a tool like the one Ryan recommended for another problem needed?:
> > http://svn.borg.ch/svndumptool/
>
> If you want to affect all revisions throughout history, then
> svndumptool's "Transform-prop" feature seems to be exactly what you
> want. You would dump the repository, transform the svn:mime-type
> property of all files, and load the modified dumpfile into a new
> repository. During this time you would need to take the repository
> offline to ensure nobody else makes any changes to it. I expect this
> would also invalidate all existing working copies and you would need
> to check out new working copies.
>
> Another option would be to just set the correct svn:mime-type in the
> HEAD revision. No fiddling with dumpfiles is necessary for that, the
> repository stays online as usual, and your existing working copies
> continue to function normally (no need to check out new ones). For
> batch changes to properties, svn_apply_autoprops.py can help. See the
> original:
>
> http://svn.collab.net/viewvc/svn/tags/1.4.6/contrib/client-side/
> svn_apply_autoprops.py?view=markup
>
> Or an allegedly better version:
>
> http://matt-good.net/2005/12/23/new-and-improved-svn-apply-autoprops-
> py-now-with-more-svk/
Thanks!
/$
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Dec 27 11:09:22 2007