source control for personal use

A place for Ogre users to discuss non-Ogre subjects with friends from the community.
Post Reply
zorocke
Halfling
Posts: 48
Joined: Mon Dec 22, 2008 5:01 pm

source control for personal use

Post by zorocke »

I'm just wondering, how many people use source control locally for their own personal use? I'm thinking about trying it on my next project. You know, set up a local SVN server on your own computer. Of course this would make development much cleaner, even though it's just me working on the project.
User avatar
Karan
Halfling
Posts: 62
Joined: Wed Sep 17, 2008 1:59 pm
Location: Berlin, Germany

Re: source control for personal use

Post by Karan »

I like using SVN for my personal projects. Wouldn't code without it if it's more than a small script or exercise or the like...
Though not local, got a personal repository on a server in my university.
zorocke
Halfling
Posts: 48
Joined: Mon Dec 22, 2008 5:01 pm

Re: source control for personal use

Post by zorocke »

Karan wrote:I like using SVN for my personal projects. Wouldn't code without it if it's more than a small script or exercise or the like...
Though not local, got a personal repository on a server in my university.
That seems nice.

It would be cool if i could get a server running SVN, but this might be hard to find for free if i'm not open sourcing the project( Lol, i haven't even decided what my next project will be yet. I've been out of programming for a while). Any one have any suggesting on SVN hosting solutions for non-open source projects?
User avatar
cdleonard
Goblin
Posts: 266
Joined: Thu May 31, 2007 9:45 am

Re: source control for personal use

Post by cdleonard »

You don't need a svn server; you can create a local svn repository which can only be accessed using a file:/// url. Here's how it would look like:

Code: Select all

svnadmin create privsvn
export PRIVSVNREPO=file:///home/user/privsvn
svn checkout $PRIVSVNREPO privsvn-co
Now the privsvn-co should contain a checkout of your new empty repository; and you can start adding stuff. Later you can configure a web server for the same repository; but you don't have to.
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Re: source control for personal use

Post by jacmoe »

Use Git.
It's perfect for personal use. Does not need a server, is fast and flexible.
However, if you need a free server (SVN) for closed source, try Origo.
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
User avatar
milliams
Gremlin
Posts: 172
Joined: Fri Feb 16, 2007 1:47 am
Location: Portsmouth, UK
Contact:

Re: source control for personal use

Post by milliams »

jacmoe wrote:Use Git.
It's perfect for personal use. Does not need a server, is fast and flexible.
I have to agree. Git just makes perfect sense for doing local source control. It adds hardly any overhead at all and doesn't require a server. If you ten want to distrubute the code, loning it to a remote server such as GitHub or Gitorious is really easy.
If you want to understand Git really well, try giving the Git Parable a read.
User avatar
spacegaier
OGRE Team Member
OGRE Team Member
Posts: 4308
Joined: Mon Feb 04, 2008 2:02 pm
Location: Germany
x 137
Contact:

Re: source control for personal use

Post by spacegaier »

Is Git a local SVN or designed for running on a server? Would it also run on simple webspace with php or does it require full server access?

Currently, I use AnkhSVN. It creates a local SVN server and is integrated in VisualStudio.
Ogre Admin [Admin, Dev, PR, Finance, Wiki, etc.] | BasicOgreFramework | AdvancedOgreFramework
Don't know what to do in your spare time? Help the Ogre wiki grow! Or squash a bug...
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Re: source control for personal use

Post by jacmoe »

Git is distributed source control - let me quote from git-scm.com:
Git is a free & open source, distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Every Git clone is a full-fledged repository with complete history and full revision tracking capabilities, not dependent on network access or a central server. Branching and merging are fast and easy to do.
Normal commits are performed locally, as is mostly everything else.
Use pull and push to - well - pull and push from a server, like Github.
One thing I really like about Git is that it's really easy to create, merge, manage branches.
Unlike SVN, which is &%"¤& :wink:
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
User avatar
milliams
Gremlin
Posts: 172
Joined: Fri Feb 16, 2007 1:47 am
Location: Portsmouth, UK
Contact:

Re: source control for personal use

Post by milliams »

To be able to access a Git repository located on a remote server, I believe you need to be able to an application called 'git-daemon' which serves the git based requests to the outside world. I would imagine that you need to have full server access in order to run git-daemon as a service but I'm really not sure.

As far as a web frontend, there's Gitorious (Ruby on Rails), cgit (C) and gitweb (Perl) that come to mind. However, without git daemon running they'll do nothing more than allow people to browse the contents of the Git repo.
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Re: source control for personal use

Post by jacmoe »

Nope. Unless it's installed behind my back: no daemon. Just clone, push or pull. Over ssh. :)

