Anonymous avatar Anonymous committed 1678fc1

Fixed issue with loading dirstates. Ruby1.9 specifies that Hash#select returns a hash, not an array anymore.

Comments (0)

Files changed (2)

 lib/amp/commands/commands/workflows/hg/update.rb
 lib/amp/commands/commands/workflows/hg/verify.rb
 lib/amp/commands/commands/workflows/hg/view.rb
+lib/amp/commands/commands/workflows/hg/what_changed.rb
 lib/amp/commands/dispatch.rb
 lib/amp/commands/hooks.rb
 lib/amp/dependencies/amp_support.rb
 lib/amp/repository/abstract/common_methods/staging_area.rb
 lib/amp/repository/abstract/common_methods/versioned_file.rb
 lib/amp/repository/generic_repo_picker.rb
+lib/amp/repository/git/repo_format/changeset.rb
+lib/amp/repository/git/repo_format/staging_area.rb
+lib/amp/repository/git/repo_format/versioned_file.rb
+lib/amp/repository/git/repositories/local_repository.rb
 lib/amp/repository/git/repository.rb
 lib/amp/repository/mercurial/encoding/mercurial_diff.rb
 lib/amp/repository/mercurial/encoding/mercurial_patch.rb
 lib/amp/repository/mercurial/repo_format/store.rb
 lib/amp/repository/mercurial/repo_format/tag_manager.rb
 lib/amp/repository/mercurial/repo_format/updatable.rb
+lib/amp/repository/mercurial/repo_format/updater.rb
 lib/amp/repository/mercurial/repo_format/verification.rb
 lib/amp/repository/mercurial/repositories/bundle_repository.rb
 lib/amp/repository/mercurial/repositories/http_repository.rb
 test/revlog_tests/testindex.i
 test/store_tests/store.tar.gz
 test/store_tests/test_fncache_store.rb
+test/test_19_compatibility.rb
 test/test_base85.rb
 test/test_bdiff.rb
 test/test_changegroup.rb
 test/test_commands.rb
 test/test_difflib.rb
 test/test_generator.rb
-test/test_helper.rb
+test/test_ignore.rb
 test/test_journal.rb
 test/test_match.rb
 test/test_mdiff.rb
 test/test_multi_io.rb
 test/test_support.rb
 test/test_templates.rb
-test/test_ui.rb
+test/test_ui.rb
+test/testutilities.rb

lib/amp/repository/mercurial/repo_format/dir_state.rb

         # 
         # @return [NilClass]
         def generate_ignore
-          @ignore = @config['ui'].select {|k, v| k == "ignore" }
+          @ignore = @config['ui'].select {|k, v| k == "ignore" }.to_a
           
           @ignore << ".hgignore"
           @ignore.compact
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.