Changeset 2972
- Timestamp:
- 11/10/05 16:14:25 (4 years ago)
- Files:
-
- trunk/railties/CHANGELOG (modified) (1 diff)
- trunk/railties/lib/rails_generator/options.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/railties/CHANGELOG
r2967 r2972 1 1 *SVN* 2 3 * Better svn status matching for generators. #2814 [François Beausoleil <francois.beausoleil@gmail.com>, Blair Zajac <blair@orcaware.com>] 2 4 3 5 * Don't reload routes until plugins have been loaded so they have a chance to extend the routing capabilities [DHH] trunk/railties/lib/rails_generator/options.rb
r2174 r2972 128 128 opt.on('-t', '--backtrace', 'Debugging: show backtrace on errors.') { |options[:backtrace]| } 129 129 opt.on('-h', '--help', 'Show this help message.') { |options[:help]| } 130 opt.on('-c', '--svn', 'Modify files with subversion. (Note: svn must be in path)') { options[:svn] = Hash[*`svn status`.collect { |e| e.chop.split.reverse unless e.chop.split.size != 2 }.flatten] } 130 opt.on('-c', '--svn', 'Modify files with subversion. (Note: svn must be in path)') do 131 options[:svn] = `svn status`.inject({}) do |opt, e| 132 opt[e.chomp[7..-1]] = true 133 opt 134 end 135 end 131 136 end 132 137