From: agriffis Date: Tue, 26 Apr 2005 21:08:59 +0000 (-0000) Subject: * detect conflicts explicitly X-Git-Tag: gentoolkit-0.2.4.3~297 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6cedb5747ecceddabf10627e96abb5c20d1dc78f;p=gentoolkit.git * detect conflicts explicitly * report ChangeLog in the list of files if it's the only file that is changing #90326 svn path=/; revision=209 --- 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 <