Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: /svnutils/trunk/src/, /svnutils/trunk/src/tests/

svnutils
Discussion topic

Back to topic list

CVS update: /svnutils/trunk/src/, /svnutils/trunk/src/tests/

Reply

Author sunny256
Full name Øyvind A. Holm
Date 2008-09-24 18:12:47 PDT
Message User: sunny256
Date: 2008-09-24 18:12:47-0700
Modified:
   svnutils/trunk/src/sident
   svnutils/trunk/src/t​ests/sident.t

Log:
 r218 | sunny256 | 2008-09-25 01:03:05 +0000 (Thu, 25 Sep 2008) | 10 lines
 
 sident: Don’t list directories if --verbose is used.
 
 * /trunk/src/sident
   Add check for $File not being a directory.
 
 * /trunk/src/tests/sident.t
   Add test for that.
 
 b0a6a70e-8a9d-11dd-b​2a4-000475e441b9 (svn)
 006dd82e-8a9f-11dd-9​1e0-000475e441b9 (cvs)

File Changes:

Directory: /svnutils/trunk/src/
===============================

File [changed]: sident
Url: http://svnutils.tigr​is.org/source/browse​/svnutils/trunk/src/​sident?r1=1.20&r​2=1.21
Delta lines: +6 -6
-------------------
--- sident 2008-09-24 18:06:08-0700 1.20
+++ sident 2008-09-24 18:12:44-0700 1.21
@@ -1,7 +1,7 @@
 #!/usr/bin/perl -w
 
 #===================​====================​====================​============
-# $Id: sident 216 2008-09-25 00:44:23Z sunny256 $
+# $Id: sident 218 2008-09-25 01:03:05Z sunny256 $
 # Lists RCS-like keywords in files. Replacement for ident(1).
 #
 # Character set: UTF-8
@@ -37,7 +37,7 @@
 our $progname = $0;
 $progname =~ s/^.*\/(.*?)$/$1/;
 
-my $rcs_id = '$Id: sident 216 2008-09-25 00:44:23Z sunny256 $';
+my $rcs_id = '$Id: sident 218 2008-09-25 01:03:05Z sunny256 $';
 my $id_date = $rcs_id;
 $id_date =~ s/^.*?\d+ (\d\d\d\d-.*?\d​\d:\d\d:\d\d\S​+).*/$1/;
 
@@ -158,7 +158,7 @@
             }
             $Opt{'xml'} && print(" </file>\n");
         } else {
- if ($Opt{'verbose'}) {
+ if ($Opt{'verbose'} && !-d $File) {
                 $Opt{'xml'} && print(" <file>\n");
                 if ($Opt{'xml'}) {
                     printf(" <filename>%s​</filename>\n",​
@@ -171,7 +171,7 @@
             }
         }
     } else {
- warn("$progname: $File: Unable to open file for read\n");
+ warn("$progname: $File: Cannot read file: $!\n");
     }
     # }}}
 }
@@ -276,7 +276,7 @@
 
 =head1 REVISION
 
-$Id: sident 216 2008-09-25 00:44:23Z sunny256 $
+$Id: sident 218 2008-09-25 01:03:05Z sunny256 $
 
 =head1 SYNOPSIS
 
@@ -372,4 +372,4 @@
 # }}}
 
 # vim: set fenc=UTF-8 ft=perl fdm=marker ts=4 sw=4 sts=4 et fo+=w :
-# End of file $Id: sident 216 2008-09-25 00:44:23Z sunny256 $
+# End of file $Id: sident 218 2008-09-25 01:03:05Z sunny256 $

Directory: /svnutils/trunk/src/tests/
====================​=================

File [changed]: sident.t
Url: http://svnutils.tigr​is.org/source/browse​/svnutils/trunk/src/​tests/sident.t?r1=1.​1&r2=1.2
Delta lines: +7 -0
-------------------
--- sident.t 2008-09-24 18:11:01-0700 1.1
+++ sident.t 2008-09-24 18:12:44-0700 1.2
@@ -404,6 +404,13 @@
 );
 
 # }}}
+testcmd("$CMD -v sident-files", # {{{
+ "",
+ "",
+ "Ignore directories, even with --verbose",
+);
+
+# }}}
 likecmd("$CMD sident-files/shbvkdsvsdfv", # {{{
     '/^$/',
     '/^sident: sident-files/shbvkdsvsdfv: .*$/',

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: /svnutils/trunk/src/, /svnutils/trunk/src/tests/ sunny256 Øyvind A. Holm 2008-09-24 18:12:47 PDT
Messages per page: