Edit Article

One of the great things about Apache Subversion is that it remembers every change made to its files and directories. This gives you the option of reverting to earlier versions of your code - a useful feature if you’ve introduced some bugs or unnecessary code in the last few revisions, and need to roll back to a time before it all went wrong! Tagging can make this process much easier, by giving you the option of labelling a specific revision with a handy, human-readable tag (such as “Release 5.0.”) In this guide, we will first cover creating such a tag, before walking you through the process of reverting to that tag, a few revisions down the development line.

Ad

Steps

  1. 1
    To get started, right click on your working copy and select the ‘Branch/Tag option from the TortoiseSVN’ menu.
    Ad
  2. Create a Tag and Perform a Revert in TortoiseSVN Step 2.jpg
    2
    In the subsequent dialog, select the ‘tags’ path and add the desired tag. In this example we’ll use ‘Release_5.0”
  3. Create a Tag and Perform a Revert in TortoiseSVN Step 3.jpg
    3
    Add an appropriate log message in the ‘Log message’ box.
  4. Create a Tag and Perform a Revert in TortoiseSVN Step 4.jpg
    4
    Select which revision you wish to tag. This is usually the HEAD revision, but you can specify another revision, if required. When you have entered all this information, hit ‘OK.’
  5. Create a Tag and Perform a Revert in TortoiseSVN Step 5.jpg
    5
    TortoiseSVN will warn you that: “your working copy remains on the previous path. If you want your next changes to be in the just created copy then you need to switch over to that copy path. Use the Switch command to do that." You have now created your tag.
  6. Create a Tag and Perform a Revert in TortoiseSVN Step 6.jpg
    6
    If you check your repository, you will see that this tag has been successfully committed.
  7. Create a Tag and Perform a Revert in TortoiseSVN Step 7.jpg
    7
    With TortoiseSVN and Subversion, it is easy to roll back to previous tagged revisions. To roll back to the revision we just tagged at a later date, right-click on your working copy and select ‘Show Log.’
  8. Create a Tag and Perform a Revert in TortoiseSVN Step 8.jpg
    8
    This will display a list of revisions.
  9. Create a Tag and Perform a Revert in TortoiseSVN Step 9.jpg
    9
    Select the revision you wish to revert to and right-click. Select ‘Revert to this revision.’
  10. Create a Tag and Perform a Revert in TortoiseSVN Step 10.jpg
    10
    When prompted, confirm you wish to revert.
  11. Create a Tag and Perform a Revert in TortoiseSVN Step 11.jpg
    11
    TortoiseSVN will now revert to this earlier revision.
  12. Create a Tag and Perform a Revert in TortoiseSVN Step 12.jpg
    12
    Check the results of the revert and, if you’re happy with them, commit your working copy back to the repository. Warning: this will discard all the changes you made after the selected revision.
    Ad


We could really use your help!

Can you tell us about
seizing opportunities?
Yes
No
seizing opportunities
how to YOLO
Can you tell us about
making putty?
Yes
No
making putty
how to make putty
Can you tell us about
fruit leather?
Yes
No
fruit leather
how to make fruit leather
Can you tell us about
repairing couches?
Yes
No
repairing couches
how to fix a sagging couch
Thanks for helping! Please tell us everything you know about
...
Tell us everything you know here. Remember, more detail is better.
Tips
Provide Details.
Please be as detailed as possible in your explanation. Don't worry about formatting! We'll take care of it. For example:
Don't say: Eat more fats.
Do say: Add fats with some nutritional value to the foods you already eat. Try olive oil, butter, avocado, and mayonnaise.

Things You'll Need

Article Info

Categories: Hacks

Thanks to all authors for creating a page that has been read 13,653 times.

Did this article help you?
Yes No

Become
an Author!

Write an Article