Skip to contentSkip to conversation

Fix rumpuserxen-bisection

PATCH New Ian Jackson 1 participant 3 messages Jun 27, 2014

lore
Share & tools
lore
#0 lore raw

cover Fix rumpuserxen-bisection

adhoc-revtuple-generator would die if it reached a root of the git history. Fix this bug.

1/2 adhoc-revtuple-generator: Cope with parentless 2/2 adhoc-revtuple-generator: Include $treename in

I am about to push this straight to production, bypassing the push gate, since it affects only the bisector (which is currently failing) and not any of the tests.

#1 lore raw

PATCH 1/2 adhoc-revtuple-generator: Cope with parentless git commits

---
 adhoc-revtuple-generator |    1 -
 1 file changed, 1 deletion(-)
adhoc-revtuple-generator +0 -1
index 56dec43..edf5e97 100755
@@ -129,7 +129,6 @@ END
 	    m/^(\w+)\s(.*)$/ or die "$cmd: $_ ?";
 	    push @{ $r{$1} }, $2;
 	}
-	die unless @{ $r{parent} } >= 1;
 	die unless @{ $r{commit} } == 1;
 	die unless @{ $r{committer} } == 1;
 	die unless $r{committer}[0] =~ m/ (\d+)(?: [-+]\d{4})$/;
Signature · 1 line
1.7.10.4
#2 lore raw

PATCH 2/2 adhoc-revtuple-generator: Include $treename in some error messages

In reply to Ian Jackson
---
 adhoc-revtuple-generator |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
adhoc-revtuple-generator +3 -3
index edf5e97..4a2ec63 100755
@@ -129,9 +129,9 @@ END
 	    m/^(\w+)\s(.*)$/ or die "$cmd: $_ ?";
 	    push @{ $r{$1} }, $2;
 	}
-	die unless @{ $r{commit} } == 1;
-	die unless @{ $r{committer} } == 1;
-	die unless $r{committer}[0] =~ m/ (\d+)(?: [-+]\d{4})$/;
+	die "$treename -" unless @{ $r{commit} } == 1;
+	die "$treename -" unless @{ $r{committer} } == 1;
+	die "$treename -" unless $r{committer}[0] =~ m/ (\d+)(?: [-+]\d{4})$/;
 	my $date= $1;
 	return {
             Generator => "git_generator:$treename",
Signature · 1 line
1.7.10.4