<?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>215863</bug_id>
          
          <creation_ts>2020-08-26 13:32:08 -0700</creation_ts>
          <short_desc>[webkitpy] repository svn version is incorrect when working on a branch</short_desc>
          <delta_ts>2020-08-27 19:01:16 -0700</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>FIXED</resolution>
          
          
          <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="Carlos Alberto Lopez Perez">clopez</reporter>
          <assigned_to name="Carlos Alberto Lopez Perez">clopez</assigned_to>
          <cc>bburg</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>cgarcia</cc>
    
    <cc>dewei_zhu</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>glenn</cc>
    
    <cc>jbedard</cc>
    
    <cc>rniwa</cc>
    
    <cc>ross.kirsling</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1683103</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2020-08-26 13:32:08 -0700</bug_when>
    <thetext>It seems than when you are working on a SVN branch, the SVN revision pointed by HEAD will *not* be the last change done on your branch, but the last change done on trunk (which is irrelevant for your checkout)

See this example:

1. Check out webkitgtk-2.28.0 svn branch
$ svn co http://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-2.28.0 build
# .... lot of files
Checked out revision 266187.

2. Check what svn info says:
$ cd build
$ svn info
Path: .
Working Copy Root Path: /tmp/build
URL: http://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-2.28.0
Relative URL: ^/releases/WebKitGTK/webkit-2.28.0
Repository Root: http://svn.webkit.org/repository/webkit
Repository UUID: 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Revision: 266187
Node Kind: directory
Schedule: normal
Last Changed Author: carlosgc@webkit.org
Last Changed Rev: 258193
Last Changed Date: 2020-03-10 12:10:24 +0100 (Tue, 10 Mar 2020)



So, the last change done on that branch was in reality r258193 (2020-03-10), but svn is saying that my working copy is r266187 (basically trunk of today)


This causes the tool glib-revision to print the wrong revision, which then is passed to the build and the version stamped for the build is incorrect.

$ Tools/glib/svn-revision 
r266187


I think we should pick the &quot;Last Changed Rev&quot; changeset instead of the &quot;Revision&quot; changeset from svn info.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1683105</commentid>
    <comment_count>1</comment_count>
      <attachid>407331</attachid>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2020-08-26 13:35:36 -0700</bug_when>
    <thetext>Created attachment 407331
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1683106</commentid>
    <comment_count>2</comment_count>
      <attachid>407331</attachid>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2020-08-26 13:38:26 -0700</bug_when>
    <thetext>Comment on attachment 407331
Patch

Unfortunate we have no tests for this.....</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1683107</commentid>
    <comment_count>3</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2020-08-26 13:39:05 -0700</bug_when>
    <thetext>(In reply to Jonathan Bedard from comment #2)
&gt; Comment on attachment 407331 [details]
&gt; Patch
&gt; 
&gt; Unfortunate we have no tests for this.....

(To be clear, this is not a request to add tests, simply a comment on how we&apos;ve organized this part of webkitpy)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1683550</commentid>
    <comment_count>4</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2020-08-27 18:54:05 -0700</bug_when>
    <thetext>Yes, i also wished to had some tests. I did manual tests as much as possible and it seems to work as expected.
Thanks for the review ! :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1683552</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2020-08-27 19:00:39 -0700</bug_when>
    <thetext>Committed r266267: &lt;https://trac.webkit.org/changeset/266267&gt;

All reviewed patches have been landed. Closing bug and clearing flags on attachment 407331.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1683553</commentid>
    <comment_count>6</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-08-27 19:01:16 -0700</bug_when>
    <thetext>&lt;rdar://problem/67911890&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>407331</attachid>
            <date>2020-08-26 13:35:36 -0700</date>
            <delta_ts>2020-08-27 19:00:40 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-215863-20200826223534.patch</filename>
            <type>text/plain</type>
            <size>1705</size>
            <attacher name="Carlos Alberto Lopez Perez">clopez</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjY2MTg3CmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ2VMb2cKaW5kZXggNDQxYjg5MjI0MTU1OWVkNWI0NTU3Y2E1MDVjMmU4NjAx
MjA3OWNiNy4uYTViMWM3ZDdhZWVkZmE4MjNjMWIwNGUxNmU0YmUxZTEyMGE4N2JlMCAxMDA2NDQK
LS0tIGEvVG9vbHMvQ2h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