Link to home
Start Free TrialLog in
Avatar of thready
thready

asked on

svn

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
ASKER CERTIFIED SOLUTION
Avatar of jasonduan
jasonduan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.

Avatar of thready
thready

ASKER

thank you!