Offline Version Control

A place for Ogre users to discuss non-Ogre subjects with friends from the community.
Post Reply
User avatar
DanielSefton
Ogre Magi
Posts: 1235
Joined: Fri Oct 26, 2007 12:36 am
Location: Mountain View, CA
x 10
Contact:

Offline Version Control

Post by DanielSefton »

A disadvantage of developing closed-source software is that you miss out on the version control features of sites like sourceforge, especially viewvc/trac.

I've looked at solutions like Git, Mercurial and Bazaar, but I'm still confused which is what, how they work, what they offer etc. Apparently SVN can be used offline too e.g. SVK.

Does anyone here use offline version control, if so, can you offer any advice/recommendations?

Thanks.
User avatar
madmarx
OGRE Expert User
OGRE Expert User
Posts: 1671
Joined: Mon Jan 21, 2008 10:26 pm
x 51

Re: Offline Version Control

Post by madmarx »

I use bazaar, but I got very specific need (biheaded source control on sources...).
There are things that I dislike on it, but on the average it's enough for my needs.
What I don't like with bazaar is that it tries to add everything at first, and instead of specifying the types that you want to track (.h/.cpp), you must put those that you don't want to track : a real assle when you got more than 5000 files with names like 000231, or 12149, recreated at each compile ...
Git was not enough good for my needs (which are very specific as I said).
I don't know the others.
Tutorials + Ogre searchable API + more for Ogre1.7 : http://sourceforge.net/projects/so3dtools/
Corresponding thread : http://www.ogre3d.org/forums/viewtopic. ... 93&start=0
reptor
Ogre Magi
Posts: 1120
Joined: Wed Nov 15, 2006 7:41 pm
Location: Finland
x 5

Re: Offline Version Control

Post by reptor »

Subversion. I use it on Linux directly from the Eclipse IDE, and have also used the kdesvn program to control it.

And, while I have not done this (yet), I believe you can rather easily set up Trac to work locally on your computer.
User avatar
johnhpus
Platinum Sponsor
Platinum Sponsor
Posts: 1186
Joined: Sat Apr 17, 2004 2:49 am
x 3

Re: Offline Version Control

Post by johnhpus »

I used subversion on my computer, locally, for a while before I researched commercial hosting and saw how affordable it can be. Just install the SVN server software, configure it not to accept remote connections, and you're all set.
User avatar
Klaim
Old One
Posts: 2565
Joined: Sun Sep 11, 2005 1:04 am
Location: Paris, France
x 56
Contact:

Re: Offline Version Control

Post by Klaim »

The problem with local subversion repository is that it's harder to commit later to another server (but it's possible).
The long term plans of Subersion project is to add an hybrid distributed/centralized VC model so it will be more interesting in the (far?) future.

I think i would try git if it had a tool like TortoiseSVN to make it easier for non-programmer people (like a lot of artists for example).
User avatar
DanielSefton
Ogre Magi
Posts: 1235
Joined: Fri Oct 26, 2007 12:36 am
Location: Mountain View, CA
x 10
Contact:

Re: Offline Version Control

Post by DanielSefton »

Thanks for the pointers. :)

In general SVN seems the way to go. Like Klaim said, the problem with Git, Bazaar etc. is that they aren't very intuitive to use - mostly being console-based. While I can cope with that, it's a bit like managing your project in the dark. Plus I've heard Git is a pain to run on Windows, not sure about the others.

Setting up some kind of intranet was something I had in mind, indeed with installing something like trac. But now I've found quite a few nice solutions for SVN server. I don't know why I didn't search that before. :P

Anyway, it's interesting to know what people use - there's surprisingly little useful discussion about it on the net.
CABAListic
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 2903
Joined: Thu Jan 18, 2007 2:48 pm
x 58
Contact:

Re: Offline Version Control

Post by CABAListic »

Actually, I found bzr's console tools way superiour to svn's, in that tasks I regularly do are much easier done. Of course, svn has nice GUI tools (at least on Windows), but from a purely console-driven point of view, I prefer bzr. Also, to use bzr locally you don't need to setup any server, which I think is nice.
User avatar
tuan kuranes
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 2653
Joined: Wed Sep 24, 2003 8:07 am
Location: Haute Garonne, France
x 4
Contact:

Re: Offline Version Control

Post by tuan kuranes »

Simplest way to do local solo versionning I found on windows dev machine is that tortoiseSVN let you create local repository, wihtout need of any SVN server running:

http://thinkinging.com/2007/04/12/creat ... rtoisesvn/

(you can migrate it just moving the repository files, you can even send the repository to someone else, etc.)
(otherwise git tools is growing on windows too : http://code.google.com/p/gitextensions/ )
User avatar
Klaim
Old One
Posts: 2565
Joined: Sun Sep 11, 2005 1:04 am
Location: Paris, France
x 56
Contact:

Re: Offline Version Control

Post by Klaim »

Interesting feature, I'll have to take a closer look, thanks! :)

CABAListic> Is Bazaar complete enough for a serious project? I don't know the main differences between mercurial, bazaar and git.
CABAListic
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 2903
Joined: Thu Jan 18, 2007 2:48 pm
x 58
Contact:

Re: Offline Version Control

Post by CABAListic »

@Klaim: I don't know, what would you consider complete? I'm not aware of any feature that svn has over bzr, but I do know at least one which bzr has over svn (which is true file renaming). According to the bazaar website, it's used by MySQL and others.
In any case, bzr and svn have made some differing design decisions far as I can tell, so ultimately it's a matter of taste. I would say that bzr is preferable in non-centralised development environments, whereas svn is more widely known and definitely has nicer tools.
hpesoj
Halfling
Posts: 99
Joined: Fri Dec 07, 2007 8:47 pm
Location: Bristol, UK

Re: Offline Version Control

Post by hpesoj »

Have you seen Origo? They are currently hosting my closed source project, and my experience with them so far has been fantastic. Perhaps there are issues that I haven't noticed, the service they offer really does seem too good to be true. The only issue I can figure is if they decide to stop hosting projects, but their FAQ specifies that users will have time to migrate in the unlikely event of this happening. Definitely check them out.

http://www.origo.ethz.ch/
Image
User avatar
Chris Jones
Lich
Posts: 1742
Joined: Tue Apr 05, 2005 1:11 pm
Location: Gosport, South England
x 1

Re: Offline Version Control

Post by Chris Jones »

I use SVN for my final year project at uni. I have the repository on my data stick which i can take home/to uni which works really well. I don't think its too hard to move the repository later on if you need to move it to a server.
User avatar
nikki
Old One
Posts: 2730
Joined: Sat Sep 17, 2005 10:08 am
Location: San Francisco
x 13
Contact:

Re: Offline Version Control

Post by nikki »

git FTW!
User avatar
Nauk
Gnoll
Posts: 653
Joined: Thu May 11, 2006 9:12 pm
Location: Bavaria
x 36
Contact:

Re: Offline Version Control

Post by Nauk »

I also had a closer look recently and bazaar seems to have definately the richer file options like Cabalistic said (delete rename etc) and there is a TortoiseBZR.
Post Reply