Solved

svn

Posted on 2011-09-07
3
308 Views
Last Modified: 2012-05-12
Hi Experts,

I checked in some breaking changes in svn, which are now the latest revision.  I did an svn update with a revision number that was a few revisions prior to the latest revision.  Naturally, since that's what I wanted, there are no local modifications.  However, now what I'm trying to do is take the revision that worked previously and make it the next revision (to make it the latest revision).  Basically, I didn't know how to branch with svn and didn't want to lose my changes in the broken revision, but now I'm finding it difficult to take what was a few revisions back and make them the current latest.

Any ideas?

Thanks!
Mike
0
Comment
Question by:thready
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 11

Accepted Solution

by:
jasonduan earned 500 total points
ID: 36497239
If you are using "TortoiseSVN", follow this, otherwise download and install "TortoiseSVN" first.

1. Right click the file, then "Show Log"
2. Highlight the revision that will be the latest.
3. click "Revert to this revision" --- this version will become the latest, and any version after that will be kept as history version.

0
 
LVL 11

Expert Comment

by:jasonduan
ID: 36497244
the following is from TortoiseSVN help documentation:

Revert to this revision
Revert to an earlier revision. If you have made several changes, and then decide that you really want to go back to how things were in revision N, this is the command you need. The changes are undone in your working copy so this operation does not affect the repository until you commit the changes. Note that this will undo all changes made after the selected revision, replacing the file/folder with the earlier version.

If your working copy is in an unmodified state, after you perform this action your working copy will show as modified. If you already have local changes, this command will merge the undo changes into your working copy.

What is happening internally is that Subversion performs a reverse merge of all the changes made after the selected revision, undoing the effect of those previous commits.

If after performing this action you decide that you want to undo the undo and get your working copy back to its previous unmodified state, you should use TortoiseSVN ¿ Revert from within Windows Explorer, which will discard the local modifications made by this reverse merge action.

If you simply want to see what a file or folder looked like at an earlier revision, use Update to revision or Save revision as... instead.

0
 
LVL 1

Author Closing Comment

by:thready
ID: 36497454
thank you!
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
Starting up a Project

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question