Skip to content

Commit

Permalink
Fix regexp to recognize revno from merged revisions
Browse files Browse the repository at this point in the history
  • Loading branch information
phinze authored and cpjolicoeur committed Mar 20, 2010
1 parent 6d5cba9 commit 2f3fd56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cerberus/scm/bzr.rb
Expand Up @@ -54,7 +54,7 @@ def extract_last_commit_info
# message:
# sidfugsdiufgsdifusdg

@revision = lastlog.match(/^revno: (\d+)$/)[1].to_i
@revision = lastlog.match(/^revno: (\d+).*$/)[1].to_i
@author = lastlog.match(/^committer: (.+)$/)[1]
@date = Time.parse(lastlog.match(/^timestamp: (.+)$/)[1])
@message = lastlog.match(/message:\n (.*)/m)[1]
Expand Down

0 comments on commit 2f3fd56

Please sign in to comment.