Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Also unescape in patch name and comment

  • Loading branch information...
commit 9d5a90f69d8e4d44a85794f4349145489a0720c1 1 parent 24157c1
@nominolo nominolo authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 darcs-to-git
View
4 darcs-to-git
@@ -86,8 +86,8 @@ class DarcsPatch
patch_xml.attribute('local_date').value)
self.inverted = (patch_xml.attribute('inverted').to_s == 'True')
self.identifier = patch_xml.attribute('hash').to_s
- self.name = patch_xml.get_elements('name').first.get_text.value rescue 'Unnamed patch'
- self.comment = patch_xml.get_elements('comment').first.get_text.value rescue nil
+ self.name = decode_darcs_escapes(patch_xml.get_elements('name').first.get_text.value) rescue 'Unnamed patch'
+ self.comment = decode_darcs_escapes(patch_xml.get_elements('comment').first.get_text.value) rescue nil
if (self.is_tag = (self.name =~ /^TAG (.*)/))
self.git_tag_name = $1.gsub(/[\s:]+/, '_')
end
Please sign in to comment.
Something went wrong with that request. Please try again.