Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delete subversion history

Tags:

svn

I have a few subversion repos containing bin files (images, dumps of traffic traces, etc.). The problem is that several commits on those file resulted in a quite big repository. Since we are keeping the repo only for historical purposes, would it be possible to reset the history of the repo? I'm basically loloking for a simple alternative to export the content and re-create the repo.

like image 546
Roberto Avatar asked Dec 19 '12 12:12

Roberto


1 Answers

According to the Rob - Delete parts of subversion history, for example you want to remove everything below version 9000(your repository is at version 10000 now), so you can try this

 svnadmin dump /path/to/current/repo -r9000:10000 > svn.dump
 svnadmin create /path/to/new/repo
 svnadmin load /path/to/new/repo < svn.dump
like image 109
Vahid Farahmandian Avatar answered Sep 28 '22 18:09

Vahid Farahmandian