Live data from Hacker News

Python now uses Mercurial

hg.python.org

81–90 of 114 posts

Re: Python now uses Mercurial

#81
post #48
post #11

Earlier quoted context omitted.

In all fairness, I'd like to point out it's quite possible to make Git work on Windows. If one can adjust the path, it is also reachable through the same command line Windows folks are used to.

The last time I looked, Git on Windows required you use a different shell than the native Windows command shell (not that I'm a fan of the crappy Windows shell, but it does make it more awkward and feels less "native").

Most people that use SVN on Windows seem to use TortoiseSVN instead of a command line.

Similarly, most Windows developers that I encounter who run Git just use TortoiseGit. (And TortoiseHg for Mercurial for that matter).

The whole "Git on Windows" issue? Completely overblown.

Re: Python now uses Mercurial

#82

Earlier quoted context omitted.

You know, comments like that disparage by implication anyone who finds value in PHP or SVN. That's a big chunk of the development community. It tears people apart rather than bringing them together. Maybe you should redirect your energy from snark and criticism toward something more constructive.

You know, comments like that disparage by implication anyone who finds value in PHP or SVN. Maybe if we disparage them enough they'll switch to a real programming language and version control tool.

Why is PHP not a "real" programming language? Why is subversion not a "real" version control tool?

Yes, I've programmed in PHP and know it has some downsides, and that it has some big warts that are ugly, but it is a real programming language. Real projects are built with PHP.

Now I understand the frustration with Subversion, but it still is a version control system that is used in the real world. Would I love it if everyone decided to move away from SVN and onto something more capable like Git or Mercurial, yes, but that doesn't mean we have to belittle people who are using those tools.

Re: Python now uses Mercurial

#83
post #47
post #40

Earlier quoted context omitted.

As someone who hasn't used Hg before, I'm curious -- what are some examples of Git commands that are better executed in Hg?

I use both git and hg - and like both of them (though I have more experience with hg). Github is far and away the best hosted distributed version control service, with a constant stream of innovative features for open-source developers over the last 2 years. Git has had two main drawbacks in my mind. 1) Much of it is implemented as script commands, and I think it still requires you run an emulated shell in Windows to…

Git requires that you do a "git add" before doing a "git commit". Mercurial assumes that you want to add all the changed files in your repo (or you can list the files needed in a commit).

This is one of the features of git I most appreciated when I started using it (my first VCS was Mercurial).

I get distracted easily. While I'm rooting through the code base trying to do something, I'll notice something else to fix. And something else. And something else. By the time I've finished whatever I was trying to do in the first place, I've got 5 or 6 different things I've actually done.

In git, it's trivial to split these up - `git add` separate files, or `git add -p` when you only want to stage some of the changes in a file. This leads to cleaner commits.

I've heard people decry this, saying that you should be testing each individual state of your codebase. git being the powerful sonuvabitch it is, you can do that:

* `git stash --keep-index` will store away all of your modifications, other than the ones you're getting ready to commit. Run your tests, commit, `git stash pop`. * Checking out different revisions and running tests isn't a bad option, either, whether you use `git bisect` or do it manually. With the amazing power of `git rebase -i`[0], you can easily fix any little issues without disrupting other commits.

[0]: http://schacon.github.com/history.html

You will change their SHA1 sums, so they'll become different commits. This isn't a problem, though, if you haven't pushed them up to a shared repository.

Re: Python now uses Mercurial

#84
post #62
post #8

It's interesting that each major web language seems to have paired off with a different VCS: - Python + Hg - Ruby + Git - PHP + ...SVN?

There is a reason Python is paired with Mercurial. Hg is written in Python. As for why Mercurial was chosen over Bazaar, it came down to popularity. As the core developer survey shows, hg was preferred over bzr.

That's not really the reason, and I believe it's even stated in the PEP.

Re: Python now uses Mercurial

#85
post #63
post #8

It's interesting that each major web language seems to have paired off with a different VCS: - Python + Hg - Ruby + Git - PHP + ...SVN?

Java?

Java is a specification, the Oracle JRE/JDK is not open source. The OpenJDK uses Hg. When they talk about Python they are talking about the cpython or main implementation. Pypy, another Python implementation uses Hg as well

Re: Python now uses Mercurial

#86
post #26
post #7

Interesting to note that bzr got close to mercurial in the votes in spite of this being bzr version 1. Version 2 is much improved in speeds (comparable to git/hg).

I myself am quite partial to bzr espeically since tortoise-bzr uses my favorite diff tool by default http://doc.bazaar.canonical.com/explorer/en/guide/qbzr/qdiff... I would be interested to know about other's impressions of bazaar and why most people seem to share the same sentiment towards it as those at pycon that year While no one said they did not want bzr chosen, no one said they did either.

I did detailed evaluation of bzr, git, hg and svn. And found bzr to be good too (at least equally good). Most comparisons I found online have been too old to be using older version of bzr which was very slow in comparison.

I am still unclear on the impact of a "branch" being the key concept in bzr as opposed to "repository" in git/hg.

Git's support on Windows has improved considerably (although I could not find a good GUI). So I rather find not much reason to use Hg!

Re: Python now uses Mercurial

#88

Earlier quoted context omitted.

You know, comments like that disparage by implication anyone who finds value in PHP or SVN. Maybe if we disparage them enough they'll switch to a real programming language and version control tool.

Why is PHP not a "real" programming language? Why is subversion not a "real" version control tool? Yes, I've programmed in PHP and know it has some downsides, and that it has some big warts that are ugly, but it is a real programming language. Real projects are built with PHP. Now I understand the frustration with Subversion, but it still is a version control system that is used in the real world. Would I love it if…

PHP is the Walmart of languages, everyone uses it because everyone uses it, but nobody really has anything _good_ to say about it.

Re: Python now uses Mercurial

#89

Earlier quoted context omitted.

PHP + ...SVN? Gotta say, they deserve each other.

You know, comments like that disparage by implication anyone who finds value in PHP or SVN. That's a big chunk of the development community. It tears people apart rather than bringing them together. Maybe you should redirect your energy from snark and criticism toward something more constructive.

Oh, geez. Lighten up.

Re: Python now uses Mercurial

#90
post #33
post #3

But why are they using Mercurial and not Git? I want to what are the advantaged for them to choose Hg.

I find the way your phrase that question interesting. Git and Mercurial are nearly identical in terms of functionality, to the point that converting back and forth between them is pretty trivial. (Example: here's Git's repository in Mercurial https://mirrors.kilnhg.com/Repo/Mirrors/From-Git/Git ) The only real difference between the two are the ecosystems. Mercurial, being written is Python, is very portable and easi…

Wow! Nice to meet you. I wish my work was as interesting as yours.
Post reply on HN