Re: Git vs SVN (was: Can we improve things?)

2007-09-09 Thread Steve Frécinaux

On Sat, 2007-09-08 at 22:23 +0200, Olav Vitters wrote:
> On Sat, Sep 08, 2007 at 04:47:31PM +0300, Kalle Vahlman wrote:
> > 2007/9/8, Olav Vitters <[EMAIL PROTECTED]>:
> > > On Sat, Sep 08, 2007 at 05:56:38AM -0400, Kevin Kubasik wrote:
> > > Let's summarize it as: I don't know any D-SCM :-) (only investigate by
> > > checking out docs)
> > > (but I am also not interested in learning a SCM)
> > 
> > Hopefully that doesn't translate "I don't know and I don't care"...
> 
> It translates to: I really care about not needing to learn an SCM.

You can use git as you use svn currently.
Just remember about git pull/commit/push and you're done.

> Take for example the output of 'git'
>   push  Update remote refs along with associated objects

This is just some terminology. A ref (reference) is a generic name for
tags and branches. 

> > > For me, I consider the "you don't change directories for each branch you
> > > make" a drawback. I find directories as branches easier to understand (I
> > > hated this in CVS).
> > 
> > There's some tools to visualize the branch history in git, which
> > includes more information than just "this is a branch".

Such a tool is gitk which is really worth looking.

Note that I was also reluctant to use more than one branch for a
checkout directory, because I found it confusing and I was afraid about
build issues. But in practice everything works fine, and stuff like
ccache just makes it better. You are not likely to change many files by
checkouting another branch in typical usage (ie, closely related
patches), and nothing retains you from having a directory for each major
branch (say, gnome-2-16 and gnome-2-18).

Also, using several branches in a single directory allows convenient
things like saying 'oh, what I just coded doesn't belong to that current
patch, let's put it in another branch!'. Once you've created a branch
and commited your patch, you can rebase it where you want in the tree by
checkouting the relevant commit (for instance, the HEAD branch of the
remote repository) and applying the last commit on top of it (hopes it's
not too cryptic). Lastly it doesn't need you to have several copies of
the history, thus lowering disk usage.

But as I said, nothing forces you to have more than one branch per
checkout directory, and multiple directories, as you currently do with
SVN.

> > > > mkdir projdir && cd projdir
> > > > git clone ssh://[EMAIL PROTECTED]/git/coolproject/kkubasik
> > > > git branch newcoolfeature
> > > > git checkout newcoolfeature
> > >
> > > I don't like this checkout step.
> > 
> > You can merge it with the branch command if you like:
> > 
> >   git checkout -b newcoolfeature
> 
> It is not about one command. One dir per branch is perfectly
> understandable for me. 

Then you just do not create a new branch, commit when you're done on the
master branch, and push the patch once it is ready, or attach it to a
bugzilla bug using git-send-bugzilla [1]. Note that git allows you to
"amend" a commit, ie fixing it if you notice it is broken in some way,
as long as you don't have pushed it (very useful).

Also, something I do very frequently, is to have a branch for the change
where I commit often, and then "squash" it onto one single patch on the
master branch (equivalent to svn trunk) using git-merge --squash. This
allows you to have an history of your patch life, thus spotting
regressions easily and being able to get back to a previous version of
the patch. This is another advantage of being able to have several
branches in a single commit directory, as I'm pretty sure you already
ran into that issue using SVN...

> Equivalent of git- is not svn, it is svn-. I mean that
> there is too much stuff that gets in the way.

Equivalent of svn  is git . The 'git' command is meant to be
the actual frontend (while git-* are mostly lower level commands, which
allow useful things like making your own scripts to do several things
automatically, as client-side hooks and such).

Well, git  presents 140 commands here, but it's a bug in the bash
completion script, since git --help only gives 30 commands. svn --help
gives more commands than that.

