<table><tr><td style="">rkflx added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D7793" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p><tt style="background: #ebebeb; font-size: 13px;">arc</tt> will squash and push all commits from the current branch which are not yet in the target branch, in your case all commits exclusive to master in addition to your patch. As you noticed correctly, that's not what you'll want. I'd probably prefer to move such a patch to Applications/17.08 locally via <tt style="background: #ebebeb; font-size: 13px;">git</tt> first, to check everything worked and still compiles:</p>

<ul class="remarkup-list">
<li class="remarkup-list-item"><tt style="background: #ebebeb; font-size: 13px;">git checkout Applications/17.08</tt>, <tt style="background: #ebebeb; font-size: 13px;">git pull</tt></li>
<li class="remarkup-list-item"><tt style="background: #ebebeb; font-size: 13px;">git cherry-pick master</tt></li>
<li class="remarkup-list-item"><tt style="background: #ebebeb; font-size: 13px;">gitk</tt>, <tt style="background: #ebebeb; font-size: 13px;">make</tt>, <tt style="background: #ebebeb; font-size: 13px;">arc land --preview</tt>, …</li>
<li class="remarkup-list-item"><tt style="background: #ebebeb; font-size: 13px;">arc land</tt></li>
</ul>

<p>Now for the merge (see also <a href="https://phabricator.kde.org/source/ark/browse/master/HACKING" class="remarkup-link" target="_blank" rel="noreferrer">here</a>):</p>

<ul class="remarkup-list">
<li class="remarkup-list-item"><tt style="background: #ebebeb; font-size: 13px;">git checkout master</tt></li>
<li class="remarkup-list-item"><tt style="background: #ebebeb; font-size: 13px;">git reset --hard origin/master</tt> to get rid of your original patch</li>
<li class="remarkup-list-item"><tt style="background: #ebebeb; font-size: 13px;">git pull</tt></li>
<li class="remarkup-list-item"><tt style="background: #ebebeb; font-size: 13px;">git merge -Xours origin/Applications/17.08</tt></li>
<li class="remarkup-list-item"><tt style="background: #ebebeb; font-size: 13px;">gitk --all</tt>, <tt style="background: #ebebeb; font-size: 13px;">git push --dry-run</tt></li>
<li class="remarkup-list-item"><tt style="background: #ebebeb; font-size: 13px;">git push</tt></li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R223 Okular</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D7793" rel="noreferrer">https://phabricator.kde.org/D7793</a></div></div><br /><div><strong>To: </strong>ngraham, aacid, Okular, KDE Applications, broulik, sander, rkflx<br /><strong>Cc: </strong>rkflx, aacid<br /></div>