Updating repository with previous revision in SVN
OK, you want to update the current repository with one of your previous revisions. It could be a single file you want to update
Here is what you would do:
Lets assume you have a module/folder svnrepos and it has two files soap.php and xml.php
And lets say you want to update and commit the file soap.php with the previous revision number
1. Go to the folder svnrepos
2. type svn up to make it up-to-date
3. type svn log –limit 10 (or whatever deep you want to go the past revisions
4. From there you would grab the revision number you want to get back to.
Now the trick is merging the current revision and the one you want to get back to: lets say the revision number you want to get back is 7865
5. do svn merge full/path/to/repository/svnrepos/soap.php@HEAD full/path/to/repository/svn/repos/soap.php@7865 soap.php
This would update your local, which was up-to-date, to the one from 7865.
6 svn st would show you soap.php is updated
7. svn commit -m ‘Reverting back to old revision’
ZAT is IT!!
See how you would solve these known algorithm problems
String Ordered Permutation Algorithm ProblemGet maximum occurring character
Find longest palindrom from sequence of characters
Array reversal in Recurrsion
Find the first occurence of number in the sorted array
Find the pairs that makes K Complementary in the given array java solution
Implement Queue Using two Stacks – JavaScript algorithm
Check if two strings are anagrams or not
Check if there are three numbers a, b, c giving a total T from array A
binary tree problems with solution