From f196a813db4d531ff6577adb88425e1dd606fb9a Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Tue, 28 Aug 2007 11:47:25 +0000 Subject: git/svn: check if our git rev corresponds to some svn rev --- bin/rbot | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bin') 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})" -- cgit v1.2.3