torestreaming.blogg.se

Versions vs smartsvn
Versions vs smartsvn












Good to know if I need to undelete the file. Therefore, it still existed in revision 12344. I deleted file `foo.txt in revision 12345. The easiest way to find files that have been deleted is to look at svn log: $ svn log -rHEAD -v r12345 | dweintraub | This will copy revision 12344 of file foo.txt at the 12,344th revision of the repository to the current revision of the repository. If you need to undelete the file, you can always copy the revision of the file you want from the pegged revision of the repository layout: $ svn cp -r12344 -m"undeleting foo.txt" \ To do that, you put a at the end of the repository URL: $ svn ls we can see the file because it's in the 12,344th revision of that repository layout. What you want to see is the file in the 12,344th revision of the REPOSITORY. This is called revision pegging, and can be one of the more difficult concepts in Subversion. What you need to do is understand the difference between the file revision and the repository revision. What you requested is revision 12344 of the file in the current revision of the repository layout. Therefore, it has been permanently deleted. The file should still be there in THAT revision: $ svn ls -r12344 No such file You knew that the file isn't in revision 12345 because you removed it. File foo.txt is no longer in the most current revision of Subversion. What's probably is convincing you that the file has been permanently removed is that you're doing something like this: $ svn co

versions vs smartsvn versions vs smartsvn versions vs smartsvn

You do a svn delete or svn rm, and the file is no longer in the working copy. In fact, this is a well requested feature. Subversion never completely deletes a file from the repository.














Versions vs smartsvn