topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 2:20 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Good Article For Beginners On Version Control (w/ Pictures & Examples)  (Read 19517 times)

tinjaw

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,927
    • View Profile
    • Donate to Member
There is a very good introduction to version control at BetterExplained.


Found via Lifehacker.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
something's missing..
where the picture of the user screaming at the computer screen when he can't get the thing to check out properly because of some nonsensical error?

justice

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,898
    • View Profile
    • Donate to Member
Always funny to read:
either: save your word document with _v2 at the end
or read through several pages of information to set up a version control system.

That said I can't get my colleague to use one of these or I would be a lot happier working on a functions include (web development) without having to yell "do you have this file open" a few times each day.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
in case my comment gave the wrong impression, as annoying as version control can sometimes be, it's simply something you must learn how to use these days as a programmer.

svn is the easy choice of software, and there are some nice easy programs to get you started on a windows platform (http://tortoisesvn and http://rapidsvn).  I use to be a big fan of tortoisesvn but the shell integration can be a bit intrusive so i tend to use RapidSvn mostly now (it's a bit buggy but it gets the job done).

on linux the commandline main svn programs are fine -- but if you are hosting an svn repository, do expect to struggle a little to get it up and running initially.

mwb1100

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,645
    • View Profile
    • Donate to Member
Here's the best intro to version control I've come across:

http://www.ericsink..../source_control.html

Eric Sink is pretty much always a good read.

justice

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,898
    • View Profile
    • Donate to Member
There was some kind of decentralized version control software that started with a 'd' i think but I can't remember the name just a professor that created it mostly himself with his team. It worked really well but at the time I was looking for filehamster instead (i realised)... ahh I think it was Darcs (http://darcs.net/). ahh I have to say i just dabbled with it but in princple it seemed less strict than subversion + tortoise. Always found it overly complex for personel development use but then I only create websites and AHK scripts :)
« Last Edit: October 02, 2007, 10:58 AM by justice »

Armando

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 2,727
    • View Profile
    • Donate to Member
Nice articles. Thanks guys.

housetier

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 1,321
    • View Profile
    • Donate to Member
hah very good find! got me into reading about VCS again

thanks tinjaw  :Thmbsup:

Mandork

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 64
  • Hopeless or hapless?
    • View Profile
    • Read more about this member.
    • Donate to Member
Speaking of FileHamster, does anyone here actually use it for day-to-day work?  I have downloaded it and started using it (in conjunction with SyncBack, just in case) as a means of keeping track of my PhD thesis stuff.  It seems okay, but I just wondered what others' experiences were like.
Computers are useless. They can only give you answers.
Pablo Picasso

tinjaw

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,927
    • View Profile
    • Donate to Member
I haven't used it daily, but I have used it very often. I haven't had any problems and I trust it on some of my most important projects.

nevf

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 115
    • View Profile
    • Clibu, accessible knowledge
    • Donate to Member
I wrote "Get up and running with TortoiseSVN and Subversion in 15 minutes." a while back which will be of interest to folks starting out with SubVersion.
Neville Franks, Clibu a better way to collect, use, manage and share information across all devices.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Oh that's excellent nevf!  Very nice  :up: :up: :up:

tinjaw

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,927
    • View Profile
    • Donate to Member
Yes, nevf, very nice. I have sent you a few credits for this. Thanks.

jandi

  • Participant
  • Joined in 2007
  • *
  • Posts: 7
    • View Profile
    • Donate to Member
Speaking of FileHamster, does anyone here actually use it for day-to-day work?

I tried.  I really really tried.  Seemed like an ideal, easy solution for my MSc Thesis.  But given that it creates copies at every save, and that I am a compulsive saver (habit acquired from long time use of MS Word for sensitive documents that cause the program to crash precisely when you have not saved your work), I was not too happy with the tons of copies generated every day.   I decided to take the time to learn SVN (well, I'm using TortoiseSVN on a local repository), and am quite happy.

tinjaw

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,927
    • View Profile
    • Donate to Member
But given that it creates copies at every save,

FYI: There is an option (look at the files properties in FileHamster) for TimeDelayBetweenRevisions. This will limit how often a file is saved if you save often and don't want saves from every minute. The description of the option is "Specifies an artificial time delay between revisions limiting the number of revisions that can occur during a specified time period."

I decided to take the time to learn SVN (well, I'm using TortoiseSVN on a local repository), and am quite happy.

Glad to hear that another person has joined the cult learned to use Subversion.  :Thmbsup:

Muadib

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 29
    • View Profile
    • Donate to Member
I was not too happy with the tons of copies generated every day.

Complementing tinjaw reply, you can adjust FileHamster to limit the amount of copies you wish to keep. Above that limit, it starts deleting old versions. I use this approach together with the one cited by tinjaw. In my case, I've adjusted to not save within the period of 5 minutes. You can find these options with a right-click above the folder been monitored (inside FileHamster's main window), choosing "Options" and going to "MaxRevisions".


f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
something's missing..
where the picture of the user screaming at the computer screen when he can't get the thing to check out properly because of some nonsensical error?
* f0dder remembers mouser trying to set up subversion on the server.

on linux the commandline main svn programs are fine -- but if you are hosting an svn repository, do expect to struggle a little to get it up and running initially.

Well, if you do have some unix/linux experience, subversion is actually extremely easy to set up. Especially if you have a distro with a decent package manager (and you choose to use it). All it takes is running svnserve with a few well-explained command-line parameters, and "svnadmin create" to create a repository.

What's harder, and requires reading the handbook, is choosing a decent layout. And this can be hard when you're starting with subversion, I know I certainly messed up myself: first I thought I'd use a single repository for all my stuff. Once I moved to repo-per-project I didn't think about stuffing files in a "dev" (or "trunk" or "current" or whatever you want to call it) subfolder, etc...

And then there's of course getting into the habit and mindset of using version control, which tends to be the hardest, at least for some people. But it's nice once you get everything clicking into place.

The thing that remains for me, personally, is some commit log dicipline, deciding on some tags to add, and a format that's easily grepable so I can write a changelog.txt automagically...
- carpe noctem