5 # ====================================================================
6 # Show the log message and diff for a revision.
8 # $ showchange.pl REVISION [WC_PATH|URL]
11 if ((scalar(@ARGV) == 0)
14 or ($ARGV[0] eq '--help')) {
16 Show the log message and diff for a revision.
17 usage: $0 REVISION [WC_PATH|URL]
22 my $revision = shift || die ("Revision argument required.\n");
23 if ($revision =~ /r([0-9]+)/) {
27 my $url = shift || "";
31 my $prev_revision = $revision - 1;
33 system ("${svn} log -v --incremental -r${revision} $url");
34 system ("${svn} diff -r${prev_revision}:${revision} $url");