Want to be sold on using SVN or something like it

Discussion in 'Programming & Software Development' started by bojo, Sep 25, 2008.

  1. bojo

    bojo Member

    Joined:
    Mar 1, 2007
    Messages:
    1,892
    Links to shit describing it welcome.

    I've started helping a friend with creating a custom gametype for a game. (really just editing/tweaking existing scripts, to match what he thinks it should do).

    However i can see big problems coming along, becuase he is editing the main scripts at the moment, while i'm mainly inserting new content/classes etc. That would be fine, but everynow and then i need to edit the main one, to add in the content i've added.

    To simplify it, we might be manipulating the same file.

    I think this is what SVN is good for?, i've never really programmed in a group (not for non-uni projects anyway).

    Just really wondering if this is what i'm looking for, or if i should still be just emailing him and getting him to cut in my changes.

    Cheers guys
     
  2. glasnt

    glasnt Member

    Joined:
    Aug 9, 2004
    Messages:
    3,793
  3. AusKWiKsAnD

    AusKWiKsAnD Member

    Joined:
    May 28, 2002
    Messages:
    1,700
    Location:
    Perth, WA
    Defiintely SVN. Piss easy to setup, and you'll never lose anything (and I mean anything) again.
     
  4. ACodingFettish

    ACodingFettish Member

    Joined:
    Feb 7, 2004
    Messages:
    6,652
    Location:
    Brisbane
    I recently asked a question about version control here:
    http://forums.overclockers.com.au/showthread.php?t=712222

    and now I'm sold on SVN, I've set it up on an apache web server, and have made a script that runs when someone commits changes to copy the changes to my IIS directory.

    It's great, was easy to setup and works well. You can do heaps of cool stuff with the commit scripts, like email the changes in files to members of the group etc

    Definately have a play with TortoiseSVN :thumbup:
     
  5. Bradzac

    Bradzac Member

    Joined:
    Aug 17, 2003
    Messages:
    1,744
  6. Semi-Evolved

    Semi-Evolved Member

    Joined:
    Aug 11, 2003
    Messages:
    7,089
    Location:
    Brisbane
    Source control's definitely the way to go for your situation. TortoiseSVN is definitely the ideal tool to be using on Windows; it's a clean, simple implementation that exposes its functionality through an Explorer extension. If you're working in Visual Studio, VisualSVN might be worth shelling out for (it's an extension that lets Tortoise be used through VS), but to be honest I wouldn't bother on a small project like that; it's not much harder to just use TortoiseSVN through Explorer.
     
  7. Jay

    Jay Member

    Joined:
    Jan 7, 2002
    Messages:
    2,389
  8. Bradzac

    Bradzac Member

    Joined:
    Aug 17, 2003
    Messages:
    1,744
    I was referring to VisualSVN Server. So much easier to set up and it's free. Then use tortoisesvn and AnkhSvn for VS integration.

    Great set of tools and not paying a cent.
     
  9. ACodingFettish

    ACodingFettish Member

    Joined:
    Feb 7, 2004
    Messages:
    6,652
    Location:
    Brisbane
    ahh, didnt realise you were talking about the server in the last thread, just looked at it, thought nup not paying for it, tortoise is good and continued.. now it makes sense. So it replaces the apache version?
     
  10. Bradzac

    Bradzac Member

    Joined:
    Aug 17, 2003
    Messages:
    1,744
    I don't think it replaces the apache version, as it uses the apache libraries but it just removes the need to install/set up apache and all the fucking around, it's what a package should be.

    Just click install and you're away. I don't think it could have been made any simpler. The only downside is that it doesn't work witth the svn: protocol, it only works with http:// (no biggy).

    It comes with a UI tool so you can manage users etc.
     
  11. yihfeng

    yihfeng Member

    Joined:
    Nov 23, 2005
    Messages:
    1,400
    Location:
    Melbourne
    How about this. You are an idiot if you don't use SVN, or something like it!
     
  12. malloc

    malloc Member

    Joined:
    Dec 15, 2005
    Messages:
    529
    Location:
    Adelaide
    Yeah, svn will help you to merge changes when you're both editing the same file.

    There's many other good reasons for using a version control:

    - It will maintain a history of every change you make. This can be incredibly useful when you find out that a change you made in the past broke something obscure that wasn't picked up straight away. You can fire up svn and see exactly what was changed, and revert it if necessary.

    - You can 'tag' stable releases. Any time you need to give a stable version to someone you can grab it easily, it doesn't matter if you're in the middle of something and the latest version isn't usable.

    There's heaps of other reasons but those two are probably the most relevant for your situation.
     
  13. f3n1x

    f3n1x Member

    Joined:
    Mar 20, 2003
    Messages:
    1,704
    Location:
    Armadale, Melbourne
    If your dev environment is linux based and you do a lot of command line use, you may wish to try git instead, it's substantially faster, branching an merging are ridiculously simple and is distributed by nature.

    More detail is available on the git wiki.
     
  14. anakinwy

    anakinwy Member

    Joined:
    Jun 7, 2004
    Messages:
    124
    Location:
    Melbourne
    can't say enough good things about svn. Professional organisations use it so there's plenty of other users to lean on for support. Once setup, there's not that much adminstrative maintenance to do, just remember to back up ur repository every now and then, but since there's only 2 of u using it i can't imagine it being a problem with simultaneous access causing corruption.
     
  15. OP
    OP
    bojo

    bojo Member

    Joined:
    Mar 1, 2007
    Messages:
    1,892
    Thanks for posts guys.

    Though i pretty much asked it cause i had no idea what SVN did or how it worked.

    I searched through tortoiseSVN's manuals and it explained the ideas behind it. So i'm really pushing to get one up and running now.
     
  16. GregDude

    GregDude Member

    Joined:
    Aug 12, 2002
    Messages:
    1,302
    Location:
    Brisbane
    Keep your eye on Bazaar, http://bazaar-vcs.org/ this new open source revision control system looks to be doing things right and may actually solve the source/revision control problem. (I'm currently using Perforce, have used SVN, SourceSafe and others.)
     
  17. alexc

    alexc Member

    Joined:
    Sep 26, 2002
    Messages:
    1,670
    Location:
    Adelaide
    GIT is getting a lot of attention.
     
  18. ACodingFettish

    ACodingFettish Member

    Joined:
    Feb 7, 2004
    Messages:
    6,652
    Location:
    Brisbane
    whats the problem?
     
  19. Dedge

    Dedge Member

    Joined:
    Dec 23, 2001
    Messages:
    1,756
    Location:
    Brisbane, QLD
    That's because it's well deserved attention. Git (and it's distributed friends such as Bazzar and Mercurial) encourage a better, and more productive workflow.
     
  20. GregDude

    GregDude Member

    Joined:
    Aug 12, 2002
    Messages:
    1,302
    Location:
    Brisbane

Share This Page

Advertisement: