Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

svn

Posted on 2011-09-07
3
Medium Priority
?
310 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
  • 2
3 Comments
 
LVL 11

Accepted Solution

by:
jasonduan earned 2000 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
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.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

876 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