Sha256: 3f6889d7ba0674416bd1a202ecd3f7f83ccefff8ac3293fcf29c6ebbc571a1a9
Contents?: true
Size: 475 Bytes
Versions: 16
Compression:
Stored size: 475 Bytes
Contents
# frozen_string_literal: true module OhlohScm module Bzr class Scm < OhlohScm::Scm def pull(from, callback) callback.update(0, 1) if status.exist? run "cd '#{url}' && bzr revert && bzr pull --overwrite '#{from.url}'" else run "rm -rf '#{url}'" run "bzr branch '#{from.url}' '#{url}'" end callback.update(1, 1) end def vcs_path "#{url}/.bzr" end end end end
Version data entries
16 entries across 16 versions & 1 rubygems