For doing builds, packaging files up, etc, it’s needed to have a completely clean version from SVN. There can’t be any non-versioned files which are floating around, e.g test.png might get packaged up if all PNG files are grabbed.
But, getting a totally new checkout is time and bandwidth consuming. So is there a way to take a working directory and get it to be exactly identical to a clean checkout, deleting non-versioned files as well as doing an svn update?
If you want to :
.svndirectoriesThen, the best solution is to use
svn export.Yes, it will export all files from the SVN, which means it’ll take some time and it’ll consume a bit of bandwith ; but that’s probably the best solution to avoid any trouble.
And, as a sidenote : it allows you to create your archive from your development machine, without having to revert your current work.
Else, you’ll have to :
svn revert, to cancel the modifications you made on your working copy and didn’t commit..svndirectories are excluded from your archive.