[Rt-commit] rt branch, 4.0/update-wiki, updated. rt-4.0.4-207-gd3aa9b0
? sunnavy
sunnavy at bestpractical.com
Thu Jan 19 08:41:29 EST 2012
The branch, 4.0/update-wiki has been updated
via d3aa9b0ab0b8fa7020e21bc227dc1ff10504a7e0 (commit)
via 913c1674de2a51b70684eb81630bd37f6ded0082 (commit)
from 5b7cdf3288de82e07698e67f2cac78d5c8020f74 (commit)
Summary of changes:
devel/tools/rt-update-wiki | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 913c1674de2a51b70684eb81630bd37f6ded0082
Author: sunnavy <sunnavy at bestpractical.com>
Date: Thu Jan 19 21:27:59 2012 +0800
add change summary
it's like "commit message" in vcs
diff --git a/devel/tools/rt-update-wiki b/devel/tools/rt-update-wiki
index d701679..5017e84 100755
--- a/devel/tools/rt-update-wiki
+++ b/devel/tools/rt-update-wiki
@@ -71,6 +71,11 @@ if ( $opts{'rt-root'} ) {
chdir $opts{'rt-root'};
}
+my $tag = `git describe --tags`;
+chomp $tag;
+die "failed to get tag info, please set --rt-root to rt's git repository"
+ unless $tag;
+
my $user = $opts{username};
if ( not defined $user ) {
local $| = 1;
@@ -163,6 +168,7 @@ sub update_file {
action => 'edit',
title => $title,
text => $content,
+ summary => "Extracted from $tag",
}
) or die $mw->{error}->{code} . ': ' . $mw->{error}->{details};
commit d3aa9b0ab0b8fa7020e21bc227dc1ff10504a7e0
Author: sunnavy <sunnavy at bestpractical.com>
Date: Thu Jan 19 21:33:50 2012 +0800
add version to category
diff --git a/devel/tools/rt-update-wiki b/devel/tools/rt-update-wiki
index 5017e84..e057ad1 100755
--- a/devel/tools/rt-update-wiki
+++ b/devel/tools/rt-update-wiki
@@ -76,6 +76,9 @@ chomp $tag;
die "failed to get tag info, please set --rt-root to rt's git repository"
unless $tag;
+my ($version) = $tag =~ /rt-(\d+\.\d+)/;
+die "failed to get version info from tag: $tag" unless $version;
+
my $user = $opts{username};
if ( not defined $user ) {
local $| = 1;
@@ -129,7 +132,7 @@ sub update_file {
my $title = basename($file);
$title =~ s!\.pod$!!;
- my @categories = ('Official Doc', 'Auto-updated');
+ my @categories = ('Official Doc', 'Auto-updated', $version );
if ( $file =~ m{docs/UPGRADING} ) {
push @categories, 'Upgrading';
}
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list