<?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>48272</bug_id>
          
          <creation_ts>2010-10-25 15:36:06 -0700</creation_ts>
          <short_desc>REGRESSION(r70437): Git.revisions_changing_file no longer raises for non-existant files</short_desc>
          <delta_ts>2013-01-21 19:42:07 -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>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</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>
          <dependson>48187</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>dbates</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>eric</cc>
    
    <cc>evan</cc>
    
    <cc>mithro</cc>
    
    <cc>ojan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>299137</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-10-25 15:36:06 -0700</bug_when>
    <thetext>REGRESSION(r70437): Git.revisions_changing_file no longer raises for non-existant files

 test-webkitpy webkitpy.common.checkout.scm_unittest.GitSVNTest.test_revisions_changing_file

======================================================================
FAIL: test_revisions_changing_file (webkitpy.common.checkout.scm_unittest.GitSVNTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File &quot;/Projects/WebKit/WebKitTools/Scripts/webkitpy/common/checkout/scm_unittest.py&quot;, line 1237, in test_revisions_changing_file
    self._shared_test_revisions_changing_file()
  File &quot;/Projects/WebKit/WebKitTools/Scripts/webkitpy/common/checkout/scm_unittest.py&quot;, line 357, in _shared_test_revisions_changing_file
    self.assertRaises(ScriptError, self.scm.revisions_changing_file, &quot;non_existent_file&quot;)
AssertionError: ScriptError not raised</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>299138</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-10-25 15:37:35 -0700</bug_when>
    <thetext>% git log non_existant_file
fatal: ambiguous argument &apos;non_existant_file&apos;: unknown revision or path not in the working tree.
Use &apos;--&apos; to separate paths from revisions

% git log -- non_existant_file

however just churns for a long while and then outputs nothing and exits 0.  Both of those behaviors seem bad.  I wonder if there is some flag we should pass to git.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>299157</commentid>
    <comment_count>2</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2010-10-25 16:07:29 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; % git log non_existant_file
&gt; fatal: ambiguous argument &apos;non_existant_file&apos;: unknown revision or path not in the working tree.
&gt; Use &apos;--&apos; to separate paths from revisions
&gt; 
&gt; % git log -- non_existant_file
&gt; 
&gt; however just churns for a long while and then outputs nothing and exits 0.  Both of those behaviors seem bad.  I wonder if there is some flag we should pass to git.

What is the code trying to do?  (Sorry, don&apos;t have time to peruse it now.)  Why don&apos;t you just test for the file&apos;s existence and skip running &quot;git log&quot; in that case?

I think &quot;git log -- non_existant_file&quot; may be checking the repository&apos;s history for any file that ever existed at that path.

I think some discussion about this under the &quot;History Simplification&quot; section in &quot;man git-log&quot;.

This seems to run faster:  git log --since=&quot;1 day ago&quot; -- foo</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>316514</commentid>
    <comment_count>3</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2010-12-02 16:50:11 -0800</bug_when>
    <thetext>*** Bug 49948 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>316515</commentid>
    <comment_count>4</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2010-12-02 16:51:30 -0800</bug_when>
    <thetext>Can we do something about the failing test? Just comment out this line for now? I keep hitting this everytime I modify scm.py and it costs me some time to realize it wasn&apos;t my patch that broke it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>812542</commentid>
    <comment_count>5</comment_count>
    <who name="Tim &apos;mithro&apos; Ansell">mithro</who>
    <bug_when>2013-01-21 19:42:07 -0800</bug_when>
    <thetext>This test now passes.

$ ./test-webkitpy webkitpy.common.checkout.scm.scm_unittest.GitSVNTest.test_revisions_changing_file
Suppressing most webkitpy logging while running unit tests.
Ran 1 test in 4.752s                                                                          

OK</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>