svn2git-2.4.0, RUBY 3.2.0

226 views
Skip to first unread message

John Shue

unread,
Mar 28, 2023, 12:30:17 AM3/28/23
to RubyInstaller

F:\PRJ\dba2>svn2git svn://localhost/ --prefix=svn/ --trunk / --verbose --nobranc
hes --notags --authors dba_authors.txt
D:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/svn2git-2.4.0/lib/svn2git/migration.rb:58
:in `parse': undefined method `exists?' for File:Class (NoMethodError)

      if File.exists?(File.expand_path(DEFAULT_AUTHORS_FILE))
             ^^^^^^^^
Did you mean?  exist?
        from D:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/svn2git-2.4.0/lib/svn2git/mi
gration.rb:14:in `initialize'
        from D:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/svn2git-2.4.0/bin/svn2git:26
:in `new'
        from D:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/svn2git-2.4.0/bin/svn2git:26
:in `<top (required)>'
        from D:/Ruby32-x64/bin/svn2git:32:in `load'
        from D:/Ruby32-x64/bin/svn2git:32:in `<main>'

I thought this version of RUBY took out method `exists?

Here is line 58 of migration.rb in this build
if File.exists?(File.expand_path(DEFAULT_AUTHORS_FILE))
   options[:authors] = DEFAULT_AUTHORS_FILE
end

Mohit Sindhwani

unread,
Mar 28, 2023, 12:22:18 PM3/28/23
to rubyin...@googlegroups.com, John Shue
On 2023-3-28 3:36 am, John Shue wrote:
I thought this version of RUBY took out method `exists?

Here is line 58 of migration.rb in this build
if File.exists?(File.expand_path(DEFAULT_AUTHORS_FILE))
   options[:authors] = DEFAULT_AUTHORS_FILE
end


Yes, I think you are right - it was taken out. I think the original svn2git is dead and the more active one (https://github.com/nirvdrum/svn2git) has also not been updated since 2016. You could patch that line and let it run, I guess?

Best regards,
Mohit.

Reply all
Reply to author
Forward
0 new messages