lib/tasks/add.rb in dev-2.0.194 vs lib/tasks/add.rb in dev-2.0.195
- old
+ new
@@ -15,26 +15,20 @@
status=Command.output("svn status #{f}")
error=Command.error("svn status #{f}")
if(status.include?('?') || status.include?('was not found') || error.include?('was not found'))
puts "svn add #{f} --parents"
add "svn add #{f} --parents"
- else
- #puts "#{status}" if status.strip.length > 0
- #puts " #{f}" if status.strip.length == 0
end
end
}
end
if(File.exists?('.git'))
SOURCE.each{|f|
if(File.exists?(f) && File.file?(f))
status=`git status #{f} --short`
- #if status.include?('untracked') || status.include?('modified:')
if status.include?('??') || status.include?(' M ')
puts "git add #{f} -v"
add "git add #{f} -v"
- else
- #puts status if status.strip.length > 0
end
end
}
end
end
\ No newline at end of file