> > And furthermore, looking at git commands is absolutely the worst way
> > to start learning git. Specially when coming from SVN, git commands as
> > they are will make no sense at all. But, when you read up and look at
> > few pretty pictures about how git works (like in
> > http://eagain.net/articles/git-for-computer-scientists/ ), they start
> > to make sense and you'll see how they turn SCM from just storing
> > snapshots of file states to actual tool for managing a project and
> > it's changes.
> 
> I didn't have to learn SVN.

You don't have to learn git either, it mostly depends on what you're
going to do with it. On my own, I began with the usual combo
clone/pull/commit/push, and only learnt about branches and stuff later.
But it's sure that understanding how things work under the hood helps,
as for any other (D)SCM. Yeah

Re: Git vs SVN (was: Can we improve things?)

2007-09-09 Thread Steve Frécinaux

On Sat, 2007-09-08 at 12:48 -0400, Behdad Esfahbod wrote:

>   - Move translations out of modules into a new module dedicated to
> translations of all GNOME modules.  Fixes many build-broken issues but
> has many more issues.

That's how KDE guys do, I think. IMHO it has the following advantages:

- what takes the longest while building a new checkout are translations 
  of strings and help files.
- translator work doesn't get in the way of developers, and the other 
  way.
- most developers don't understand much at how the po/ and help/
  directories work, which makes those broken more often than never.

___
foundation-list mailing list
foundation-list@gnome.org
http://mail.gnome.org/mailman/listinfo/foundation-list


Re: Git vs SVN (was: Can we improve things?)

2007-09-09 Thread Steve Frécinaux

On Sat, 2007-09-08 at 09:41 -0700, Sanford Armstrong wrote:

> I simply meant that less people are familiar with D-SCM tools and that
> they are somewhat harder for a newbie to learn than C-SCM tools.

You're mistaken. Actually, it's not harder to learn a DSCM than a
regular centralised one. What makes it harder to learn for *regular* SCM
users is that a few concepts and way-to-do-things are different.

I explained how to use git to a friend of mine (because he has no server
available, and it was easier for him to backup everything since he only
has to burn the checkout directory with the .git directory in it). He
was able to get it working fastly enough. Faster than I was, in fact,
due to my inherited CVS and SVN habits.


___
foundation-list mailing list
foundation-list@gnome.org
http://mail.gnome.org/mailman/listinfo/foundation-list


Re: Git vs SVN (was: Can we improve things?)

2007-09-09 Thread Steve Frécinaux

On Sun, 2007-09-09 at 13:24 +0200, Steve Frécinaux wrote:
> Then you just do not create a new branch, commit when you're done on the
> master branch, and push the patch once it is ready, or attach it to a
> bugzilla bug using git-send-bugzilla [1]. Note that git allows you to
> "amend" a commit, ie fixing it if you notice it is broken in some way,
> as long as you don't have pushed it (very useful).

[1] http://tw.apinc.org/weblog/2007/01/16#using-git-with-bugzilla

___
foundation-list mailing list
foundation-list@gnome.org
http://mail.gnome.org/mailman/listinfo/foundation-list


Re: Can we improve things?

2007-09-12 Thread Steve Frécinaux

> On Thu, 2007-09-13 at 04:00 +1000, Jeff Waugh wrote: 
> [...]
> > It's also related to *why* people
> > want to be on Planet GNOME -- for instance, it sucks that some people make
> > blogs solely to be published on Planet GNOME.
> 
> Curiously, why does that suck ?
> 
> Not everybody likes to make a hobby out of writing a personal journal, some 
> people who do not share this journaling hobby otoh do have interesting 
> things to post to a planet with a specific audience.
> 
> How are those people's blogs less valuable ?

I'd even go one step further saying than most people care about gnome
and gnome apps, and not about one's cats and the other's culinar
niceties.

There are too many posts everyday on gnome, as highlighted by a few
persons in this thread. I don't think limiting access would be of any
help, but maybe it's time to (somewhat) focus the editorial line or our
planet, for instance by only showing posts tagged "gnome" by their
writers.

As an alternative, we could even have two planets: one about gnome, and
one about peoples. 

Because despite Gnome is people, I think that for most people, Planet
Gnome is primarily about Gnome.

___
foundation-list mailing list
foundation-list@gnome.org
http://mail.gnome.org/mailman/listinfo/foundation-list


Re: How about creating addons.gnome.org

2010-08-10 Thread Steve Frécinaux

On 08/08/2010 02:55 PM, Jose Aliste wrote:

Hi All,

I sent this to the gnome-web-list but there was instructed to send it
here, so it can be more widely discussed (and maybe also in the next
gnome foundation meeting)

The idea is simple (but long and complex to implement). I would love
to have a site addons.gnome.org, so we can have nice database with
plugins and other addons for desktop apps. The idea would be to
"borrow" ideas from the addons site of mozilla and it should support
different types of add-ons (for instance, for gedit, we have plugins,
language files, style-themes to name a few).

So what do you think about this?


This is an idea the gedit team had for some time but never realized due 
to lack of time resources.


The nice thing here is that with the recent trend toward using a single 
library for several apps the interaction code only needs to be written 
and debugged once...


Anyway I'm a bit frightened by the potential stability issues implied by 
such a "blessed" open plugin repository.

___
foundation-list mailing list
foundation-list@gnome.org
http://mail.gnome.org/mailman/listinfo/foundation-list