<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 8. 11. 2012, at 14:40, Rob Cernich &lt;<a href="mailto:rcernich@redhat.com">rcernich@redhat.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><br><br>----- Original Message -----<br><blockquote type="cite"><blockquote type="cite">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 type="cite">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><br></div><div>-Martin</div><br><blockquote type="cite"><br><blockquote type="cite"><br><blockquote type="cite">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">jbosstools-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/jbosstools-dev<br><br></blockquote></blockquote></div><div apple-content-edited="true"><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-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 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-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div apple-content-edited="true"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; 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; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div></div></span></div></div></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br></body></html>