Created Codestriker topic at:
  
http://codestriker.sourceforge.net/cgi-bin/codestriker.pl?topic=7156439&action=view

  User: sits    
  Date: 05/07/19 17:39:52

  Modified:    lib/Codestriker/FileParser PerforceDescribe.pm
  Log:
  Set the new/old line number counts to 1 for new files for Perforce Describes 
diffs
  
  
  
  Index: PerforceDescribe.pm
  ===================================================================
  RCS file: 
/cvsroot/codestriker/codestriker/lib/Codestriker/FileParser/PerforceDescribe.pm,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- PerforceDescribe.pm       7 Jul 2005 21:53:39 -0000       1.3
  +++ PerforceDescribe.pm       20 Jul 2005 00:39:47 -0000      1.4
  @@ -189,9 +189,9 @@
                              [EMAIL PROTECTED]);
        if ($#text >= 0) {
            if ($added) {
  -             $entry->{new_linenumber} = $#text;
  +             $entry->{new_linenumber} = 1;
            } else {
  -             $entry->{old_linenumber} = $#text;
  +             $entry->{old_linenumber} = 1;
            }
            for (my $i = 1; $i <= $#text; $i++) {
                $entry->{text} .= ($added ? "+" : "-") . $text[$i] . "\n";
  
  
  


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Codestriker-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/codestriker-commits

Reply via email to