lib/tasks/add.rb in dev-2.1.58 vs lib/tasks/add.rb in dev-2.1.59

- old
+ new

@@ -1,6 +1,9 @@ -puts __FILE__ if defined?(DEBUG) +if defined?(DEBUG) + puts DELIMITER + puts __FILE__ +end desc 'adds source files to git or subversion' task :add do Tasks.execute_task :add;end class Add < Array @@ -21,25 +24,10 @@ if(m[:file] == f && m[:action] == '?') add_quiet "svn add \"#{f}\" --parents" end end end - # if(f.include?(' ')) - # status=Command.output("svn status \"#{f}\"") - # error=Command.error("svn status \"#{f}\"") - # else - # status=Command.output("svn status #{f}") - # error=Command.error("svn status #{f}") - # end - # if(status.include?('?') || status.include?('was not found') || error.include?('was not found')) - # if(f.include?(' ')) - # add_quiet "svn add \"#{f}\" --parents" - # else - # add_quiet "svn add #{f} --parents" - # end - # end - #end } end if(File.exists?('.git')) SOURCE.each{|f| if(File.exists?(f) && File.file?(f)) @@ -50,7 +38,9 @@ end } end end end + + log_debug_info("Add") if defined?(DEBUG) end end \ No newline at end of file