Now, running Nightly, every time I browse to another webpage, the console would generate a bunch of "Hello World". I just did a printf statement in a random function in a random .cpp file. Now that's something satifying =]
Creating a patch from the changes I made is an easy task. It only requires 1 command to do the work.
hg diff -p -U 8 . > patch.txt
Now to test the patch if it works, I reverted the changes by replacing the file with the backup file I made earlier. Using another command to apply the patch:
patch -p1 < patch.txt
It successfully changes the file to the one I modified.
The last command to try is backing out the patch with
patch -R -p1 < patch.txt
Again, 1 command and it worked. I liked this lab far better than the one I had before =].
No comments:
Post a Comment