Subversion Code Deployment LifeCycle August 2011
Subversion Code Deployment LifeCycle • Subversion 4 • TortoiseSVN 4 • Getting Started With SVN 5 • Repository Browser 5 • Checkout Working Copies 6 • Committing Your Work 9 • Build Release System v2.0 for Internet Explorer 10 • FED Development Workflow 14
Subversion Code Deployment LifeCycle FED DEVELOPMENT WORKFLOW
Subversion Code Deployment LifeCycle Subversion Subversion is an open source version control system. Founded in 2000 by CollabNet, Inc., the Subversion project and software have seen incredible success over the past decade. Subversion has enjoyed and continues to enjoy widespread adoption in both the open source arena and the corporate world. Subversion manages files and directories, and the changes made to them, over time. This allows you to recover older versions of your data or examine the history of how your data changed. In this regard, many people think of a version control system as a sort of “time machine.” Subversion exists to be universally recognized and adopted as an open-source, centralized version control system characterized by its reliability as a safe haven for valuable data; the simplicity of its model and usage; and its ability to support the needs of a wide variety of users and projects, from individuals to large-scale enterprise operations. To download the latest releases of Subversion, please visit: http://subversion.apache.org/download/ For instructions on installing Subversion, please visit: http://subversion.apache.org/source-code.html To read the official Subversion documentation online, please visit: http://svnbook.red-bean.com/
Subversion Code Deployment LifeCycle TortoiseSVN TortoiseSVN is an easy-to-use SCM / source control software for Microsoft Windows and possibly the best standalone Apache™ Subversion® client there is. It is implemented as a Windows shell extension, which makes it integrate seamlessly into the Windows explorer. Since it's not an integration for a specific IDE you can use it with whatever development tools you like. To download the lastest release of TortoiseSVN 32-Bit, please visit: http://downloads.sourceforge.net/tortoisesvn/TortoiseSVN-188.8.131.5211-win32-svn-1.6.17.msi?download To download the lastest release of TortoiseSVN 64-Bit, please visit: http://downloads.sourceforge.net/tortoisesvn/TortoiseSVN-184.108.40.20611-x64-svn-1.6.17.msi?download To view the release notes for version 1.6, please visit: http://tortoisesvn.tigris.org/tsvn_1.6_releasenotes.html To download the SVN command line client, please visit: http://subversion.apache.org/packages.html
Subversion Code Deployment LifeCycle Getting Started With SVN To get started using TortoiseSVN with the Subversion Repository, you need to have TortoiseSVN 1.6 installed and a SVN login. To obtain a SVN login contact your immediate supervisor. With TortoiseSVN installed correctly on your Windows computer, you can begin keeping files and directory in the SVN Repository.
Subversion Code Deployment LifeCycle Repository Browser Using the Repository Browser, you can view files and directories that are stored in the SVN Repository. To open the Repository Browser on your Windows computer, right click on the desktop and select SVN Repo-Browser from the dropdown menu.
Subversion Code Deployment LifeCycle The dialog box will appear allowing you to specify the location of the SVN Repository where your valuable assets are located. FED Developers should enter the following URL: http://cpliad18.homedepot.com/svn/hdonline_staticweb/ If the repository that you are trying to access is password protected, an authentication Dialog box may appear if your authentication have not already been validated.
Subversion Code Deployment LifeCycle The Repository Browser will appear showing your valuable assets.
Subversion Code Deployment LifeCycle Checkout Working Copies To begin working on files and folders that are stored in the repository, the files need to be checked out from the Repository Browser. Select the branch, tag, or trunk of the project you are working, and then right click to show the menu. Select Checkout.
Subversion Code Deployment LifeCycle Select your Checkout directory from the Checkout dialog box, and click OK.
Subversion Code Deployment LifeCycle The next dialog box shows the files and folders you have Checked Out from the Repository.
Subversion Code Deployment LifeCycle Your checked out files and folders will show up in the destination that you selected as the example shown below. The following icons are ones you may see in your checked out directory. Now that you have checked out a working copy from a Subversion repository you can see your files in the windows explorer with changed icons. This is one of the reasons why TortoiseSVN is so popular. TortoiseSVN adds a so called overlay icon to each file icon which overlaps the original file icon. Depending on the Subversion status of the file the overlay icon is different.
Subversion Code Deployment LifeCycle Committing Your Work Once you have complete assigned tasks you will need to save your modifications back to the Repository. Right click on the folder or file and select Commit.
Subversion Code Deployment LifeCycle The Commit dialog box will appear requiring you to enter the reason for changing/editing a file or fold. You place your message in the Message section. You must inform the Repository when you are adding or deleting files and folders from your Checkout directory. SVN constantly checks status of files and folders checked out from the repository.