<br><br><div class="gmail_quote">On Sat Nov 29 2014 at 7:16:34 PM Alex Gaynor <<a href="mailto:alex.gaynor@gmail.com">alex.gaynor@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Donald Stufft <donald <at> <a href="http://stufft.io" target="_blank">stufft.io</a>> writes:<br>
<br>
><br>
> [words words words]<br>
><br>
<br>
I strongly support this PEP. I'd like to share two pieces of information. Both<br>
of these are personal anecdotes:<br>
<br>
For the past several years, I've been a contributor on two major projects using<br>
mercurial, CPython and PyPy. PyPy has a strong culture of in-repo branching,<br>
basically all contributors regularly make branches in the main repo for their<br>
work, and we're very free in giving people commit rights, so almost everyone<br>
working on PyPy in any way has this level of access. This workflow works ok. I<br>
don't love it as much as git, but it's fine, it's not an impediment to my work.<br>
<br>
By contrast, CPython does not have this type of workflow, there are almost no<br>
in-tree branches besides the 2.7, 3.4, etc. ones. Despite being a regular hg<br>
user for years, I have no idea how to create a local-only branch, or a branch<br>
which is pushed to a remote (to use the git term). I also don't generally<br>
commit my own work to CPython, even though I have push privledges,<br>
because I<br>
prefer to *always* get code review on my work. As a result, I use a git mirror<br>
of CPython to do all my work, and generate patches from that.<br>
<br>
The conclusion I draw from this is that hg's workflow is probably fine if<br>
you're a committer on the project, or don't ever need to maintain multiple<br>
patches concurrently (and thus can just leave everything uncommitted in the<br>
repo). However, the hg workflow seems extremely defficient at non-committer<br>
contributors.<br></blockquote><div><br></div><div>One way to come close to that using hg is to have your own clone that you never push to <a href="http://hg.python.org/cpython">hg.python.org/cpython</a> (e.g. cloning the Bitbucket clone of cpython or hosting on <a href="http://hg.python.org">hg.python.org</a> a personal clone). You can then specify the repo and branch on the issue tracker to generate your patch: <a href="https://docs.python.org/devguide/triaging.html#mercurial-repository">https://docs.python.org/devguide/triaging.html#mercurial-repository</a> . After that it's just like any other patch workflow for core devs. It's not quite as nice as maybe using named branches where you can just do a final hg merge/commit to get your changes committed, but if you're not going to commit your branches then you might as well get the automatic patch generation perk in the issue tracker rather than using git (unless there is some other git feature you use that you can't get in hg).</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
The seconds experience I have is that of Django's migration to git and github.<br>
For a long time we were on SVN, and we were very resistant to moving to<br>
DVCS in<br>
general, and github in particular. Multiple times I said that I didn't see how<br>
exporting a patch and uploading it to trac was more difficult than sending a<br>
pull request. That was very wrong on my part.<br>
<br>
My primary observation is not about new contributors though, it's actually<br>
about the behavior of core developers. Before we were on github, it was fairly<br>
rare for core developers to ask for reviews for anything besides *gigantic*<br>
patches, we'd mostly just commit stuff to trunk. Since the switch to github,<br>
I've seen that core developers are *far* more likely to ask for reviews of<br>
their work before merging.<br></blockquote><div> </div><div>Why specifically? Did you have a web UI for reviewing patches previously? Do you have CI set up for patches now and didn't before? What features did you specifically gain from the switch to GitHub that you didn't have before? IOW was it the "magic" of GitHub or some technical solution that you got as part of the GitHub package and thus could theoretically be replicated on <a href="http://python.org">python.org</a>?</div><div><br></div><div>-Brett</div></div>