Why using git would be awesome for nexuiz

Developer discussion of experimental fixes, changes, and improvements.

Moderators: Nexuiz Moderators, Moderators

Postby tundramagi » Sat May 23, 2009 4:55 pm

divVerent wrote: a SMALL advantage to the few people who know git, and a huge disadvantage to people not knowing or not even having git installed.


That's what this discussion is all about: bringing a small advantage to the people who know git and to hell with the rest of the people who don't but know svn :).
tundramagi
Forum addon
 
Posts: 974
Joined: Sun Jan 04, 2009 4:53 pm

Postby [-z-] » Sat May 23, 2009 5:00 pm

Installation is hard:

aptitude install git-core

emerge --ask --verbose dev-util/git

yum install git-core

http://code.google.com/p/git-osx-instal ... list?can=3

http://code.google.com/p/msysgit/
[-z-]
Site Admin and Nexuiz Ninja
 
Posts: 1794
Joined: Mon Nov 13, 2006 12:20 am
Location: Florida

Postby some-guy » Sat May 23, 2009 5:05 pm

divVerent wrote:I only know the github.com one, and it plain sucks.

http://github.com/tex/fusecompress/tree/master

gitweb (eg: http://git.kernel.org/)
cgit (eg: http://cgit.freedesktop.org/)
some-guy
Member
 
Posts: 25
Joined: Tue May 12, 2009 1:28 am

Postby divVerent » Sat May 23, 2009 5:10 pm

[-z-] wrote:Installation is hard:

aptitude install git-core

emerge --ask --verbose dev-util/git

yum install git-core

http://code.google.com/p/git-osx-instal ... list?can=3

http://code.google.com/p/msysgit/


You don't even read my posts.

I was talking about e.g. computer pools where you don't have root rights. Compiling stuff from source often IS a pain.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby [-z-] » Sat May 23, 2009 5:14 pm

divVerent wrote:You don't even read my posts.

I was talking about e.g. computer pools where you don't have root rights. Compiling stuff from source often IS a pain.


Same boat for OSes that don't have svn installed by default.
[-z-]
Site Admin and Nexuiz Ninja
 
Posts: 1794
Joined: Mon Nov 13, 2006 12:20 am
Location: Florida

Postby some-guy » Sat May 23, 2009 5:30 pm

divVerent wrote:I was talking about e.g. computer pools where you don't have root rights. Compiling stuff from source often IS a pain.

<troll>It is easy, just extract a deb or rpm, export LD_LIBRARY_PATH and PATH. 8) </troll>
Let's try not to flame too much
some-guy
Member
 
Posts: 25
Joined: Tue May 12, 2009 1:28 am

Postby parasti » Sat May 23, 2009 5:32 pm

[-z-] wrote:I'm not sure how parasti's solution for revision numbers wouldn't work.

Heh, I wouldn't call that a solution, I just thought it was funny. :)
parasti
Alien
 
Posts: 110
Joined: Sun May 11, 2008 11:32 pm
Location: On the walls and the ceiling

Postby C167 » Sat May 23, 2009 6:06 pm

divVerent wrote:Revision numbers help a lot when people report bugs.

"I found this bug and am using revision 3891".

If you then know you fixed the bug in revision 3893, you simply tell him to update.

With these weird hashes, you'd have to manually check out this revision and verify that the bug is fixed in it.
Okay, thats fact
divVerent wrote:Anyway... another reason NOT to use git and hg is that they are weird tools that don't come preinstalled with distros, and thus are weird niche tools most people don't have and know how to use.
So, you think svn is preinstalled? how do you think that it is? I _never_ had a debian version (at least since sarge) that came with svn fresh from installation. _never_

divVerent wrote:According to Debian Popcon:
31% of users have subversion
26% of users have cvs
10% of users have git-core
4% of users have mercurial (hg)
2% of users have darcs
1% of users have tla (GNU arch)

According to Ubuntu Popcon:
16% of users have subversion
12% of users have cvs
4% of users have git-core
2% of users have mercurial
0.4% of users have tla (GNU Arch)
0.3% of users have darcs
Okay, here you have the numbers that tell you that x percent of $distro users that take part in popcon have VCS Y installed on their system. it does _not_ tell you, that the tools are part of the installation.

divVerent wrote:I think this alone is argument enough not to switch to git, as having to install a weird tool just to check out source of an open source application is really not the way how we should treat future developers. Maybe if git at least outpopularizes cvs (which is dying), we can think about switching to it.
No, it is not. Neither Debian nor Ubuntu have any vcs preinstalled. you _always_ have to install it.

divVerent wrote:Also think of users e.g. in computer pools who don't have root access there. They can't just "simply" install git, while it's very likely that they have svn preinstalled.
From my point of view, the computer pools in karlsruhe (germany) have both, git and svn preinstalled. And please tell me how many people that follow the nexuiz and dp repositories do that from some computer pools? and even if, just carry the tools on a usb stick, its not that hard and well known practice when having to work on a different computer without admin permissions.

divVerent wrote:And Mercurial, darcs, arch are RIGHT out.
Cause they are not preinstalled? Cause they don't use simple revision numbers?

divVerent wrote:I only know the github.com one, and it plain sucks.
Don't blame the systems you do not know. look at gitweb (perl driven, which is far better than viewvc and websvn in my eyes when installed properly), cgit (i think it is a tool that generates static html pages every time something changes) or the webfrontend from gitorius (which is not as commercial as github is).

Yea the github interface may suck in your eyes, but do not blame the other free systems. btw: gitweb comes with git, or is at least directly from the git sourcecode, and it is written in perl. and git provides good perl bindings, which also come with git. So rewriting some of the scripts should be not that big problem. and even if the scripts are not perl-based, there is not much to change.

To come to popilarity of VCS', like [-z-] pointed out, git is quite young and did not have the time to become better and more popular like svn had.

i had two scripts in a project that relyed on svn, and when changing to git, i could change them within some minutes.

Next point: commits like 6682 or 6165 simply do not happen, cause git forces you to enter at least a short comment.

Oh, by the way, don't get me wrong, i do not say to anyone that they should change to git, i just want to make people see what is different and could __possibly__ make their lives easier. For me, svn was a pain, and git is much better.
C167
Member
 
Posts: 29
Joined: Wed Oct 31, 2007 5:24 pm

Postby divVerent » Sat May 23, 2009 7:01 pm

C167 wrote:
divVerent wrote:Anyway... another reason NOT to use git and hg is that they are weird tools that don't come preinstalled with distros, and thus are weird niche tools most people don't have and know how to use.
So, you think svn is preinstalled? how do you think that it is? I _never_ had a debian version (at least since sarge) that came with svn fresh from installation. _never_


No, I just claim that people are very likely to already have svn installed, but not to have git installed. git is too new and weird for that.

divVerent wrote:According to Debian Popcon:
31% of users have subversion
26% of users have cvs
10% of users have git-core
4% of users have mercurial (hg)
2% of users have darcs
1% of users have tla (GNU arch)

According to Ubuntu Popcon:
16% of users have subversion
12% of users have cvs
4% of users have git-core
2% of users have mercurial
0.4% of users have tla (GNU Arch)
0.3% of users have darcs
Okay, here you have the numbers that tell you that x percent of $distro users that take part in popcon have VCS Y installed on their system. it does _not_ tell you, that the tools are part of the installation.


I did not claim that. Actually, the numbers show that they are NOT part of the installation. But they give a general idea about the popularity of the tools, and the probability that people have them already. And many already HAVE svn installed.

divVerent wrote:Also think of users e.g. in computer pools who don't have root access there. They can't just "simply" install git, while it's very likely that they have svn preinstalled.
From my point of view, the computer pools in karlsruhe (germany) have both, git and svn preinstalled.


And please tell me how many people that follow the nexuiz and dp repositories do that from some computer pools? and even if, just carry the tools on a usb stick, its not that hard and well known practice when having to work on a different computer without admin permissions.[/quote]

On Linux, binaries compiled on one distro typically don't work on another one.

divVerent wrote:And Mercurial, darcs, arch are RIGHT out.
Cause they are not preinstalled? Cause they don't use simple revision numbers?


No, but because they are even less popular than git. With these tools, we'd have a GUARANTEE that every user has to install them and learn about them ONLY for Nexuiz. Almost nobody has them installed at the moment.

Yea the github interface may suck in your eyes, but do not blame the other free systems.


I was referring to github because people were suggesting moving development over to that.

To come to popilarity of VCS', like [-z-] pointed out, git is quite young and did not have the time to become better and more popular like svn had.


And exactly that is a reason not to use it yet. It should first be used in more "low level" projects which require more programming background, e.g. Linux (already using it).

i had two scripts in a project that relyed on svn, and when changing to git, i could change them within some minutes.


So? I don't care. I refuse to change VCS "just because we can". Until now, no single reason was presented why we would GAIN from git (as all the advantages of git that were ever presented here also apply if using git-svn), but many reasons were presented why we would LOSE by using it.

Next point: commits like 6682 or 6165 simply do not happen, cause git forces you to enter at least a short comment.


So does svn. So? That was not the point.

The point was that short increasing numbers are very convenient for seeing whether someone has a change or not. Also, look at the bottom right corner of the darkplaces console. It shows:

darkplaces-nexuiz linux 18:28:03 mar 21 2009 8981:8982M release

The last number there is:
- the svn revision, if unchanged
- the range of svn revisions, if a selective "update" was done
- a "M" is appended if there are local changes

How does a git-hash tell you whether any previous change is in it? The compile date does not help there. Even if we would show the date of the most recent commit, it would not help, as it does not show if all previous commits were applied or not. The thing is, svn DOES show that.

Well, if you could provide a script that outputs a "short revision number" for git, maybe in the format:

YYYYMMDDNNN

where NNN is an increasing number of the commits of today.

The letter "M" is to be appended if it is locally modifed, or if not ALL commits before the most recently applied one are applied.

If you could do that, and also make a web frontend supporting such "revision numbers", we could use that and replace svnversion by it.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby [-z-] » Sat May 23, 2009 7:13 pm

In the same breath, the fact that git itself is a newer VCS, the projects (Nexuiz and git) can mutually benefit from this relationship. Why wouldn't they want to brag about a kick-ass video game that runs great on Linux using their system?


For the record, I'm against using github as a hosting solution if icculus.org already provides it without limits... unless github were to give Nexuiz an unlimited account free of charge.

GitHub really isn't as bad as you think it is divVerent, I've found it quite convenient in helping me get setup with git. It does half the work for you.
[-z-]
Site Admin and Nexuiz Ninja
 
Posts: 1794
Joined: Mon Nov 13, 2006 12:20 am
Location: Florida

PreviousNext

Return to Nexuiz - Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron