Am Mittwoch, 23. September 2009 13:23:43 schrieb Sergiu Ivanov: > Hm, I thought there would be more differences than that. Although > from your discussion with Arne last summer I could only suppose that > git and Mercurial are very similar in many approaches.
They were written for the same usecase: Distributed code collaboration. So it's natural that they are similar, but there still are significant differences in philosophy and thus in the default workings of the commands. Example: Mercurial: All history is shared, except if you explicitely declare it otherwise. Git: You should specify which branch to push and pull. Mercurial: Make it easy to use and encapsulate dangerous functonality in extensions. Git: Make it super-powerful and expose all functionality to each user. Mercurial: Offer default shorthands and aliases for commands. Git: Users can write their own shorthands and aliases. Example of the last: Update/checkout the latest revision of the whole repo: - Mercurial: hg up - Git: git checkout . And for git users Mercurial offers the alias "hg checkout" which can be abbreviated to "hg ch", as long as this abbreviation is unambigous - a rule which is true for all commands. This also means, that scripts should always use the long version, because extensions can add commands, so an abbreviation can become ambigous when you add an extension (everything has its downside :) ). Best wishes, Arne --- --- --- --- --- --- --- --- --- Unpolitisch sein heißt politisch sein, ohne es zu merken. - Arne (http://draketo.de) --- --- --- --- --- --- --- --- ---
signature.asc
Description: This is a digitally signed message part.