September 20, 2014
Hot Topics:
RSS RSS feed Download our iPhone app

Hidden TortoiseSVN Features, Page 2

  • March 14, 2012
  • By Jessica Thornsby
  • Send Email »
  • More Articles »

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.

Getting Started with TortoiseSVN
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.

Getting Started with TortoiseSVN
Click here for larger image

Break Lock

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.

Getting Started with TortoiseSVN
Click here for larger image

Further Reading

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.



Originally published on http://www.developer.com.

Page 2 of 2



Comment and Contribute

 


(Maximum characters: 1200). You have characters left.

 

 


Sitemap | Contact Us

Rocket Fuel