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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix C ■ Tracking History Using Version Control Systems 1343<strong>and</strong> what files might be missing (if any). Consult the Subversion documentation<strong>for</strong> more in<strong>for</strong>mation about the specific output <strong>of</strong> this comm<strong>and</strong>.svn log [path]The log comm<strong>and</strong> can be used to give a history <strong>of</strong> log messages <strong>for</strong> a workingcopy. By default, it uses the current directory, but you can specify a specificpath if you choose. The following is a sample Subversion log <strong>for</strong> a few revisionsto the TomTom repository:------------------------------------------------------------------------r192 | Cladhaire-15704 | 2008-12-22 08:21:03 +0000 (Mon, 22 Dec 2008) | 2 lines* Only try to set the corpse waypoint when c,z,x,y are positive numbers------------------------------------------------------------------------r191 | Cladhaire-15704 | 2008-12-21 21:41:53 +0000 (Sun, 21 Dec 2008) | 2 lines* Added a Corpse arrow that can be configured on the general options screen.When enabled, a non-persistent waypoint arrow will be set directing you towardyour corpse. It will be removed when you resurrect.svn diff [path]The diff comm<strong>and</strong> will print a listing <strong>of</strong> the differences between the code inyour working copy, versus the last commit to the repository. This is a h<strong>and</strong>yway to check what changes you’ve made to the file be<strong>for</strong>e committing.<strong>Creating</strong> a Local RepositoryAlthough Subversion is designed to be used with a central server, youcan actually create repositories locally on your machine using the svnadmincomm<strong>and</strong>. The comm<strong>and</strong> takes a path that will serve as the destination <strong>of</strong> therepository on the file system. The following comm<strong>and</strong> creates a new repositoryin the C:\Subversion\MyAddon folder that can then be used to check out <strong>and</strong>commit, assuming the C:\Subversion directory already exists:svnadmin create C:\Subversion\MyAddonInstead <strong>of</strong> using the http:// or svn:// type <strong>of</strong> URL, you use file:///(note the extra / in the URL). To check out this repository, use the followingcomm<strong>and</strong>:svn checkout file:///c:/Subversion/MyAddonYou can now use this new repository to store your history without needingto contact a remote server. This allows you to store a history <strong>of</strong> your codelocally so you can take advantage <strong>of</strong> the other features <strong>of</strong> Subversion.

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

Saved successfully!

Ooh no, something went wrong!