Page 1 of 3

SVN is dead, long live git!

Posted: 02 Nov 2010, 16:20
by cybersphinx
We have moved our repository from SVN to git. The main repository called "mainline" is at http://gitorious.org/warzone2100/mainline is at https://github.com/Warzone2100/warzone2100. It contains all the current branches, mainly "master" (what was "trunk" before) and 3.0.

There is a very short introductory wiki page at GitHowto.

Re: SVN is dead, long live git!

Posted: 02 Nov 2010, 17:53
by skriticos
That's absolutely great news! *starts cloning*

Re: SVN is dead, long live git!

Posted: 02 Nov 2010, 17:57
by effigy
What advantages does git have over SVN?

Re: SVN is dead, long live git!

Posted: 02 Nov 2010, 18:00
by JDW

Re: SVN is dead, long live git!

Posted: 02 Nov 2010, 18:22
by skriticos
I pulled the sources, installed the dependencies, ran ./configure (successfully) then make. It broke after the first few lines with "gcc: resource_lexer.lex.c: No such file or directory". Also there is some weird output from autorevision on the beginning. Attached log, any ideas?

Commit sha1 ID: aa48d4c0690c8f4115307375bf835bd8872da2ee
OS: Linux (ubuntu 10.10)

Re: SVN is dead, long live git!

Posted: 02 Nov 2010, 20:34
by Cyp
skriticos wrote:I pulled the sources, installed the dependencies, ran ./configure (successfully) then make. It broke after the first few lines with "gcc: resource_lexer.lex.c: No such file or directory". Also there is some weird output from autorevision on the beginning. Attached log, any ideas?

Commit sha1 ID: aa48d4c0690c8f4115307375bf835bd8872da2ee
OS: Linux (ubuntu 10.10)
Ignore the weird autorevision output.

When I build, I get this:
flex -oresource_lexer.lex.c ../../../lib/framework/resource_lexer.l
bison -y -d -oresource_parser.tab.c ../../../lib/framework/resource_parser.y
flex -ostrres_lexer.lex.c ../../../lib/framework/strres_lexer.l
bison -y -d -ostrres_parser.tab.c ../../../lib/framework/strres_parser.y

And you seem to get this instead:
: -oresource_lexer.lex.c resource_lexer.l
: -oresource_lexer.lex.c resource_lexer.l

I assume you didn't build with "make LEX=:" or anything like that... Maybe someone else can answer...

Re: SVN is dead, long live git!

Posted: 02 Nov 2010, 20:39
by Delphinio
"Easy to Learn"
hum... i think SVN was easier... for me :D.

Re: SVN is dead, long live git!

Posted: 02 Nov 2010, 20:48
by Cyp
Delphinio wrote:"Easy to Learn"
hum... i think SVN was easier... for me :D.
"Easy to Learn" is only listed as why Git is better than perforce, whatever perforce is. All the other reasons apply to why Git is better than SVN, though.

Re: SVN is dead, long live git!

Posted: 02 Nov 2010, 21:16
by cybersphinx
skriticos wrote:I pulled the sources, installed the dependencies, ran ./configure (successfully) then make. It broke after the first few lines with "gcc: resource_lexer.lex.c: No such file or directory". Also there is some weird output from autorevision on the beginning. Attached log, any ideas?
Could you compile SVN on that machine? I don't think anything has changed since then. See also LinuxCompileGuide.

Re: SVN is dead, long live git!

Posted: 03 Nov 2010, 00:41
by skriticos
cybersphinx wrote:
skriticos wrote:I pulled the sources, installed the dependencies, ran ./configure (successfully) then make. It broke after the first few lines with "gcc: resource_lexer.lex.c: No such file or directory". Also there is some weird output from autorevision on the beginning. Attached log, any ideas?
Could you compile SVN on that machine? I don't think anything has changed since then. See also LinuxCompileGuide.
Ah, yes. A "sudo apt-get install flex" did the trick. Thanks! Seems the configure script has some problems with the lexer. Maybe the AC_PROG_LEX part in the configure.ac needs some adjustment. Quick googling brought me to http://www.gnu.org/software/hello/manua ... grams.html , maybe that could be useful.

~

Re: SVN is dead, long live git!

Posted: 03 Nov 2010, 01:05
by skriticos
Cyp wrote:
Delphinio wrote:"Easy to Learn"
hum... i think SVN was easier... for me :D.
"Easy to Learn" is only listed as why Git is better than perforce, whatever perforce is. All the other reasons apply to why Git is better than SVN, though.
Perforce is a commercial revision control system. I know that Google is using it internally (ironically form a git intro video; from an answer to one of Linus's questions at Google Tech Talks - youtube :p).

There are some places where git might not be optimal, like in enterprizy environments in which you want to revision your entire Desktop. Perforce is kind of a hybrid between centralized and distributed revision control, so it fares in big binary blob situations better. If you have to ask though, it's probably not one of your problems.

For most everything else git is quite an excellent choice. It's the fastest around (fast meaning traversing the data structures, most of the operations on your local git repository are within the time frame of only very few seconds).

Also it's very well supported and has a large community.

Otherwise refer to the previous poster about the advantages, the link looks very good.

Re: SVN is dead, long live git!

Posted: 03 Nov 2010, 03:58
by Buginator
svn is far easier to understand / introduce to new people, but our repo just got too huge, and productivity was going down.
git is far harder to grasp, and has cryptic error messages. It does increase productivity though. Too bad there isn't a good GUI for it yet. Git-gui is minimal, tortoiseGit is unstable.
hg is more ... forgiving, and has a good GUI.

Wait, what was the question ? :lol2:

Re: SVN is dead, long live git!

Posted: 03 Nov 2010, 04:08
by Delphinio
Cyp wrote:
Delphinio wrote:"Easy to Learn"
hum... i think SVN was easier... for me :D.
"Easy to Learn" is only listed as why Git is better than perforce, whatever perforce is. All the other reasons apply to why Git is better than SVN, though.
Ive seen that, but i dont understand it anyway.
I know that i have to clone the mainline... aaaand pull to my os?
Create a reprository there and start commiting?... somehow... i dont know :lol2:.

-- Delphinio

Re: SVN is dead, long live git!

Posted: 03 Nov 2010, 08:56
by skriticos
For anyone coming from SVN, there is a good command crash course at http://git-scm.com/course/svn.html .

Re: SVN is dead, long live git!

Posted: 03 Nov 2010, 09:19
by mcdebugger
WOW! This is so great! The thing everybody waited for :)
Long live Git!