diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-08-28 11:47:25 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-08-28 11:47:25 +0000 |
commit | f196a813db4d531ff6577adb88425e1dd606fb9a (patch) | |
tree | 08ddf8c7a57bd48b927224c10ba881fd6972629a /bin/rbot | |
parent | 202b7d11fbae57ec1deddc0397019626ba9ab464 (diff) |
git/svn: check if our git rev corresponds to some svn rev
Diffstat (limited to 'bin/rbot')
-rwxr-xr-x | bin/rbot | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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})" |