From 6cedb5747ecceddabf10627e96abb5c20d1dc78f Mon Sep 17 00:00:00 2001 From: agriffis Date: Tue, 26 Apr 2005 21:08:59 +0000 Subject: [PATCH] * detect conflicts explicitly * report ChangeLog in the list of files if it's the only file that is changing #90326 svn path=/; revision=209 --- trunk/src/echangelog/ChangeLog | 5 +++++ trunk/src/echangelog/echangelog | 22 +++++++++++++++++----- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/trunk/src/echangelog/ChangeLog b/trunk/src/echangelog/ChangeLog index 698167e..d5215eb 100644 --- a/trunk/src/echangelog/ChangeLog +++ b/trunk/src/echangelog/ChangeLog @@ -1,3 +1,8 @@ +26 Apr 2005 Aron Griffis + * detect conflicts explicitly + * report ChangeLog in the list of files if it's the only file that is + changing #90326 + 23 Mar 2005 Aron Griffis * handle package moves without adding new version lines diff --git a/trunk/src/echangelog/echangelog b/trunk/src/echangelog/echangelog index 0aed254..f8c795a 100644 --- a/trunk/src/echangelog/echangelog +++ b/trunk/src/echangelog/echangelog @@ -21,6 +21,7 @@ $Text::Wrap::unexpand = 0; # Global variables my (@files) = (); my (@ebuilds) = (); +my (@conflicts) = (); my (@unknown) = (); my ($input, $editor, $entry, $user, $date, $text, $version, $year); my (@new_versions) = (); @@ -54,17 +55,27 @@ if (-f 'ChangeLog') { open C, 'cvs -fn up 2>&1 |' or die "Can't run cvs -fn up: $!\n"; while () { /ChangeLog/ and next; - /^\? (\S+)/ and push @unknown, $1; - /^([ARMC]) (\S+)/ or next; + /^\? (\S+)/ and do { push @unknown, $1; next; }; + /^C (\S+)/ and do { push @conflicts, $1; next; }; + /^([ARM]) (\S+)/ or next; push @files, $2; - ($actions{$2} = $1) =~ tr/ARMC/+-/d; + ($actions{$2} = $1) =~ tr/ARM/+-/d; } -if (grep !/files.digest|Manifest/, @unknown) { +if (@conflicts) { + print STDERR <