Solved

svn

Posted on 2011-09-07
3
302 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 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

This article will show, step by step, how to integrate R code into a R Sweave document
This is an explanation of a simple data model to help parse a JSON feed
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now