Permalink
Browse files

adding the update support detection vcs

  • Loading branch information...
1 parent 17eaa76 commit a7db4d1c9fa4aa207a6820e88d47affdc6d2d3fe David Rouchy committed Mar 27, 2011
Showing with 14 additions and 0 deletions.
  1. +4 −0 extras/big_tuna/vcs/base.rb
  2. +4 −0 extras/big_tuna/vcs/git.rb
  3. +6 −0 test/unit/git_vcs_test.rb
View
4 extras/big_tuna/vcs/base.rb
@@ -15,5 +15,9 @@ def self.inherited(klass)
BigTuna.vcses << klass
BigTuna.logger.info("Registered VCS: %s" % [klass])
end
+
+ def support_incremental_build?
+ respond_to?(:update)
+ end
end
end
View
4 extras/big_tuna/vcs/git.rb
@@ -54,5 +54,9 @@ def clone(where_to)
end
BigTuna::Runner.execute(Dir.pwd, command)
end
+
+ def update(where_to)
+
+ end
end
end
View
6 test/unit/git_vcs_test.rb
@@ -48,6 +48,12 @@ def teardown
assert File.file?("test/files/repo_clone/new_file")
end
+ test "git should support incremental_build" do
+ vcs = init_repo
+
+ assert vcs.support_incremental_build?
+ end
+
private
def init_repo(dir = "test/files/repo", branch = "master")
BigTuna::VCS::Git.new(dir, branch)

0 comments on commit a7db4d1

Please sign in to comment.