<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: times new roman,new york,times,serif; font-size: 12pt; color: #000000'><br><br><hr id="zwchr"><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><br><div><div>On 8. 11. 2012, at 14:40, Rob Cernich &lt;<a href="mailto:rcernich@redhat.com" target="_blank">rcernich@redhat.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote><br><br>----- Original Message -----<br><blockquote><blockquote>Yesterday we discussed on IRC that this can be tricky - if you have<br>one topic branch that was originally based on master for instance<br>and want to apply the changes to both master and Beta2x then you<br>need to be careful because if you rebase the Beta2x-based topic<br>branch to master, it will contain many more new commits and you<br>only want to cherry pick the ones you really need. That is clear<br>to me (I hope).<br></blockquote><br>yes, as with any other PR that is "outofsync" cherrypicking is the<br>way to go.<br><br><blockquote>But I'd like to ask another related question: What is the<br>recommended approach wrt pull requests here? The above assumes you<br>have one topic branch and hence one pull request. So are users<br>supposed to comment in the pull request saying they want it to be<br>applied to both branches? Or should they rather create to separate<br>pull requests for each branch (from 2 different topic branches)?<br></blockquote><br>I would say it depends on the case - no reason to make things harder<br>to do than necessary :)<br><br>I would say a PR clearly marked as should going to both is enough in<br>many cases but while we are getting our feet wet here doing one for<br>each might be worth doing.<br></blockquote><br>I think this really depends on how consistent the history is between the two branches. &nbsp;If the branches have diverged, you may end up pulling in extra commits on one of the branches. &nbsp;It's probably best to issue separate requests for each branch.<br><br>One thing that might help as your figuring things out would be to limit pull requests to a single commit (i.e. all changes for a particular JIRA should be squashed into a single commit). &nbsp;This will allow you to see if you're pulling in multiple commits (which you won't know if there are multiple commits in the pull). &nbsp;Just an idea. &nbsp;(Actually, this is how we run things on SwitchYard.)<br></blockquote><div><br></div><div>Yes, I agree this would reduce the risk of adding more commits to the destination branch than intended. But on the other hand a maintainer will usually be pretty clear on what to apply - at least the original pull request should show the correct commits that you want to be added.</div><div id="DWT1104"><br></div></div></blockquote>My experience has been that Github will show you all commits that were added from the reference point on your branch.&nbsp; When you issue a pull request, it is against a branch, not specific commits (i.e. pull from this branch not pull these commits).<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px; color: rgb(0, 0, 0); font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><div><div></div><div>-Martin</div><br><blockquote><br><blockquote><br><blockquote>Sorry if I'm asking something obvious - these are new things to me<br>:)<br></blockquote><br>same here - we'll find a way; i'm collecting notes for all "git<br>whoops" I see happening to adjust recommendations as we learn, so<br>keep them coming:)<br><br>/max<br>_______________________________________________<br>jbosstools-dev mailing list<br><a href="mailto:jbosstools-dev@lists.jboss.org" target="_blank">jbosstools-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/jbosstools-dev<br><br></blockquote></blockquote></div><div><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><div style="word-wrap: break-word;"><div><div style="word-wrap: break-word; font-size: 12px;"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><div style="word-wrap: break-word;"><div><br></div></div></span></div></div></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br></blockquote><br></div></body></html>