Game Engine Architecture

(Ben Green) #1
63

Each programmer gets a local copy of the code on his or her machine. In
the case of TortoiseSVN, you obtain your initial working copy by “ checking
out” the repository, as described above. Periodically you should update your
local copy to refl ect any changes that may have been made by other program-
mers. You do this by right-clicking on a folder and selecting “SVN Update”
from the pop-up menu.
You can work on your local copy of the code base without aff ecting the
other programmers on the team (Figure 2.5). When you are ready to share
your changes with everyone else, you commit your changes to the repository
(also known as submitt ing or checking in). You do this by right-clicking on the
folder you want to commit and selecting “ SVN Commit...” from the pop-up


2.1. Version Control


Figure 2.6. TortoiseSVN Commit dialog.


Foo.cpp (version 1)

Foo.cpp (version 2)

Foo.cpp (version 3)

Foo.cpp (version 4)

Bar.cpp (version 1)

Bar.cpp (version 2)

Bar.cpp (version 3)

Figure 2.4. File version histories.


Foo.cpp (version 4)

Foo.cpp (local edits)

Figure 2.5. Editing the local copy of a ver-
sion-controlled fi le.
Free download pdf