Tortoisesvn revert to an earlier version

Asked

Viewed 1,855 times

1

I have a code and I am using the version control Tortoise. I started from version 1 and now I am in version 10. But I realized I have a problem and I need to get my code back to revision 6.

I go to the properties and request to revert to such review. So far so good.

But from that point on, I would like to use that point in the code to continue programming. Call this review 6 out of 11 and continue from it. But when I try to give a commit I get an error message, which my version of the code is not updating and I need to update it first (i.e., upgrade to version 10). But what I want is just not to update her, not to use the parts I want to discard.

Then send the new version of the code to the server?

Thank you

1 answer

1


  1. Make a branch of this version 6. Give an easy to identify name;
  2. Make your modifications on branch, perform commit;
  3. If you wish, go back to the trunk and make a merge from your branch.

Some more manual modifications and conflict resolution may be required.

  • To conclude. If I use the "revert to this Revision" option when time to return to an older revision, it does not allow me to do the "commit". To work I need to select all revisions I want to discard simultaneously, and mark a "revert changes from These revisions". Ay yes I can give a new "commit" based on an old revision.

  • 1

    @Antoniorafaeldasilvafilho Yes, this happens because SVN works incrementally. Just reversing a revision creates a consistency problem between the files. This is because SVN does not store the entire files, but modified portions that are used to reassemble the file at the time you perform a Checkout or Update.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.