Return-Path: X-Original-To: apmail-incubator-isis-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-isis-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B92EC9669 for ; Fri, 13 Jul 2012 13:22:37 +0000 (UTC) Received: (qmail 19684 invoked by uid 500); 13 Jul 2012 13:22:37 -0000 Delivered-To: apmail-incubator-isis-dev-archive@incubator.apache.org Received: (qmail 19622 invoked by uid 500); 13 Jul 2012 13:22:37 -0000 Mailing-List: contact isis-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: isis-dev@incubator.apache.org Delivered-To: mailing list isis-dev@incubator.apache.org Received: (qmail 19606 invoked by uid 99); 13 Jul 2012 13:22:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jul 2012 13:22:36 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of howard.adam@gmail.com designates 74.125.83.47 as permitted sender) Received: from [74.125.83.47] (HELO mail-ee0-f47.google.com) (74.125.83.47) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jul 2012 13:22:30 +0000 Received: by eeit10 with SMTP id t10so430110eei.6 for ; Fri, 13 Jul 2012 06:22:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=z7ZrHgGQq70G57e8cnp0gAtQnz69WnifuO9fr7Qepqs=; b=yG4/Um6cjJa25Hu7t2MCsCq5ZioHhQyMuRC90YrNXQhtDWOh1n6UohJEI3ZLW3Jfvv TJvZH7Q7XH0v3nB2HAIZ60gvuow46I2o85nGmSIDmlR/0bA2mTiU5ZOPRVio3JuNA+yg PRteDI2n3/E2yBrgdv9thtGGuIZt5Kqd3jdAY0UkBxu4WHR92vN1qQ4Q0T6HYJqnKOAG VSv/rlLjT9IuF4J+ltFE4lp9KlvWLr5aFGHbV89C5OCZLbeVHpnc7u1/rh80VXREcfS4 CuY7AnqLZ4iqvavNu1KjI7b/bPi3ISN8B/J6Z0MTJwJcquKYa1kbqqv+aOpp81Utj+cB FbWw== MIME-Version: 1.0 Received: by 10.14.95.207 with SMTP id p55mr324785eef.40.1342185730029; Fri, 13 Jul 2012 06:22:10 -0700 (PDT) Received: by 10.14.99.144 with HTTP; Fri, 13 Jul 2012 06:22:09 -0700 (PDT) In-Reply-To: References: <1342161623.98782.YahooMailNeo@web171503.mail.ir2.yahoo.com> Date: Fri, 13 Jul 2012 08:22:09 -0500 Message-ID: Subject: Re: ISIS-233 fix from Adam via github From: Adam Howard To: isis-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 The diff is now attached to the JIRA ticket. I'll try branching next time as you suggested. It sounds cleaner. Adam On Fri, Jul 13, 2012 at 3:26 AM, Dan Haywood wrote: > On 13 July 2012 07:59, Adam Howard wrote: > >> I'd be happy to do this though I do need some help with the git >> commands to generate my patch. Any tips Dan? I'll do some searching >> tomorrow. >> > > The pull request you sent me had links for these directly: > > https://github.com/danhaywood/apacheisis/pull/1.patch > https://github.com/danhaywood/apacheisis/pull/1.diff > > So, you could download either and attach to the JIRA (ideally, x-ref this > pull request URL; I presume its a permalink). > > > >> >> Also one more git question. The process I need to follow (that you >> described at the end of your email) to bring my fork up to date seems >> a little complex. Did I do things in the correct way? Should I have >> done my work in a branch? Any advice to make future pull requests >> painless is appreciated. >> > > Yes, it is complex, but that's because of the git-svn integration. If we > were solely in GIT-land, it'd be much easier. But until then.... > > Using git-svn requires that a rebase is performed. It's this rebase that > messes you up (and it messes me up similarly with any work I do in my GIT > repo). I haven't found a way around this, and to be honest I don't think > that there is a way around it. > > Should you use a branch? Yes, that might be a good idea, if only because > it'll make it easy for you to rewind back in time in order to do a > subsequent pull from your origin (ie my github copy of Isis). > > So, let me sketch out a process that I think will work for you. > > > 0. assuming that you've done a "git pull" and that your master branch is > pointing to the same point as remotes/origin/master, and this is also your > HEAD. (If you use gitk --all, you can see all the branch labels, and HEAD > is the commit coloured yellow). > > 1. git checkout -b newstuff # creates a new branch and switches to it. > In gitk, you'll see a new label pointing alongside the others > > 2. start working away, git add ... new files etc etc > > 3. git commit -am "ISIS-xxx: yada yada" # this will move the "newstuff" > label to the new commit, but leave "master" where it was. > > 4. create a pull request [1]. Do this by switching branches first to > "newstuff", then creating the pull request. > > > At this point I now apply the pull request to my git local repo, then do > git svn rebase / git svn dcommit to apply the changes to SVN. Finally, I > do a git merge "remotes/github/master" then a "git push github" to push it > back out to my github repo, ie to your origin. > > > 5. git fetch origin # This will result in a new chain of commits coming > in from origin, all starting from where your "master" branch still is. If > you do a fetch rather than a pull, you can preview those new commits using > "gitk --all". > > 6. git checkout master # switch to master > > 7. git merge remotes/origin/master # should do a fast-forward merge, ie > simply move your master branch up to the latest. > > 8. git branch -d newstuff # you don't need this original branch > anymore, since the change is back in via steps 5~7. > > As a small improvement on the above, you might want to name your branch > "ISIS-xxx" rather than "newstuff"... that way it's clear what it relates > to. It'll probably make the pull request more self-describing also. > > > > Hope that makes sense > > Dan > > > [1] https://help.github.com/articles/using-pull-requests/