12.07.2015 Views

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix C ■ Tracking History Using Version Control Systems 1341some stable version <strong>of</strong> your addon, you might make a branch to keep itseparate from your trunk development.Tags—Tags are typically synonymous with releases, allowing you to seethe state <strong>of</strong> the source code at the point you released a version to thepublic.Obtaining SubversionYou can download Subversion <strong>for</strong> your plat<strong>for</strong>m from the main Subversionwebsite at http://subversion.tigris.org/getting.html. Packages exist <strong>for</strong>both Mac OS X <strong>and</strong> Micros<strong>of</strong>t Windows machines. Once the package has beeninstalled, you can test that your system works properly by running the svncomm<strong>and</strong> in a terminal or comm<strong>and</strong> window:> svnType 'svn help’ <strong>for</strong> usageIf you see some other message, the comm<strong>and</strong> may not be in your path<strong>and</strong> you’ll have to do a bit more experimentation. Several good guides toinstalling <strong>and</strong> using Subversion on any system are linked directly from themain Subversion website.Comm<strong>and</strong> PrimerThis section details the major Subversion comm<strong>and</strong>s you will use in the course<strong>of</strong> daily development. As always, more detail is available using the svn helpcomm<strong>and</strong>, or in the <strong>of</strong>ficial documentation.svn checkout [path]Checking out a Subversion repository is a matter <strong>of</strong> calling the svn checkoutcomm<strong>and</strong> with the URL <strong>of</strong> the repository. By default, a folder is created withthe same name you are checking out, but you can specify a path argument touse a different folder name instead. The following comm<strong>and</strong> checks out thecode <strong>for</strong> TomTom (one <strong>of</strong> my addons) into the folder trunk at your currentlocation:svn checkout svn://svn.wowinterface.com/TomTom-17/trunkHere’s a comm<strong>and</strong> that checks out the repository into a folder called TomTomin your current directory:svn checkout svn://svn.wowinterface.com/TomTom-17/trunk TomTomThe following comm<strong>and</strong> checks out the repository into the folderC:\Subversion\TomTom on your computer:svn checkout svn://svn.wowinterface.com/TomTom-17/trunkc:\Subversion\TomTom

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!