In Apache Subversion, it’s not unusual for developers to be working on multiple unrelated changes at the same time, in the same project. To distinguish between the different ongoing tasks in your project, SmartSVN supports ‘change sets’, groups of committable files and directories. Not only do change sets allow you to bring some order to your commits and updates, but it’s useful for grouping files together in order to commit them later. These change sets are an extension to the Subversion changelists.
In this short tutorial, we’ll provide an introduction to SmartSVN’s change sets by showing you how to create your first change set, and then how to add and remove files from them.
How to Create Your First Change Set
1) Select the files you wish to add to a new change set.
2) Open the ‘Change Set’ menu and select ‘Move to Change Set….’
3) Enter an appropriate message, which will be displayed as the name of the changelist, and decide whether you want SmartSVN to automatically delete the change set if it ever becomes empty. Select ‘OK’ once you are happy with the information you have entered.
4) SmartSVN will now go ahead and add these files to the change set.
If you don’t want to see them in the normal Files view, unselect View|Files Assigned to Change Set. This allows you to (temporarily) hide even unchanged or modified files which otherwise would clutter the file list.
How to Add a File to an Existing Change Set
1) Select the file you wish to add to an existing change set, followed by the ‘Move to Change Set…’ option.
2) Ensure the ‘Existing Change Set’ option is selected, and select the existing change set of your choice from the ‘Target Change Set’ combobox.
3) Select ‘OK’ to add this file to the existing change set.
Remove a File from a Change Set
1) To remove a file from a Change Set, select the file and open the ‘Move to change set…’ dialog.
2) Select the ‘Remove form Change Set’ option and click ‘OK’.
Right-click a Change Set to commit it. The change set’s Message will be used to prefill the commit message.
Not yet started with SmartSVN? You can download a free SmartSVN Foundation edition at http://smartsvn.com/