![smartsvn rollback revision smartsvn rollback revision](https://www.smartsvn.com/assets/images/products/smartsvn/features/v9-2/change-sets-006877f3.png)
- SMARTSVN ROLLBACK REVISION HOW TO
- SMARTSVN ROLLBACK REVISION FULL
- SMARTSVN ROLLBACK REVISION SOFTWARE
- SMARTSVN ROLLBACK REVISION CODE
All sorts of things could go wrong if both teams tried to work on the same code at the same time. Dracula and Wolfman are supposed to start adding a few features that had to be left out of the first release because time ran short.Īt the same time, Frankenstein and the Mummy are doing technical support: their job is to fix any bugs that users find. Suppose that Universal Monsters has just released a new program for designing secret lairs. This is outside the scope of this lecture, but the basic idea is simple. But the most frequent use is to manage parallel streams of development in large projects. It can also be used to recover many files or directories at a time. Merging can be used to recover older revisions of files, not just the most recent. This guarantees that the changes he made to create Revision 13 are still there if he can ever convince Mummy that numbers should in fact have commas. He accepts the changes, and then commits to create Revision 14 in the repository. He wants to merge Revision 12 through to HEAD, and he wants to do a reverse merge, because he's going backward in time.Īfter he clicks, he can bring up a display to see what has changed in his local file. In the dialog that comes up, he specifies a range of revisions. This is the point at which Mummy realizes the changes have to be reverted.ĭracula goes back into SmartSVN, and under the "modify" menu, selects "merge". He has now created Revision 13 of the repository. …and then back in SmartSVN, he uses "commit" to push his changes into the repository.
![smartsvn rollback revision smartsvn rollback revision](https://www.smartsvn.com/assets/images/products/smartsvn/features/v11/preferences-commit-edb16896.png)
He runs SmartSVN, double-clicks moons.txt, goes in, make his change, saves it… The only difference is that the "other person" is actually ourself in the past. This is exactly like merging changes made by two different people, which we saw in the previous episode. What you have to do is copy the old revision forward… Once a change is in the repository, it's there forever. We can draw the sequence of events leading up to Revision 13 like this.ĭracula wants to erase Revision 13 from the repository, but he can't actually do that. …and orders Dracula to put things back the way they were. …then commits his changes to create Revision 13.Ī little while later, the Mummy sees the change… Suppose that Dracula decides that the numbers in moons.txt would look better commas. Now let's look at what happens when someone wants to undo changes that have been committed. Let's open it again to double-check-and there's the original contents. …and when SmartSVN asks him to confirm, he clicks "revert" again, and SmartSVN puts his file back the way it was. He realizes that he doesn't want to keep his changes, so he selects "revert"… The next morning, when he comes in, he uses "show changes" to take a look at what happened the previous night. He saves his changes, then loses control of his shape and goes off to howl at the moon. When it comes up, he selects the text he wants to replace, and puts in a couple of lines of bad poetry instead. …selects the file moons.txt, and then double-clicks on it to open it in the editor. Let's go through that sequence of steps using SmartSVN. Subversion's revert command simply throws away local changes to files and puts things back the way they were before those changes were made. He could ask his colleagues to send him their copies of the files, or try to edit them back into their original state by hand (which for some reason hardly ever seems to work).īut he's using Subversion, and hasn't committed his work to the repository, so all he has to do is revert his local changes. Without version control, his choices would be grim. The next day, when he's back in human form, he wants to undo his changes. So his changes don't make a lot of sense.
SMARTSVN ROLLBACK REVISION FULL
Unfortunately, he forgot that there was a full moon.
![smartsvn rollback revision smartsvn rollback revision](https://www.smartsvn.com/assets/images/products/smartsvn/whats-new/v14.1/unified-diff-3c88cecb.png)
Suppose that Wolfman's working copy of the monsters project is in sync with the head, which is Revision 12.
SMARTSVN ROLLBACK REVISION HOW TO
In this episode, we will show you how to use version control to recover old versions of your files.
SMARTSVN ROLLBACK REVISION SOFTWARE
Hello, and welcome to the fourth episode of the Software Carpentry lecture on version control.