[oe] Reconsidering the work flow and how the SCM system fits in
rpurdie at rpsys.net
Tue Mar 11 17:15:33 CET 2008
On Tue, 2008-03-11 at 17:39 +0200, Paul Sokolovsky wrote:
> On Tue, 11 Mar 2008 13:44:12 +0000
> Richard Purdie <rpurdie at rpsys.net> wrote:
> Hopefully "git pull" and "git diff" do not need any documentation. But
> the fact that "git checkout file.ext" actually reverts a file is not
> obvious at all.
What did you expect it to do?
> Or let's have a look at "git commit --all": "Tell the
> command to automatically stage files that have been modified and
> deleted, but new files you have not told git about are not affected."
> So, it's all, but ... not all at all. And git is full of such quirks.
No argument from me. It has quirks, you get used to them...
> > git
> > ---
> > * Most likely to to be installed on a given newcommer's machine
> On a newcomer's machine, nowadays dash is installed instead of the real
> shell, not git or something of that kind.
This amounts to trolling and I'm really getting sick of it. We're not
talking about shells, we're talking about which distributed scm is the
user most likely to have some experience of and which is most likely to
aleady exist on their machine. But you know this.
> > * Most likely to have been used before by a newcommer
> > * Has lots of documentation
> Yeah, every user, once hit the fact that git is not usable out of the
> box, spends some small time (read: possibly incompletely, or
> incorrectly) to figure out how to do trivial things with it, and then
> posts that to his blog, for everyone's confusion.
Agreed there is a ton of confusion out there about git. There is good
> > * Has a lot of users
> > * Powerful web and visualisation tools
> > * Very actively growing
> > [I've not listed the other git features since I don't know how they
> > compare to hg, help?]
> * Written as the set of hacks targetted at specific development model,
> without much design thought. Remember CVS history? "What's now CVS is
> used to be a set of shell scripts around RCS which gradually were
> rewritten in C." That's what git now is.
I can buy that...
> * Started by people (and supposedly continued by people with alike
> attitudes) who known to be change punks having a bible at
> Documentation/stable_api_nonsense.txt giving them indulgence to make
> changes for the purpose of changes, with things like "consistency" and
> "interface contract" meaning nothing to them. So, git 1.5 is muuuch
> better than 1.4? Who know what will be with 1.6?
... but this sounds like a boulder on your shoulder weighing you down.
The linux kernel Documentation/stable_api_nonsense.txt has little to do
with git and our choice of it as an SCM. That document was GregKH
propaganda not Linus. There are parts of the kernel which have absolute
API (syscalls) and there are parts which don't (function names). Its all
documented and well known about.
What matters is whether upstream are likely to break the on disk format
of git in the future or the data interchange formats. I suggest they are
not likely to do so, at least not in incompatible ways.
> * Designed to be an SCM from the start, not a "stupid content tracker".
> * Written consistently in the sane language
> * Has consistent interface for extension using plugins
> * Thought to be easy and nice to use. Well-known command core, many
> other usability features here-and-there (like local integer incrementing
> revision numbers (so if you remember that some change has rev 20, you
> know how to diff that with 2 revs before without searching for
> anything or remembering funky rev ref syntax)).
> * Cross-platform (not "soon" or "almost", but by the design)
> * "git with a human face"
> * Big names: Mozilla, etc.
ok, thanks for the list. Just for reference a lot of these reasons are
why we went for monotone...
> My usecases for hg are simple:
> 1. Default SCM for local projects (had replaced SVN)
> 2. Replacement for incremental archiver which appears to not exist for
> unix. For example, I use it to lazily track changes to /etc on my
> 3. Rich-man's quilt replacement.
Can you elaborate on its usage as a quilt replacement? Is each stacked
patch a commit?
> A repo can be cloned by a mere dir copy.
So can git.
> Changes can be easily propagated from "master".
So can git.
> Branch are something within the same repo.
Hmm, not sure what you mean here.
> Dunno if it's "checkout" (classical) or "switching" style (like git, I
> personally keep finding this confusing - kernel folks simply don't have
> much choice except for such mess with their datasize).
I'm told its checkout style.
> To my knowledge, neither git not hg record merge/cherypick history
Merge history is stored in git, rebase and cherrypick is not. The nature
of a rebase/cherrypick operation precludes history by design really.
> > Another thing we should consider is whether something is likely to
> > improve over time. This is something we hoped would happen with
> > monotone and whilst it has to an extent, it hasn't as much as we'd
> > have liked. Personally I think someone will write a nice frontend
> > (porcelain) for git eventually but we don't have a guarantee of that.
> Isn't there bunch already? Or do you hint that they still can't get it
I've not tried them since I didn't know about them although admittedly
I'd not looked. Its nice to know people are addressing the issue.
More information about the Openembedded-devel