<div dir="ltr">Hi all,<div><br></div><div>With help from Nathan and Kacper, the hgbb extension now has support for listing PRs, getting info on PRs by number, pulling in PRs to a local repo, and also issuing new ones.  The commands are:</div><div><br></div><div>hg bbprs  # lists</div><div>hg bbprs -i PRNUMBER # gets info on a PR</div><div>hg bbprs -p PRNUMBER # pulls changesets in</div><div>hg bbnewpr # creates a new PR</div><div><br></div><div>There's also a config option for the default "upstream" repo -- so if you set this in your .hg/hgrc file for your yt repo:</div><div><br></div><div>[bb]</div><div>upstream = yt_analysis/yt</div><div><br></div><div>then it should Just Do The Right Thing in most cases, including still only pushing to your repo, and allowing you to specify which repo to PR to.  For instance, I just made a new PR first to Nathan's yt repo:</div><div><br></div><div>hg bbnewpr -t "Slightly update README" -d "This slightly updates the README file." -r tip -n ngoldbaum/yt </div><div><br></div><div>and then to the main yt repo:</div><div><br></div><div>hg bbnewpr -t "Slightly update README" -d "This slightly updates the README file." -r tip<br></div><div><br></div><div>Note that I specified the revision to PR from -- this will default '.', so whatever the current state of the repo is.</div><div><br></div><div>IIRC, we're still sending hgbb out with the yt-supplemental repo, so if you just update your repo there and enable the extension this should work.</div><div><br></div><div>-Matt</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jan 4, 2015 at 5:37 PM, Matthew Turk <span dir="ltr"><<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Nathan,<div><br></div><div>Here's my script that successfully created a PR to your unrelated repo from my yt repo.</div><div><br></div><div><a href="http://paste.yt-project.org/show/5322/" target="_blank">http://paste.yt-project.org/show/5322/</a><br></div><div><br></div><div>I've contributed to hgbb in the past; I am thinking maybe I will suggest a few additional improvements based on the REST API.</div><div><br></div><div>-Matt</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jan 4, 2015 at 5:14 PM, Nathan Goldbaum <span dir="ltr"><<a href="mailto:nathan12343@gmail.com" target="_blank">nathan12343@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span>On Sun, Jan 4, 2015 at 3:05 PM, Matthew Turk <span dir="ltr"><<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hey Nathan,<div><br></div><div>Have you experimented with issuing PRs via the API?  I read the API a while back and it looks like it *might* be possible to issue PRs from a repo to a repo other than the one you forked from.</div></div></blockquote><div><br></div></span><div>I'm not sure.  According to the API docs, this is possible:</div><div><br></div><div><a href="https://confluence.atlassian.com/display/BITBUCKET/pullrequests+Resource#pullrequestsResource-POST(create)anewpullrequest" target="_blank">https://confluence.atlassian.com/display/BITBUCKET/pullrequests+Resource#pullrequestsResource-POST(create)anewpullrequest</a><br></div><div> </div><div>I've never tried it.</div><span><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>It would be pretty cool to expand the hgbb extension to do some neat stuff like "get me PR #whatever" or "issue PR from this to that" etc.</div><div><br></div></div></blockquote><div><br></div></span><div>That would be super useful.  Given that hgbb hasn't seen any updates since 2012 there are probably a number of places to make it nicer by making use of the new API.  You might want to engage with Georg Brandl about maintaining it?</div><div><br></div><div>That said, if you want to use version 2.0 of the bitbucket API, you might need to do some substantial updates to hgbb to port it over to the new API.</div><span><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div></div><div>-Matt</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Sun, Jan 4, 2015 at 2:41 PM, Nathan Goldbaum <span dir="ltr"><<a href="mailto:nathan12343@gmail.com" target="_blank">nathan12343@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div><div dir="ltr">Hi all,<div><br></div><div>I'm in the middle of putting together a changelog for the upcoming 3.1 release.</div><div><br></div><div>Just in case anyone needs to do this in the future, I've put together a quick script that interacts with the bitbucket REST API to generate a summary of all merged pull requests since the release of yt 3.0 on August 4th.</div><div><br></div><div>The script is here: <a href="https://bpaste.net/show/f86b1b4c0326" target="_blank">https://bpaste.net/show/f86b1b4c0326</a></div><div><br></div><div>My plan now is to use the output of this script to manually create a changelog for the docs and release announcement.</div><div><br></div><div>Hope that's helpful,</div><div><br></div><div>-Nathan</div></div>
<br></div></div>_______________________________________________<br>
yt-dev mailing list<br>
<a href="mailto:yt-dev@lists.spacepope.org" target="_blank">yt-dev@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
yt-dev mailing list<br>
<a href="mailto:yt-dev@lists.spacepope.org" target="_blank">yt-dev@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br>
<br></blockquote></span></div><br></div></div>
<br>_______________________________________________<br>
yt-dev mailing list<br>
<a href="mailto:yt-dev@lists.spacepope.org" target="_blank">yt-dev@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>