1. 27 Mar, 2015 6 commits
    • Jérémy Bobbio's avatar
      Release version 12 · d46ef291
      Jérémy Bobbio authored
      d46ef291
    • Jérémy Bobbio's avatar
    • Jérémy Bobbio's avatar
      Perform content comparison when creating Difference objects · 3d5f0d7b
      Jérémy Bobbio authored
      Instead of storing the full content twice when creating Difference objects, we
      now directly run `diff` and store the unified diff. Large blocks in the diff
      are still trimmed. This results in huge memory savings and debbindiff can now
      happily compare changes for installation-guide.
      
      As tool_required() is not only for comparators anymore, we move it to
      debbindiff, together with logger.
      
      Text output becomes really straightforward as we just have to write what
      we've previously recorded.
      
      For the HTML output, we stop using vim and instead borrow code from
      diff2html.py found at <http://git.droids-corp.org/?p=diff2html.git>.
      
      Closes: #772029
      Closes: #779476
      3d5f0d7b
    • Jérémy Bobbio's avatar
      Try with utf-8 encoding when comparing text files · 383b4e8f
      Jérémy Bobbio authored
      If different encodings are detected, compare_text_files will be given
      encoding=None. Let's try to decode stuff as utf-8 as a best guess.
      We'll fallback on binary comparison if that doesn't work out well.
      383b4e8f
    • Helmut Grohne's avatar
      attempt at fixing unicode issues with --text · a8ad371e
      Helmut Grohne authored and Jérémy Bobbio's avatar Jérémy Bobbio committed
      Make print_func accept unicode objects by opening the output using the
      codecs module. This affects --html output.
      
      Closes: #778641
      a8ad371e
    • Helmut Grohne's avatar
      fix IndexError from --text with empty files (Closes: #781280) · d0f7e860
      Helmut Grohne authored and Mattia Rizzolo's avatar Mattia Rizzolo committed
      Example input package triggering the error: libreadline6
      
      Example traceback being fixed:
      
      Traceback (most recent call last):
        File "/usr/bin/debbindiff", line 120, in <module>
          sys.exit(main())
        File "/usr/bin/debbindiff", line 114, in main
          output_text(differences, print_func=print_func)
        File "/usr/lib/python2.7/dist-packages/debbindiff/presenters/text.py", line 71, in output_text
          print_details(difference, print_func)
        File "/usr/lib/python2.7/dist-packages/debbindiff/presenters/text.py", line 62, in print_details
          print_details(detail, new_print_func)
        File "/usr/lib/python2.7/dist-packages/debbindiff/presenters/text.py", line 62, in print_details
          print_details(detail, new_print_func)
        File "/usr/lib/python2.7/dist-packages/debbindiff/presenters/text.py", line 62, in print_details
          print_details(detail, new_print_func)
        File "/usr/lib/python2.7/dist-packages/debbindiff/presenters/text.py", line 59, in print_details
          print_difference(detail, print_func)
        File "/usr/lib/python2.7/dist-packages/debbindiff/presenters/text.py", line 36, in print_difference
          if not difference.lines2[-1].endswith('\n'):
      IndexError: list index out of range
      d0f7e860
  2. 23 Mar, 2015 4 commits
  3. 20 Mar, 2015 11 commits
  4. 19 Mar, 2015 3 commits
  5. 18 Mar, 2015 3 commits
  6. 06 Mar, 2015 1 commit
  7. 26 Feb, 2015 2 commits
  8. 24 Feb, 2015 1 commit
  9. 21 Feb, 2015 2 commits
  10. 19 Feb, 2015 1 commit
  11. 15 Feb, 2015 6 commits