Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

svn

Posted on 2011-09-07
3
Medium Priority
?
309 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 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

Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

Question has a verified solution.

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

In this post we will learn different types of Android Layout and some basics of an Android App.
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Starting up a Project

721 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