Defect #3677

fetching changesets from Mercurial repository fails

Added by Andreas Deininger about 8 years ago. Updated over 6 years ago.

Status:ClosedStart date:2009-07-27
Priority:NormalDue date:
Assignee:Toshi MARUYAMA% Done:

0%

Category:SCM
Target version:-
Resolution:Duplicate Affected version:

Description

I'm trying to fetching changesets from a HG repository attached to my project.

ruby script/runner "Repository.fetch:changesets"

That task chokes due to the fact that one single file in my repository contains umlauts (character: ä) in its file name.

Stacktrace:


c:/Programme/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/runner.rb:47: c:/Programme/ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract_adapter.rb:188:in `log': Mysql::Error: Incorrect string value: '\xE4nken....' for column 'path' at row 1: INSERT INTO `changes` (`changeset_id`, `action`, `revision`, `branch`, `from_path`, `path`, `from_revision`) VALUES(38, 'A', NULL, NULL, NULL, '/H_Programm_rpy/Paralleles_Tränken.ucd', NULL) (ActiveRecord::StatementInvalid)
    from c:/Programme/ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/mysql_adapter.rb:309:in `execute'
    from c:/Programme/ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/database_statements.rb:171:in `insert_sql'
    from c:/Programme/ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/mysql_adapter.rb:319:in `insert_sql'
    from c:/Programme/ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/database_statements.rb:44:in `insert_without_query_dirty'
    from c:/Programme/ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/query_cache.rb:18:in `insert'
    from c:/Programme/ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/base.rb:2733:in `create_without_callbacks'
    from c:/Programme/ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/callbacks.rb:237:in `create_without_timestamps'
    from c:/Programme/ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/timestamp.rb:29:in `create'
     ... 30 levels...
    from c:/Programme/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/runner.rb:47
    from c:/Programme/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    from c:/Programme/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from script/runner:3


Related issues

Duplicates Redmine - Defect #2664: Mercurial: Repository path encoding of non UTF-8 characters Closed 2009-02-04

History

#1 Updated by Toshi MARUYAMA almost 7 years ago

  • Subject changed from fetching changesets from HG repository fails to fetching changesets from Mercurial repository fails
  • Category set to SCM
  • Assignee set to Toshi MARUYAMA

#2 Updated by Toshi MARUYAMA over 6 years ago

  • Status changed from New to Closed
  • Resolution set to Duplicate

Try #2664 note-19 patches.

Also available in: Atom PDF