Short HOWTO on using git for Samba development
idra at samba.org
Mon Jun 25 14:47:05 GMT 2007
On Mon, 2007-06-25 at 09:39 -0500, Gerald (Jerry) Carter wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> It's a little mind bending to swap from the centralized
> workflow to a distributed workflow. I'm not claiming to
> have figured it all out, but see comments below.
> > The only problem I see with git/bzr as the main tree is
> > that it seem to introduce a gatekeeper to the "official"
> > tree forcing all people to send around patches instead of
> > just committing.
> The beauty is that there is no master tree. Everyone just
> has their own tree. Currently the svn model force feeds
> changes to developers everytime you run "svn up". The upside
> is that there is an easy way to run top of tree. The
> downside is that people too often use "svn commit" as the
> save button. This is basically what svk tried to solve.
> Using a DSCM forces individual developers to pull others
> trees (which can be automated via cron jobs). But by the
> time the patches end up in the stable tree, they should
> be well tested and ready to go.
The only downside of this is forgetting, missing parts.
Your local tree works, but the patch you send does not as some of the
premises are missing. But I guess this happen seldom enough it is not a
good reason to hold up using a possibly better model.
> The other advantage of using something like git is that
> branch maintenance is reduced as individuals no longer
> have to checkin to multiple branches. The SAMBA_3_0_*
> branches we have in svn will simply go away. Of course,
> the patch release model doesn't go away, but the responsibility
Uhmm how this is true? I mean, in some case the code need to be
different between 2 trees, who will adjust the patches to apply
> > This work flow model is ok if a few people work on a
> > very isolated part of a tree, or on some experimental
> > features, but if you need to collaborate it may
> > make things more annoying.
> I don't see any change here. Instead of "svn commit && svn up",
> you have "git commit && git pull". This would also allow for
> more of a maintainer model than we have now as well.
Ahh so more people can commit on the same tree?
I didn't understand this, if that works then I guess we could end up
with the best mix between centralized and distributed development,
> Anyways, I'm not proposing any changes at this time. I plan
> to spend the next couple ofmonths using git for daily
> development. If things go well, there's a string possibility
> I will bring it up for discussion around the CIFS workshop
> in Sept.
Ok, but to really test the D in DSCM we need to be more than one and
test how the exchange of patches between individual trees works.
I will try it as well.
Samba Team GPL Compliance Officer
email: idra at samba.org
More information about the samba-technical