<?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>13734</bug_id>
          
          <creation_ts>2007-05-15 11:06:53 -0700</creation_ts>
          <short_desc>svn-create-patch could check for most obvious mistakes in patches</short_desc>
          <delta_ts>2021-03-15 03:27:05 -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>523.x (Safari 3)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kimmo Kinnunen">kkinnunen</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ddkilzer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>9908</commentid>
    <comment_count>0</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2007-05-15 11:06:53 -0700</bug_when>
    <thetext>The svn-create-patch chould check for the most obvious mistakes in the patches it creates. The tool could for example warn the author for the mistakes.

A warning could be printed on at least following mistakes:
- Tabs present in the modifications
- Modifying files in a directory which would require ChangeLog entry</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9912</commentid>
    <comment_count>1</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2007-05-15 11:24:03 -0700</bug_when>
    <thetext>
I don&apos;t know if it&apos;d be useful to others, but I&apos;ll probably save following locally:

Index: WebKitTools/Scripts/svn-create-patch
===================================================================
--- WebKitTools/Scripts/svn-create-patch        (revision 21458)
+++ WebKitTools/Scripts/svn-create-patch        (working copy)
@@ -228,6 +228,10 @@ sub generateDiff($$$)
     close DIFF;
     $patch = fixChangeLogPatch($patch) if basename($file) eq &quot;ChangeLog&quot;;
     print $patch if $patch;
+    if ($patch =~ /^\+(\t|!\+.*\t)/mg ) {
+        print STDERR &quot;Warning: changes in file &apos;$file&apos; contain tab characters.\n&quot;;
+    }
+
     if ($isBinary) {
         print &quot;\n&quot; if ($patch &amp;&amp; $patch =~ m/\n\S+$/m);
         outputBinaryContent($file);
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9863</commentid>
    <comment_count>2</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-05-15 22:45:06 -0700</bug_when>
    <thetext>Yes, that does make sense!

</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>