Look at this for a good guide to Git:
http://www.kernel.org/pub/software/scm/ ... ryday.html
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
User avatar
milliams
Gremlin
Posts: 172
Joined: Fri Feb 16, 2007 1:47 am
Location: Portsmouth, UK
Contact:

Re: source control for personal use

Post by milliams »

Yeah, ok. I've just found http://www.rubynaut.net/articles/2008/0 ... repository which makes it all seem a lot easier. Just ssh and nothing else :)
zorocke
Halfling
Posts: 48
Joined: Mon Dec 22, 2008 5:01 pm

Re: source control for personal use

Post by zorocke »

Git does look interesting since as of now most of my code will be done locally, but i've used SVN before and have a lot of experience with it. I'm also thinking hosted SVN will be good because I might want to sync with my laptop when i go places.
jacmoe wrote:However, if you need a free server (SVN) for closed source, try Origo.

I did find Origo, but I also found xp-dev. I was planning on using xp-dev because it looks like it might be faster from where I am, as far as i can tell.
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Re: source control for personal use

Post by jacmoe »

/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Re: source control for personal use

Post by jacmoe »

Also, if you prefer to store your project on a SVN server somewhere, and still use Git locally, you can do that. :)
Use git svn ->
http://justaddwater.dk/2009/03/09/using ... -workflow/
The best of both worlds, IMO. :wink:
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
User avatar
Klaim
Old One
Posts: 2565
Joined: Sun Sep 11, 2005 1:04 am
Location: Paris, France
x 56
Contact:

Re: source control for personal use

Post by Klaim »

This is great!
I think I'll try git as while keeping my svn server.

By the way, any problem using git on windows?
User avatar
milliams
Gremlin
Posts: 172
Joined: Fri Feb 16, 2007 1:47 am
Location: Portsmouth, UK
Contact:

Re: source control for personal use

Post by milliams »

Klaim wrote:By the way, any problem using git on windows?
There were claims that it is slower than on Linux but I've not had any trouble using msysgit.
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Re: source control for personal use

Post by jacmoe »

One issue: Git for windows doesn't seem to have https support (in cUrl) compiled in. You need to use http or svn protocols.
For GUI, I use git-cola. :)
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
User avatar
nikki
Old One
Posts: 2730
Joined: Sat Sep 17, 2005 10:08 am
Location: San Francisco
x 13
Contact:

Re: source control for personal use

Post by nikki »

Git repository is as easy as 'git init'.
Speedo
Greenskin
Posts: 106
Joined: Fri Jan 23, 2009 9:17 pm

Re: source control for personal use

Post by Speedo »

Anyone have guides or etc for managing projects with SVN?
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Re: source control for personal use

Post by jacmoe »

I use(d) the official SVN handbook, the manual that comes with TortoiseSVN, and good 'ole Google for the rest.

<edit>
If you are going to branch/merge, make sure you read this:
http://www.ogre3d.org/wiki/index.php/Merging_Branches

I gave up on SVN. It's so much easier to branch/merge using Git.

However, Git has its share of drawbacks, so maybe a combination of the two?

</edit>
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
User avatar
Karan
Halfling
Posts: 62
Joined: Wed Sep 17, 2008 1:59 pm
Location: Berlin, Germany

Re: source control for personal use

Post by Karan »

Or Mercurial? Had to use it for a little project, is similar to git. Though I didn't use any advanced features. Otherwise I stick with SVN so far because I'm more familiar with it and TortoiseSVN seems much better than the GUI tools for git/mercurial (or has that changed? It's been a while since I checked out git). I don't want to learn all those console commands...
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Re: source control for personal use

Post by jacmoe »

Git-Cola is nice. The 'built-in' Git-gui is not bad either. And then there's TortoiseGit (which has improved a lot lately). :)

Mercurial seems to be okay, but doesn't have cheap local branching or a staging area (Git-stash).
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
zorocke
Halfling
Posts: 48
Joined: Mon Dec 22, 2008 5:01 pm

Re: source control for personal use

Post by zorocke »

TortoiseGit looks cool because from the screenshots it looks very similar to TortoiseSVN which i'm already good at using.
User avatar
:wumpus:
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 3067
Joined: Tue Feb 10, 2004 12:53 pm
Location: The Netherlands
x 1

Re: source control for personal use

Post by :wumpus: »

jacmoe wrote: It's perfect for personal use. Does not need a server, is fast and flexible.
I second that.
The only drawback of GIT is the confusing stuff when something goes wrong (like a conflict). It starts to spew jargon and very terse error messages in that case. SVN is much nicer and user friendly when that happens.
So to a beginner to source control I can only recommend setting up a personal SVN server or using some repository...
Post Reply