Skip to main content
GameDev.net gamedev.net
🔒 Locked

Version Control

Started by Rayno Jan 29, 2004 at 2:42 AM 25 replies 5.7k views
Original Post
Rayno
Rayno
Right now all my code is getting disorganized becase I have a lot of different versions of components I use in many projects floating arround. What is the best way you have found to keep track of version of a paticular source file? Is there a way to have a build number automatically assigned or something? Any other good advice on keeping track of versions of code?
xtrmntr
xtrmntr
http://www.perforce.com/

It''s free (with a 2 user max) and it''s a great product.
Arild Fines
Arild Fines
Hey, a version control thread! I must post!

Take a look at Subversion. Read the SVN book.

Use Ankh!(that is, if you are using Visual Studio .NET)

--
AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.
[Project site] [Blog] [RSS] [Browse the source] [IRC channel]
--AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.[Project site] [IRC channel] [Blog]
antareus
antareus
Arild is the SVN release that Ankh works with considered stable enough to be used for personal source control?

I hate CVS very much. Also, how well does Ankh perform over network? Even Microsoft''s GotDotNet version control provider hangs VS.NET if it cannot contact the source control server.
--God has paid us the intolerable compliment of loving us, in the deepest, most tragic, most inexorable sense.- C.S. Lewis
Arild Fines
Arild Fines
quote:
Original post by antareus
Arild is the SVN release that Ankh works with considered stable enough to be used for personal source control?


The current Ankh release, 0.4.1, is linked against Subversion 0.37. 0.37 is the 1.0 release candidate - barring any major bugs, 0.37 is 1.0. 1.0 is scheduled for February 23, last I heard.

That being said, I have been using SVN for "personal source control" since around 0.10 without any major problems...
quote:

Also, how well does Ankh perform over network?


It performs as well as Subversion does, which is decent. Unfortunately, the version control operations are still run in the main thread(although I do run the message pump in the notification and cancel callbacks, which goes a long way in mitigating the situation) , so VS.NET might appear to be unresponsive for shorter periods until the operation completes or errors out. I am going to do something about this at some point, but it is a non-trivial problem for various reasons, and I want to get it right.
--AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.[Project site] [IRC channel] [Blog]
Promit
Promit
Anybody know how well Bitkeeper works?

I need some version control in my school but I want to avoid setting up a CVS server on my rogue Linux boxen...for now...
SlimDX | Ventspace Blog | Twitter | Diverse teams make better games. I am currently hiring capable C++ engine developers in Baltimore, MD.
joelmartinez
joelmartinez
If anyone''s got the bank for it ... vault from sourcegear rocks.

Joel Martinez
http://www.codecube.net/
Joel Martinez
http://codecube.net
[twitter]joelmartinez[/twitter]
onebeer
onebeer
I can''t stress enough that you should use some form of source code control. Find one you like and use it religously. It will be worth its weight in caffeine when you mess up some code and want to go back to something that works.

I use Visual SourceSafe, but it really doesn''t matter which you use. I like VSS because the database is just a file directory and I can move it around and backup with just a copy command. I keep CDROM''s of the VSS DB in a safe at home in case the office burns down. I put not only source, but documents, data files, whatever.

There was a keynote given at a Borland conference many years ago where the speaker saw a time where the operating system had version control built in. Still hasn''t happened, but it sure would be nice.
onebeer
Xai
Xai
just to add t the above, CVS and nearly every other source control server are also just "managing" filkes inside a single directory, which you can move around and backup at will ... the difference being that with SourceSafe, the "visibilty" or the source control system is based on Windows file system or shared networking access, whereas all the other systems use the internet as their native access medium (basically they usually run as a server, or accesses through a web server).

I like CVS, solely cause I found it so much better than source safe at the time (my CVS server has never hung, crashed, lost data, or been messed up in any way ... in over 2 years) ... but the CVS clients could be a lot better ...

I liked source safe fine ONLY when it was on my local machine, with only local users using it ... in that enviroment it is plenty good enough.

The newer / better systems: Subversion, Perforce, BitKeeper are all worth a look ... but I don''t know any well enough to recommend. (and CVS worked on BeOS, which I also use).
EvilProgrammer
EvilProgrammer
What if I''m using DevC++? Which one is recommended for that?
joelmartinez
joelmartinez
quote:
Original post by Xai
just to add t the above, CVS and nearly every other source control server are also just "managing" files inside a single directory, which you can move around and backup at will ...
Sourcegear''s Vault works a bit differently in that it''s repository is based in SQL Server. It''s exposed through IIS using ASP.NET web services so you could program against that API and easily integrate source control into your own product.



Joel Martinez
http://www.codecube.net/
Joel Martinez
http://codecube.net
[twitter]joelmartinez[/twitter]
Arild Fines
Arild Fines
quote:
Original post by joelmartinez
quote:
Original post by Xai
just to add t the above, CVS and nearly every other source control server are also just "managing" files inside a single directory, which you can move around and backup at will ...
Sourcegear''s Vault works a bit differently in that it''s repository is based in SQL Server.


And Subversion uses Berkeley DB as a backend(they''re working on making the backend pluggable, though.)

MS doesn''t use VSS internally for major projects - they have a tool based on Perforce.

"Visual SourceSafe? It would be safer to print out all your code, run it through a shredder, and set it on fire." -- some MS employee.
--AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.[Project site] [IRC channel] [Blog]
joelmartinez
joelmartinez
quote:
"Visual SourceSafe? It would be safer to print out all your code, run it through a shredder, and set it on fire." -- some MS employee.

AAHHAHAHAHAHAHAHAHAHHAHAH! classic
Joel Martinez
http://codecube.net
[twitter]joelmartinez[/twitter]
OrangyTang
OrangyTang
quote:
Original post by onebeer
I can''t stress enough that you should use some form of source code control. Find one you like and use it religously. It will be worth its weight in caffeine when you mess up some code and want to go back to something that works.

There was a keynote given at a Borland conference many years ago where the speaker saw a time where the operating system had version control built in. Still hasn''t happened, but it sure would be nice.

I find CVS to be too much of a pain to use on personal projects, so I usually make do with just archiving and dating at irregular intervals. On a multi-person project this obviously isn''t practical.

However if you''re just looking for temporary, recent changes history then Eclipse comes in very handy. Automatically keeping a changes list (with timestamps) for every change of a file is a great way to backup when you make some horrible mistake. It should hopefully become a standard feature of IDEs sometime in the future.

Btw, if you do set up a CVS system, make it simple. As simple and easy to use as possible. Quick and easy things get used more frequently. The last thing you want is a CVS system that barely gets used.

[S-Type] [V-Script]
alchemar
alchemar
I like freeVcs. its easy to use.
_the_phantom_
_the_phantom_
hmmm how handy, a thread about version control around the same time i was going to look into it :D

*takes a shift at subversion... well, when i wake up later anyways*
Arild Fines
Arild Fines
quote:
Original post by onebeer
There was a keynote given at a Borland conference many years ago where the speaker saw a time where the operating system had version control built in.

Didn''t VMS have some kind of versioning filesystem?
--AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.[Project site] [IRC channel] [Blog]
Qw3r7yU10p!
Qw3r7yU10p!
I''ve been using tortoiseCVS which integrates nicely into windows. You can right click on any folder and add create a repository for it.

Just make sure you update the icons, they''re horrible.
grasshopa55
grasshopa55
I also like CVS. I use it in conjunction with WinCVS and Jalindi Igloo for integration into Visual Studio, along with Araxis Merge for resolving conflicts. I find it to be fast and very organized. There is a small learning curve in using the tool, but like any tool, once you get it down, you can be very productive.

-----------------------------
kevin@mayday-anime.com
http://www.mayday-anime.com
-----------------------------kevin@mayday-anime.comhttp://www.mayday-anime.com

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.