]> granicus.if.org Git - docbook-dsssl/commitdiff
don't truncate author names; do strip out date at beginning of a checkin message
authorMichael Smith <xmldoc@users.sourceforge.net>
Mon, 7 Apr 2008 08:13:03 +0000 (08:13 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Mon, 7 Apr 2008 08:13:03 +0000 (08:13 +0000)
contrib/tools/svn2twitter/svn2twitter

index 95ac219e46211cadc132896bafc710a64c2e12aa..e28860818a854092dea6cd3c6d34d8025f8e9d88 100755 (executable)
@@ -37,11 +37,13 @@ my $author = $revs->[0]{author};
 $author =~ s/^([^@]+)@.+$/$1/;
 
 # use only first 6 chars of author username
-if (length($author) > 6) {
-  $author = substr($author, 0, 6);
-}
+#if (length($author) > 6) {
+#  $author = substr($author, 0, 6);
+#}
 my $message = $revs->[0]{message};
 chomp $message;
+# strip out dates at the beginning of messsage
+$message =~ s/^[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9] //g;
 
 #my @paths = keys %{$revs->[0]{paths}};