bruce/puppet-vcsrepo — pull request #8 by RonnyMaas (2014-09-04 18:09:00+00:00)
Title: Fix info error if force, Fix working-copy check for reposever, Fix latest and nondestructive force 

For 1.1:
Fixed/changed several things for svn provider.
1. arg push of --force lead to error for svn info commands because they don't have this option.
Fix: only args push --force for svn command that support it.
2. check if svn repo exists on reposerver failed. It tested if directory "format" would exist instead of file
"format". This caused errors when it tried to recreate repos that already existed.
Fix: changed test to look for the existence of the file "format".
3. latest didn't work for svn provider if latest revision had more digits then the current revision.
(for example: 9 => 10 or 99 => 150)
Fix: changed <= to == for check if current revision is latest.
4. The svn force option recursively deleted a whole working-copy and would afterwards check it out again.
It didn't like this because files could be deleted when they are still in use, so I changed the way the svn
provider would make sure working-copy is identical to svn repo.
- Reverts local edits now en deletes files/directories that are not in the repo.
This way only the differences between local copy and the repo are corrected.
This might might also benefit large repos because only diffrences will be undone instead of deleting
and recreating a whole repo.