summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/rbot6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/rbot b/bin/rbot
index 1a879380..98bc3339 100755
--- a/bin/rbot
+++ b/bin/rbot
@@ -51,7 +51,11 @@ if $version =~ /svn/
branch = $1.dup || "unknown"
changed = git_out.match(/^# Change(.*)\n/)
rev = "revision "
- rev << `git rev-parse HEAD`[0..5]
+ git_out = `git log -1 --pretty=format:"%h%n%b"`.split("\n")
+ rev << git_out.first
+ if git_out.last.match(/^git-svn-id: \S+@(\d+)/)
+ rev << "(svn #{$1})"
+ end
rev << ", local changes" if changed
$version << " (#{branch} branch, #{rev})"