[Webkit-unassigned] [Bug 29622] New: svn-apply can exit(0) even on patch failure
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Sep 21 16:32:14 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=29622
Summary: svn-apply can exit(0) even on patch failure
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Mac OS X 10.5
Status: NEW
Severity: Normal
Priority: P2
Component: Tools / Tests
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: eric at webkit.org
svn-apply can exit(0) even on patch failure
This is bad for the commit-queue/bugzilla-tool as it depends on svn-apply
exiting non-zero on patch failure. It's possible that bugzilla-tool could land
an incomplete patch as-is.
Some examples from the code:
sub scmCopy($$)
{
my ($source, $destination) = @_;
if ($isSVN) {
system "svn", "copy", $source, $destination;
} elsif ($isGit) {
system "cp", $source, $destination;
system "git", "add", $destination;
}
}
sub scmAdd($)
{
my ($path) = @_;
if ($isSVN) {
system "svn", "add", $path;
} elsif ($isGit) {
system "git", "add", $path;
}
}
sub scmRemove($)
{
my ($path) = @_;
if ($isSVN) {
# SVN is very verbose when removing directories. Squelch all output
except the last line.
my $svnOutput;
open SVN, "svn rm --force '$path' |" or die "svn rm --force '$path'
failed!";
# Only print the last line. Subversion outputs all changed statuses
below $dir
while (<SVN>) {
$svnOutput = $_;
}
close SVN;
print $svnOutput if $svnOutput;
} elsif ($isGit) {
system "git", "rm", "--force", $path;
}
}
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list