Re: [Wikitech-l] Moving a GitHub Pull Request to Gerrit Changeset manually

2013-05-22 Thread Yuvi Panda
Bump! This is now fully automatic! Enabled for the following repos: qa/browsertests extensions/PostEdit extensions/GuidedTour extensions/GettingStarted extensions/EventLogging extensions/MobileFrontend (I've asked the people who are major contributors to the repos and gotten agreement to turn it

Re: [Wikitech-l] Moving a GitHub Pull Request to Gerrit Changeset manually

2013-05-22 Thread Steven Walling
On Wednesday, May 22, 2013, Yuvi Panda wrote: Bump! This is now fully automatic! Enabled for the following repos: qa/browsertests extensions/PostEdit extensions/GuidedTour extensions/GettingStarted extensions/EventLogging extensions/MobileFrontend (I've asked the people who are major

Re: [Wikitech-l] Moving a GitHub Pull Request to Gerrit Changeset manually

2013-05-22 Thread Tyler Romeo
def log(s): print s :D Seriously, though, this is pretty awesome. Also good to see the sh module getting some use. *-- * *Tyler Romeo* Stevens Institute of Technology, Class of 2015 Major in Computer Science www.whizkidztech.com | tylerro...@gmail.com On Wed, May 22, 2013 at 4:45 PM,

Re: [Wikitech-l] Moving a GitHub Pull Request to Gerrit Changeset manually

2013-05-22 Thread Yuvi Panda
On Thu, May 23, 2013 at 3:17 AM, Tyler Romeo tylerro...@gmail.com wrote: def log(s): print s :D The entire codebase could use some cleanup :) Also I had replaced the prints with appropriate logging sometime in the past, but changed it back because lazyness. Seriously, though, this is

Re: [Wikitech-l] Moving a GitHub Pull Request to Gerrit Changeset manually

2013-03-26 Thread Platonides
This should work: WIKIMEDIA_REPOS=/path/where/you/have/your/clones REPO=$1 # qa/browsertests PULL=$2 # https://github.com/brainwane/qa-browsertests.git TEMP=`mktemp --tmpdir -d pull-request.XXX` git clone --reference=$WIKIMEDIA_REPOS/$REPO $PULL $TEMP cd $TEMP if [ ! -f .gitreview ]; then

Re: [Wikitech-l] Moving a GitHub Pull Request to Gerrit Changeset manually

2013-03-25 Thread Yuvi Panda
On Tue, Mar 19, 2013 at 3:53 AM, Matthew Flaschen mflasc...@wikimedia.org wrote: Also, force-removing the rebase-apply directory is worrisome. I think most or all of the rebase commands have --abort options. If a rebase is in progress, can you exit and prompt the user to finish or abort,

Re: [Wikitech-l] Moving a GitHub Pull Request to Gerrit Changeset manually

2013-03-18 Thread Željko Filipin
On Sat, Mar 16, 2013 at 1:11 AM, Yuvi Panda yuvipa...@gmail.com wrote: So I tried converting https://github.com/wikimedia/qa-browsertests/pull/1 into a Gerrit changeset (https://gerrit.wikimedia.org/r/#/c/54097/) , and was mostly successful. Thanks. :) Željko

Re: [Wikitech-l] Moving a GitHub Pull Request to Gerrit Changeset manually

2013-03-18 Thread Tyler Romeo
Couldn't you also just fetch the pull request, rebase it on master with the -i flag, and set the commits to squash? *--* *Tyler Romeo* Stevens Institute of Technology, Class of 2015 Major in Computer Science www.whizkidztech.com | tylerro...@gmail.com On Mon, Mar 18, 2013 at 2:22 PM, Željko

Re: [Wikitech-l] Moving a GitHub Pull Request to Gerrit Changeset manually

2013-03-18 Thread Yuvi Panda
On Tue, Mar 19, 2013 at 12:37 AM, Tyler Romeo tylerro...@gmail.com wrote: Couldn't you also just fetch the pull request, rebase it on master with the -i flag, and set the commits to squash? That is what I first did. Too manual for my tastes :) In this case I only have to deal with one edit

Re: [Wikitech-l] Moving a GitHub Pull Request to Gerrit Changeset manually

2013-03-18 Thread Tyler Romeo
On Mon, Mar 18, 2013 at 3:10 PM, Yuvi Panda yuvipa...@gmail.com wrote: That is what I first did. Too manual for my tastes :) In this case I only have to deal with one edit operation (for the commit message), rather than a s/pick/s/ for rebase -i. This was a first cut from about 5 mins of

Re: [Wikitech-l] Moving a GitHub Pull Request to Gerrit Changeset manually

2013-03-18 Thread Matthew Flaschen
On 03/15/2013 08:11 PM, Yuvi Panda wrote: Hello! So I tried converting https://github.com/wikimedia/qa-browsertests/pull/1 into a Gerrit changeset (https://gerrit.wikimedia.org/r/#/c/54097/) , and was mostly successful. It is also a relatively painless process - at least for single commits.

Re: [Wikitech-l] Moving a GitHub Pull Request to Gerrit Changeset manually

2013-03-18 Thread Tim Landscheidt
Matthew Flaschen mflasc...@wikimedia.org wrote: [...] Note that this is a shitty bash script (to put it mildly) - but that seems to be all I can write at 5:30 AM :) I'll probably rewrite it to be a proper python one soon. That should also allow me to use the GitHub API to also mirror the

[Wikitech-l] Moving a GitHub Pull Request to Gerrit Changeset manually

2013-03-15 Thread Yuvi Panda
Hello! So I tried converting https://github.com/wikimedia/qa-browsertests/pull/1 into a Gerrit changeset (https://gerrit.wikimedia.org/r/#/c/54097/) , and was mostly successful. It is also a relatively painless process - at least for single commits. This assumes you (person doing the GitHub -