Index: ossp-pkg/shiela/ChangeLog RCS File: /v/ossp/cvs/ossp-pkg/shiela/ChangeLog,v rcsdiff -q -kk '-r1.20' '-r1.21' -u '/v/ossp/cvs/ossp-pkg/shiela/ChangeLog,v' 2>/dev/null --- ChangeLog 2002/12/22 16:30:14 1.20 +++ ChangeLog 2002/12/22 17:10:26 1.21 @@ -10,6 +10,11 @@ ChangeLog Changes between 0.9.2 and 0.9.3 (19-Aug-2002 to 21-Dec-2002): + + *) Add branch information to the Subject lines of generated Emails. + Additionally, for better readability, use a trailing slash on + directory names in the Subject lines of generated Emails. + [Ralf S. Engelschall] *) Line-break single-line log messages into multi-line log messages to make the usual log messages produced by "cvs commit -m '...'" Index: ossp-pkg/shiela/shiela.pl RCS File: /v/ossp/cvs/ossp-pkg/shiela/shiela.pl,v rcsdiff -q -kk '-r1.33' '-r1.34' -u '/v/ossp/cvs/ossp-pkg/shiela/shiela.pl,v' 2>/dev/null --- shiela.pl 2002/12/22 16:30:14 1.33 +++ shiela.pl 2002/12/22 17:10:26 1.34 @@ -36,7 +36,7 @@ use IO::Handle; # shipped with Perl since 5.003 use IPC::Open2; # shipped with Perl since 5.003 use Data::Dumper; # shipped with Perl since 5.005 -use Cwd; # shipped with Perl since 5.003 +use Cwd; # shipped with Perl since 5.005 # DEBUGGING $Data::Dumper::Purity = 1; @@ -1036,7 +1036,7 @@ # strip absolute prefix $cvsdir =~ s|^$RT->{cvsroot}/?||; - my $cvsdirphysical = Cwd::realpath($RT->{cvsroot}); + my $cvsdirphysical = Cwd::abs_path($RT->{cvsroot}); $cvsdir =~ s|^$cvsdirphysical/?||; # provide access control @@ -1992,11 +1992,19 @@ my $subject = "[CVS]"; $subject .= " ".$CF->{Project}->{Tag}.":"; my $dirlast = ''; + my $branchlast = ''; foreach my $path (sort(keys(%{$IN->{file}}))) { my ($dir, $file) = ($path =~ m|^(.+)/([^/]+)$|); + my $branch = $IN->{file}->{$path}->{branch} || 'HEAD'; + if ($branchlast ne $branch) { + # prefix with branch + $branchlast = $branch; + $subject .= " $branch:" if ($branch ne 'HEAD'); + } if ($dirlast ne $dir) { + # prefix with directory $dirlast = $dir; - $subject .= " $dir"; + $subject .= " $dir/"; } $subject .= " $file"; }