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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>222847</bug_id>
          
          <creation_ts>2021-03-05 18:55:50 -0800</creation_ts>
          <short_desc>git-webkit should have equivalent of svn up</short_desc>
          <delta_ts>2022-01-29 12:50:28 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=215862</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=220442</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=229625</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=235861</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bdakin</cc>
    
    <cc>ggaren</cc>
    
    <cc>jbedard</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1736706</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2021-03-05 18:55:50 -0800</bug_when>
    <thetext>We should either make `git-webkit pull` or add a new command which behaves like `svn up`,
in that it automatically rebases local uncommitted changes against the latest trunk.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1736714</commentid>
    <comment_count>1</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2021-03-05 19:11:01 -0800</bug_when>
    <thetext>For this command, it&apos;s very important for that I can do the equivalent of mine-full/mine-conflict. The whole git checkout --ours/--theirs business is way too confusing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1736721</commentid>
    <comment_count>2</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2021-03-05 19:39:33 -0800</bug_when>
    <thetext>Oh, also very important. We need an equivalent of:
svn up -r X

Like:
git-webkit up -c=&lt;commit-identifier&gt;

And that should checkout that exact version of &quot;main&quot; branch without getting into a detached state, creating a new branch, etc...

Ideally, this command will also support rN form of Subversion revision so that we can go from Subversion version on trac / bugzilla / etc... straight to checking it out on GitHub clone.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1737092</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-03-08 08:31:21 -0800</bug_when>
    <thetext>&lt;rdar://problem/75171216&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1737101</commentid>
    <comment_count>4</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2021-03-08 08:45:45 -0800</bug_when>
    <thetext>We already have `git-webkit checkout &lt;arg&gt;`, which supports identifiers, revisions (in SVN and git-svn) and hashes (in git), but there are some missing pieces to it, namely, how this works when there are local edits.

I think avoiding the detached HEAD state is not something we should strive for. `git-webkit checkout &lt;arg&gt;` and `git-webkit pull` should behave in the detached HEAD state (not hard when branches have a defined priority, and ours do).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1737430</commentid>
    <comment_count>5</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2021-03-08 19:05:37 -0800</bug_when>
    <thetext>(In reply to Jonathan Bedard from comment #4)
&gt; We already have `git-webkit checkout &lt;arg&gt;`, which supports identifiers,
&gt; revisions (in SVN and git-svn) and hashes (in git), but there are some
&gt; missing pieces to it, namely, how this works when there are local edits.

That is good to know but does it create a new branch or modify the existing branch? I really want to modify the existing / current branch.

&gt; I think avoiding the detached HEAD state is not something we should strive
&gt; for. `git-webkit checkout &lt;arg&gt;` and `git-webkit pull` should behave in the
&gt; detached HEAD state (not hard when branches have a defined priority, and
&gt; ours do).

I mean... as long as detached HEAD state doesn&apos;t cause any problems with all other tools I have no problem with it. We just need to make sure none of the tools we use result in some kind of obscure error message.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1791154</commentid>
    <comment_count>6</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2021-09-07 12:23:29 -0700</bug_when>
    <thetext>Addressed this in https://bugs.webkit.org/show_bug.cgi?id=220442 and https://bugs.webkit.org/show_bug.cgi?id=229625, closing this bug</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1791161</commentid>
    <comment_count>7</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2021-09-07 12:40:50 -0700</bug_when>
    <thetext>(In reply to Jonathan Bedard from comment #6)
&gt; Addressed this in https://bugs.webkit.org/show_bug.cgi?id=220442 and
&gt; https://bugs.webkit.org/show_bug.cgi?id=229625, closing this bug

Your bug says update PR request when running git-webkit up. What if I had local uncommitted changes and ran git-webkit up? Does it automatically rebase instead of error&apos;ing out with &quot;there is uncommitted local change&quot; nonsense?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1835304</commentid>
    <comment_count>8</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2022-01-29 12:50:12 -0800</bug_when>
    <thetext>This issue&apos;t resolved still. Tracking it in https://bugs.webkit.org/show_bug.cgi?id=235861</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>