monotone: When getting the log, tell monotone how many entries we want, rather than closing the pipe, which it dislikes. (thm)
parent
b2366f764b
commit
f9b87a9f8b
|
@ -525,13 +525,12 @@ sub rcs_recentchanges ($) { #{{{
|
||||||
my $child = open(MTNLOG, "-|");
|
my $child = open(MTNLOG, "-|");
|
||||||
if (! $child) {
|
if (! $child) {
|
||||||
exec("mtn", "log", "--root=$config{mtnrootdir}", "--no-graph",
|
exec("mtn", "log", "--root=$config{mtnrootdir}", "--no-graph",
|
||||||
"--brief") || error("mtn log failed to run");
|
"--brief", "--last=$num") || error("mtn log failed to run");
|
||||||
}
|
}
|
||||||
|
|
||||||
while (($num >= 0) and (my $line = <MTNLOG>)) {
|
while (my $line = <MTNLOG>) {
|
||||||
if ($line =~ m/^($sha1_pattern)/) {
|
if ($line =~ m/^($sha1_pattern)/) {
|
||||||
push @revs, $1;
|
push @revs, $1;
|
||||||
$num -= 1;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
close MTNLOG || debug("mtn log exited $?");
|
close MTNLOG || debug("mtn log exited $?");
|
||||||
|
|
|
@ -16,6 +16,8 @@ ikiwiki (2.71) UNRELEASED; urgency=low
|
||||||
* meta: Pass info to htmlscrubber so htmlscrubber_skip can take effect.
|
* meta: Pass info to htmlscrubber so htmlscrubber_skip can take effect.
|
||||||
* htmlbalance: don't compact whitespace, and set misc other options (smcv)
|
* htmlbalance: don't compact whitespace, and set misc other options (smcv)
|
||||||
* rename: Fix double-escaping of page name in edit box.
|
* rename: Fix double-escaping of page name in edit box.
|
||||||
|
* monotone: When getting the log, tell monotone how many entries
|
||||||
|
we want, rather than closing the pipe, which it dislikes. (thm)
|
||||||
|
|
||||||
-- Joey Hess <joeyh@debian.org> Mon, 17 Nov 2008 14:02:10 -0500
|
-- Joey Hess <joeyh@debian.org> Mon, 17 Nov 2008 14:02:10 -0500
|
||||||
|
|
||||||
|
|
|
@ -19,3 +19,6 @@ When using monotone as revision control system, a "mtn: operation canceled: Brok
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
close MTNLOG || debug("mtn log exited $?");
|
close MTNLOG || debug("mtn log exited $?");
|
||||||
|
|
||||||
|
> Thanks for the patch, and for testing the monotone backend.
|
||||||
|
> applied [[done]] --[[Joey]]
|
||||||
|
|
Loading…
Reference in New Issue