Skip to content
Snippets Groups Projects
Commit e91599d1 authored by Mark Harrison's avatar Mark Harrison
Browse files

Minor change to how a revision is shown if the svn info command fails.

git-svn-id: https://labs.omniti.com/resmon/trunk@112 8c0face9-b7db-6ec6-c4b3-d5f7145c7d55
parent 9e463456
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@ sub handler {
}
}
my $output = cache_command("$svn info $resmon_dir 2>&1", 600);
my $revision = 0;
my $revision = "svn revision unknown";
for (split(/\n/, $output)) {
if (/^Revision:\s*(\d*)$/) { $revision = "r$1"; }
if (/^svn: (.*) is not a working copy$/) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment