Hidden TortoiseSVN Features, Page 2
Hidden TortoiseSVN Features
You are now familiar with TortoiseSVN's context menu, but did you know that if you hold down the shift key, you can access an extended context menu? This menu has some additional options:
Diff with URL
A big part of project development is pinpointing what has changed. TortoiseSVN has a trick for uncovering exactly what has changed on the trunk for users working on a branch and what has changed on a specific branch for users working on the trunk. When you hold down the Shift button and select TortoiseSVN, you will notice a new Diff with URL option has appeared.
Click here for larger image
Select Diff with URL. In the following dialog, specify the URL in the repository you wish to compare with your local file. This will bring up the TortoiseMerge box, allowing you to see the changes.
Delete Unversioned Items
Another new option that appears when you hold down Shift is Delete unversioned items. It's possible to set the TortoiseSVN ignore list to exclude all unversioned items, but if you wish to purge all these ignored items and produce a clean build, this command comes in handy. Selecting Delete unversioned items launches a dialog listing all the unversioned files in the working copy, where you can select which files to delete. Note that this command only moves files to the recycle bin, so they can be recovered if you make a mistake.
Although Subversion was designed to use copying and merging rather than locking, there are some scenarios where locking is advisable (e.g. whenever "unmergeable" files such as images are involved.) Locking with TortoiseSVN is a matter of clicking the file that requires locking, and selecting Get Lock… from the TortoiseSVN sub-menu. It's also a good practice to leave a comment explaining why you have decided to lock that file.
If you can add locks, at some point you will need to release them. To release a lock manually with TortoiseSVN, select the locked file, press Shift and then select the new Break Lock option from the TortoiseSVN sub-menu. TortoiseSVN will then contact the repository and release the lock. You can also use this command on a folder to release all the locks recursively.
You now know the basic TortoiseSVN workcycle, and some additional "hidden" commands! If you want to learn more about TortoiseSVN, the official docs are a great source of information.
Page 2 of 2