coure2011
coure2011

Reputation: 42444

svn checkout only latest files?

I want to checkout a project on my local directory. The size of that project files is not very large but the files in .svn folder is huge addition to the project size. Is there any way to just download the project files but still I can commit and update code?

Upvotes: 1

Views: 1621

Answers (2)

Larry Shatzer
Larry Shatzer

Reputation: 3627

That is not possible. If you use 1.7 it will only keep one .svn directory at the root of the working copy. It needs the .svn directory to have metadata about each file, and the pristine version of the file to allow you to do diffs revert and other things without network access.

If you don't need all the directories, you can use sparse directories

And as explained by Lazy Badger, you can use svn export, but you will not be able to commit or update from an exported working copy.

Upvotes: 1

Lazy Badger
Lazy Badger

Reputation: 97282

If you checkout repo, you always get .svn dir.

But if you want to get unversioned tree of repository, you can use export

svn export URL PATH

Upvotes: 1

Related Questions