Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I have Subversion keep only the latest version of a file?

I have a large file in my repository that is not text-mergeable and that I do not need multiple-version control for (PPT for example). I would like to keep it on the repository for backup purposes and to share with multiple people, but I do not want the repository size to grow huge because it's keeping a duplicate copy of the file every time it changes. Is there a way to specify this behavior for a file in a Subversion repository?

Thanks!

like image 483
bsofman Avatar asked Jan 31 '09 19:01

bsofman


People also ask

Will SVN update overwrite my changes?

When you update, the contents of your working copy are updated with all of the changes that have been committed to the repository since you last updated. Subversion is pretty smart about updating and never just overwrites files that have local changes with copies from the repository.

How Do I Get latest in SVN?

Simply type svn update [name-of-directory] , or cd to that directory and type svn update there.

How does SVN version control work?

The files on your computer are called working files. These are the files in which each user makes edits. Then, users commit their changes to the SVN server. Each time a user commits a change, SVN manages and records it by creating a new version.


2 Answers

This is not possible in Subversion. However: subversion keeps the changes to this file as binary diffs in the repository, so depending on the type of changes you make it won't consume a lot of extra space.

like image 135
Simon Groenewolt Avatar answered Oct 26 '22 02:10

Simon Groenewolt


You can't. Subversion is designed to keep the different versions of files. It's a version control system, after all.

Maybe just don't put it in subversion, but back it up or share it using rsync instead.

like image 2
Frank Avatar answered Oct 26 '22 00:10

Frank