Sha256: df488d5b2b529d94888f088286f4a8b102fb4b19a9c211793e2334222d30b059

Contents?: true

Size: 509 Bytes

Versions: 37

Compression:

Stored size: 509 Bytes

Contents

module OhlohScm::Adapters
	class BzrAdapter < AbstractAdapter
		def head_token
			run("bzr log --limit 1 --show-id #{url} 2> /dev/null | grep ^revision-id | cut -f2 -d' '").strip
		end

		def head
			verbose_commit(head_token)
		end

		def parent_tokens(commit)
			run("cd '#{url}' && bzr log --long --show-id --limit 1 -c #{to_rev_param(commit.token)} | grep ^parent | cut -f2 -d' '").split("\n")
		end

		def parents(commit)
			parent_tokens(commit).collect { |token| verbose_commit(token) }
		end
	end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
ohloh_scm-2.5.1 lib/ohloh_scm/adapters/bzr/head.rb
ohloh_scm-2.4.14 lib/ohloh_scm/adapters/bzr/head.rb
ohloh_scm-2.4.13 lib/ohloh_scm/adapters/bzr/head.rb
ohloh_scm-2.4.12 lib/ohloh_scm/adapters/bzr/head.rb
ohloh_scm-2.4.11 lib/ohloh_scm/adapters/bzr/head.rb
ohloh_scm-2.4.10 lib/ohloh_scm/adapters/bzr/head.rb
ohloh_scm-2.4.9 lib/ohloh_scm/adapters/bzr/head.rb
ohloh_scm-2.4.8 lib/ohloh_scm/adapters/bzr/head.rb
ohloh_scm-2.4.7 lib/ohloh_scm/adapters/bzr/head.rb
ohloh_scm-2.4.6 lib/ohloh_scm/adapters/bzr/head.rb
ohloh_scm-2.4.5 lib/ohloh_scm/adapters/bzr/head.rb
ohloh_scm-2.4.4 lib/ohloh_scm/adapters/bzr/head.rb
ohloh_scm-2.4.3 lib/ohloh_scm/adapters/bzr/head.rb
ohloh_scm-2.4.1 lib/ohloh_scm/adapters/bzr/head.rb
ohloh_scm-2.4.0 lib/ohloh_scm/adapters/bzr/head.rb
ohloh_scm-2.3.5 lib/ohloh_scm/adapters/bzr/head.rb
ohloh_scm-2.3.4 lib/ohloh_scm/adapters/bzr/head.rb
ohloh_scm-2.3.2 lib/ohloh_scm/adapters/bzr/head.rb
ohloh_scm-2.3.1 lib/ohloh_scm/adapters/bzr/head.rb
ohloh_scm-2.3.0 lib/ohloh_scm/adapters/bzr/head.rb