Cloned revisions 4539, 5430, 5638 and 8843 from subversion_adapter.rb