<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>402538</bug_id>
          
          <creation_ts>2018-12-24 19:30:57 +0000</creation_ts>
          <short_desc>kdesrc-build could use a --patch argument to make testing a Phabricator patch super easy</short_desc>
          <delta_ts>2021-03-12 22:24:10 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Developer tools</classification>
          <product>kdesrc-build</product>
          <component>general</component>
          <version>Git</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>wishlist</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Nate Graham">nate</reporter>
          <assigned_to name="Michael Pyne">mpyne</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1828374</commentid>
    <comment_count>0</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2018-12-24 19:30:57 +0000</bug_when>
    <thetext>I&apos;d really like to be able to do this:

kdesrc-build konsole --patch D17643 --include-dependencies --stop-on-failure

And it would check out https://phabricator.kde.org/D17643 and apply it to the Konsole repo before building. That would be super rad.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1828404</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Pyne">mpyne</who>
    <bug_when>2018-12-25 00:00:51 +0000</bug_when>
    <thetext>That would be super rad!

The way I&apos;d envision doing this, I&apos;d revert the patch after the build so the user would have to re-add the &apos;--patch ...&apos; stuff later. Is that OK?

The reason I ask is that other ways to back-out the patch (such as git-clean) might also have the effect of wiping out *other* changes by accident, which is something I&apos;ve always been paranoid about. Though if it would make more sense to keep the patch applied, we can use git-stash to keep unrelated changes first.

Though that&apos;s also another point, I&apos;m assuming that if there are other unrelated changes in the repo already, that kdesrc-build would keep those before applying the Phab patch.

I&apos;m tracking at https://invent.kde.org/kde/kdesrc-build/issues/4 but will keep the commentary going here for now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1828535</commentid>
    <comment_count>2</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2018-12-26 00:36:05 +0000</bug_when>
    <thetext>It wouldn&apos;t need to revert anything, since doing `arc patch D12345` creates a new branch called &quot;arcpatch-D12345&quot; so running kdesrc-build with --patch D12345 again would simply re-use that branch (or delete it and re-check it out), and omitting the --patch argument would switch back to the normal master branch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2014958</commentid>
    <comment_count>3</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-03-12 22:24:10 +0000</bug_when>
    <thetext>Not relevant anymore now that we have GitLab, and I suppose this is duplicative of https://invent.kde.org/sdk/kdesrc-build/-/issues/12.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>