lib/ohloh_scm/adapters/bzr/misc.rb in ohloh_scm-2.2.3 vs lib/ohloh_scm/adapters/bzr/misc.rb in ohloh_scm-2.2.4

- old
+ new

@@ -40,10 +40,13 @@ end def tags tag_strings = run("cd '#{url}' && bzr tags").split(/\n/) tag_strings.map do |tag_string| - tag_string.split(/\s+/) - end + tag_name, rev = tag_string.split(/\s+/) + next if rev == '?' || tag_name == '....' + time_string = run("cd '#{ url }' && bzr log -r #{ rev } | grep 'timestamp:' | sed 's/timestamp://'") + [tag_name, rev, Time.parse(time_string)] + end.compact end end end