diff options
author | flz <flz@FreeBSD.org> | 2006-01-13 00:47:42 +0000 |
---|---|---|
committer | flz <flz@FreeBSD.org> | 2006-01-13 00:47:42 +0000 |
commit | 928a616e4c6d1cfb1295a0e2149e7862c0af73d0 (patch) | |
tree | 23ce811e857fed267c390eebdfdd159a3fb3a9e5 | |
parent | a59d3457484341efb35f4943df0bfa2838f82ff2 (diff) | |
download | FreeBSD-src-928a616e4c6d1cfb1295a0e2149e7862c0af73d0.zip FreeBSD-src-928a616e4c6d1cfb1295a0e2149e7862c0af73d0.tar.gz |
- Fix issue when X-FreeBSD-CVS-Branch is not HEAD.
Submitted by: jkim
Approved by: jkim
-rw-r--r-- | tools/tools/mfc/mfc.pl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/tools/mfc/mfc.pl b/tools/tools/mfc/mfc.pl index 4f29976..3dbdfdc 100644 --- a/tools/tools/mfc/mfc.pl +++ b/tools/tools/mfc/mfc.pl @@ -56,7 +56,7 @@ my $mfchome = $MFCHOME ? $MFCHOME : "/var/tmp/mfc"; my $mfclogin = $MFCLOGIN ? $MFCLOGIN : ""; my $cvsroot = $MFCCVSROOT ? $MFCCVSROOT : ':pserver:anoncvs@anoncvs.at.FreeBSD.org:/home/ncvs'; -my $version = "0.4.3"; +my $version = "0.4.4"; my %opt; my $commit_author; my $commit_date; @@ -125,6 +125,10 @@ sub previous_revision($) return 0 if ($rev =~ /^1\.1$/); @rev = split '\.', $rev; return undef unless @rev; + if (($#rev % 2) != 1) { + pop @rev; + return join ".", @rev; + } if ($rev[-1] == 1) { pop @rev; return &previous_revision(join ".", @rev); |