<?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>116016</bug_id>
          
          <creation_ts>2013-05-13 01:57:55 -0700</creation_ts>
          <short_desc>[webkitpy] Make FileInfo.repository_name support SVN version &gt; 1.6</short_desc>
          <delta_ts>2013-05-13 12:22:41 -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>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>115567</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Csaba Osztrogonác">ossy</reporter>
          <assigned_to name="Csaba Osztrogonác">ossy</assigned_to>
          <cc>benjamin</cc>
    
    <cc>commit-queue</cc>
    
    <cc>dpranke</cc>
    
    <cc>glenn</cc>
    
    <cc>hamaji</cc>
    
    <cc>jberlin</cc>
    
    <cc>kadam</cc>
    
    <cc>levin</cc>
    
    <cc>ossy</cc>
    
    <cc>rniwa</cc>
    
    <cc>zarvai</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>888148</commentid>
    <comment_count>0</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2013-05-13 01:57:55 -0700</bug_when>
    <thetext>New webkitpy test introduced in r149635 fails on the buildbots.
It fails only in SVN repositories, but passes in GIT repositories. :)

I started digging it, and it seems the problem is somewhere 
near class FileInfo implementation in cpp.py.

from SVN repository:
---------------------
$ Tools/Scripts/test-webkitpy Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py
Suppressing most webkitpy logging while running unit tests.
[1/1] webkitpy.style.checkers.cpp_unittest.CppStyleTest.test_webcore_platform_layering_violation failed:
  Traceback (most recent call last):
    File &quot;/home/oszi/WebKit-svn/Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py&quot;, line 251, in test_webcore_platform_layering_violation
      self.assertEqual(1, error_collector.result_list().count(errmsg))
  AssertionError: 1 != 0

Ran 1 test in 0.023s
FAILED (failures=1, errors=0)

from GIT repository:
---------------------
$ Tools/Scripts/test-webkitpy Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py
Suppressing most webkitpy logging while running unit tests.
Skipping tests in the following modules or packages because they are really, really, slow:
    webkitpy.common.checkout.scm.scm_unittest
    (https://bugs.webkit.org/show_bug.cgi?id=31818; use --all to include)

Ran 1276 tests in 3.063s

OK</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>888150</commentid>
    <comment_count>1</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2013-05-13 02:09:20 -0700</bug_when>
    <thetext>cpp.py:
----------
def check_for_webcore_platform_layering_violation(filename, clean_lines, line_number, error):
    &quot;&quot;&quot;Checks for platform-specific code inside WebCore outside of the platform layer.&quot;&quot;&quot;
    directory = FileInfo(filename).split()[0]
if not match(r&apos;Source/WebCore&apos;, directory):
        return
    if match(r&apos;Source/WebCore/platform&apos;, directory):
        return


I got the root of the bug. FileInfo(filename).split() returns absolute
path inside SVN repository and relative path inside GIT repository:
- SVN: (&apos;/home/webkitbuildbot/oszi/WebKit-svn/Source/WebCore/loader&apos;, &apos;NavigationAction&apos;, &apos;.cpp&apos;)
- GIT: (&apos;Source/WebCore/loader&apos;, &apos;NavigationAction&apos;, &apos;.cpp&apos;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>888154</commentid>
    <comment_count>2</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2013-05-13 02:21:26 -0700</bug_when>
    <thetext>The problem is bigger than I thought before. :-/

The implementation of FileInfo.repository_name is incorrect 
for SVN 1.7, because there isn&apos;t .svn directories everywhere, 
only in the root directory.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>888157</commentid>
    <comment_count>3</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2013-05-13 02:28:19 -0700</bug_when>
    <thetext>The original implemantation introduced in http://trac.webkit.org/changeset/45857 long long time ago. 

It seems this bug was fixed in the upstream - http://google-styleguide.googlecode.com/svn/trunk/cpplint/cpplint.py</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>888160</commentid>
    <comment_count>4</comment_count>
      <attachid>201540</attachid>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2013-05-13 02:47:54 -0700</bug_when>
    <thetext>Created attachment 201540
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>888459</commentid>
    <comment_count>5</comment_count>
      <attachid>201540</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2013-05-13 12:22:38 -0700</bug_when>
    <thetext>Comment on attachment 201540
Patch

Clearing flags on attachment: 201540

Committed r150028: &lt;http://trac.webkit.org/changeset/150028&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>888460</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2013-05-13 12:22:41 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>201540</attachid>
            <date>2013-05-13 02:47:54 -0700</date>
            <delta_ts>2013-05-13 12:22:38 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-116016-20130513114740.patch</filename>
            <type>text/plain</type>
            <size>2201</size>
            <attacher name="Csaba Osztrogonác">ossy</attacher>
            
              <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gICAgICAgICAgICAgICAg
IGFuZCBub3Qgb3MucGF0aC5leGlzdHMob3MucGF0aC5qb2luKHJvb3RfZGlyLCAiLmdpdCIpKSk6
CisgICAgICAgICAgICAgICAgICAgYW5kIG5vdCBvcy5wYXRoLmV4aXN0cyhvcy5wYXRoLmpvaW4o
cm9vdF9kaXIsICIuZ2l0IikpCisgICAgICAgICAgICAgICAgICAgYW5kIG5vdCBvcy5wYXRoLmV4
aXN0cyhvcy5wYXRoLmpvaW4ocm9vdF9kaXIsICIuc3ZuIikpKToKICAgICAgICAgICAgICAgICBy
b290X2RpciA9IG9zLnBhdGguZGlybmFtZShyb290X2RpcikKLSAgICAgICAgICAgICAgICBpZiBv
cy5wYXRoLmV4aXN0cyhvcy5wYXRoLmpvaW4ocm9vdF9kaXIsICIuZ2l0IikpOgorICAgICAgICAg
ICAgICAgIGlmIChvcy5wYXRoLmV4aXN0cyhvcy5wYXRoLmpvaW4ocm9vdF9kaXIsICIuZ2l0Iikp
IG9yCisgICAgICAgICAgICAgICAgICAgb3MucGF0aC5leGlzdHMob3MucGF0aC5qb2luKHJvb3Rf
ZGlyLCAiLnN2biIpKSk6CiAgICAgICAgICAgICAgICAgICAgIHByZWZpeCA9IG9zLnBhdGguY29t
bW9ucHJlZml4KFtyb290X2RpciwgcHJvamVjdF9kaXJdKQogICAgICAgICAgICAgICAgICAgICBy
ZXR1cm4gZnVsbG5hbWVbbGVuKHByZWZpeCkgKyAxOl0KIAo=
</data>
<flag name="commit-queue"
          id="222888"
          type_id="3"
          status="+"
          setter="dpranke"
    />
          </attachment>
      

    </bug>

</bugzilla>