Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am using visual studio with subversion svn. I was waorking on a project and some changes I commited last week.

Today I made some chages again , after some time I decided to go back to my commited state and it's fine, I reverted and got to the commited items.

But now I want to go to the stage before reverting the soulution. How can I get all the changes I made after commiting and before reverting .


Please help me guys , i lost a lot of things in reverting, How to go to the changes i made on files.


Thanks in Advance.
Posted
Updated 19-May-11 21:10pm
v2

1 solution

There is no way. You didn't commit your changes, and SV(and anything else) doesn't track uncommitted code.
When you check out and make some changes, all those changes are local to your machine.
When you revert, your local copy is being overwritten by server's copy.
So, you can see, server doesn't know anything about your changes.
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 20-May-11 3:09am    
Prerak, I'm not sure you understood OP. How do you know the code before revert was not committed? In principle, you're right. The rules are simple: you only really own the code which was properly committed. Consider all uncommitted code as just garbage which you can remove at any time. So, the current (hopefully valid) code should be committed before any further changes, including revert operation.
--SA
Prerak Patel 20-May-11 3:14am    
OP said REVERTED. It means, he didn't commit the code.
Today I made some chages again , after some time I decided to go back to my commited state and it's fine, I reverted and got to the commited items.
Sergey Alexandrovich Kryukov 20-May-11 23:29pm    
From this phrase, it's not so clear if OP did commit in between and just did not mention or did not. Perhaps you're right. OK, 5 for your advice.

I would only repeat my advice: commit every step.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900