diff -Nru diffuse-0.4.4/AUTHORS diffuse-0.4.5/AUTHORS --- diffuse-0.4.4/AUTHORS 2010-10-21 01:58:03.000000000 +0000 +++ diffuse-0.4.5/AUTHORS 2011-07-13 09:18:34.000000000 +0000 @@ -4,6 +4,7 @@ Translators ----------- +Cristian Marchi (Italian) Derrick Moser (Japanese) Henri Menke (German, Spanish) Kang Bundo (Korean) diff -Nru diffuse-0.4.4/ChangeLog diffuse-0.4.5/ChangeLog --- diffuse-0.4.4/ChangeLog 2010-10-21 01:58:03.000000000 +0000 +++ diffuse-0.4.5/ChangeLog 2011-07-13 09:18:34.000000000 +0000 @@ -1,3 +1,17 @@ +Diffuse 0.4.5 - 2011-07-13 +- fixed a bug in CVS and Subversion support that prevented Diffuse from displaying some removed files +- added syntax highlighting for JSON files +- added menu items and keyboard shortcuts for "First Tab" and "Last Tab" +- added "--line" command line option +- fixed a bug that caused deleted files to be ignored when using the '-m' option +- fixed a bug that incorrectly encoded pasted text if utf_8 was not specified in the Region Settings preferences +- state information is now stored in ~/.local/share/diffuse +- Diffuse now uses a patience diff-based algorithm to align lines +- added command line option to specify a label to display instead of the file name +- added preference to display the right margin +- added Cristian Marchi's Italian translation +- fixed a bug that could cause "Save As..." to fail with some user specified encodings + Diffuse 0.4.4 - 2010-10-21 - Git support now recognises conflicts when re-applying the stash - double clicking on text can now select full words with non-English characters diff -Nru diffuse-0.4.4/debian/changelog diffuse-0.4.5/debian/changelog --- diffuse-0.4.4/debian/changelog 2010-10-22 07:31:41.000000000 +0000 +++ diffuse-0.4.5/debian/changelog 2011-08-06 05:08:02.000000000 +0000 @@ -1,3 +1,18 @@ +diffuse (0.4.5-1) unstable; urgency=low + + * New upstream release (closes: #623991) + * Removed unnecessary use of python-support + * debian/copyright: + - bumped up copyright years + - updated maintainer's email address + * debian/rules: + - added build-arch and build-indep targets + - removed unnecessary calls of dh_pysupport, dh_makeshlibs and dh_shlibdeps + * Updated Standards-Version: 3.9.2 (no changes needed) + * Deleted deprecated README.Debian + + -- Philipp Huebner Sat, 06 Aug 2011 15:06:57 +1000 + diffuse (0.4.4-1) unstable; urgency=low * New upstream release diff -Nru diffuse-0.4.4/debian/control diffuse-0.4.5/debian/control --- diffuse-0.4.4/debian/control 2010-10-22 07:29:39.000000000 +0000 +++ diffuse-0.4.5/debian/control 2011-08-06 04:59:25.000000000 +0000 @@ -3,8 +3,8 @@ Priority: optional Maintainer: Philipp Huebner Build-Depends: debhelper (>= 7) -Build-Depends-indep: gettext, python, python-support -Standards-Version: 3.9.1 +Build-Depends-indep: gettext +Standards-Version: 3.9.2 Homepage: http://diffuse.sourceforge.net/ Package: diffuse diff -Nru diffuse-0.4.4/debian/copyright diffuse-0.4.5/debian/copyright --- diffuse-0.4.4/debian/copyright 2010-04-13 16:06:37.000000000 +0000 +++ diffuse-0.4.5/debian/copyright 2011-08-06 01:05:44.000000000 +0000 @@ -1,4 +1,4 @@ -This package was debianized by Philipp Huebner on +This package was debianized by Philipp Huebner on Sat, 07 Jun 2008 19:54:13 +0200. It was downloaded from http://sourceforge.net/project/showfiles.php?group_id=157784 @@ -9,7 +9,7 @@ Copyright: - © 2006-2009 Derrick Moser + © 2006-2011 Derrick Moser License: @@ -30,5 +30,5 @@ On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. -The Debian packaging is © 2008-2009, Philipp Huebner and +The Debian packaging is © 2008-2011, Philipp Huebner and is licensed under the GPL-2, see above. diff -Nru diffuse-0.4.4/debian/README.Debian diffuse-0.4.5/debian/README.Debian --- diffuse-0.4.4/debian/README.Debian 2010-04-13 16:06:37.000000000 +0000 +++ diffuse-0.4.5/debian/README.Debian 1970-01-01 00:00:00.000000000 +0000 @@ -1,12 +0,0 @@ -diffuse for Debian ------------------- - -Diffuse now has Japanese and simplified Chinese localisation. -It also follows the XDG standard for configuration files. -Users wishing to keep their old settings should either follow the instruction in -the README file to migrate the data or re-enter them in the preferences dialogue. - -Cheers, -Derrick - - -- Derrick Moser Tue, 13 Oct 2009 04:46:10 +0200 diff -Nru diffuse-0.4.4/debian/rules diffuse-0.4.5/debian/rules --- diffuse-0.4.4/debian/rules 2010-04-13 16:39:30.000000000 +0000 +++ diffuse-0.4.5/debian/rules 2011-08-06 05:08:17.000000000 +0000 @@ -17,7 +17,10 @@ msgfmt -o debian/diffuse/usr/share/locale/$$BASENAME/LC_MESSAGES/diffuse.mo $$po; \ done -build: +build: build-arch build-indep +build-arch: build-stamp +build-indep: build-stamp +build-stamp: binary-arch: install @@ -26,15 +29,12 @@ dh_testroot dh_installchangelogs ChangeLog dh_installdocs README - dh_pysupport dh_compress dh_fixperms - dh_makeshlibs dh_installdeb - dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch -.PHONY: clean binary-indep binary-arch binary install build +.PHONY: clean binary-indep binary-arch binary install build build-arch build-indep diff -Nru diffuse-0.4.4/README diffuse-0.4.5/README --- diffuse-0.4.4/README 2010-10-21 01:58:03.000000000 +0000 +++ diffuse-0.4.5/README 2011-07-13 09:18:34.000000000 +0000 @@ -1,7 +1,7 @@ Diffuse -Version 0.4.4 +Version 0.4.5 -Copyright (C) 2006-2010 Derrick Moser +Copyright (C) 2006-2011 Derrick Moser ---- @@ -72,6 +72,13 @@ The 'windows-installer' directory contains scripts for building an installable package for Windows that includes all dependencies. +Diffuse can be packaged as a portable application by copying the installation +directory to a pen drive and creating a front end that sets the XDG_CONFIG_HOME +and XDG_DATA_DIR environment variables prior to launching Diffuse. The +XDG_CONFIG_HOME and XDG_DATA_DIR environment variables indicate where Diffuse +should store persistent settings (eg. the path to a writable directory on the +pen drive). + ---- Help Documentation: diff -Nru diffuse-0.4.4/README_ru diffuse-0.4.5/README_ru --- diffuse-0.4.4/README_ru 2010-10-21 01:58:03.000000000 +0000 +++ diffuse-0.4.5/README_ru 2011-07-13 09:18:34.000000000 +0000 @@ -1,23 +1,23 @@ Diffuse -Версия 0.4.4 +Версия 0.4.5 -Copyright (C) 2006-2010 Derrick Moser +Copyright (C) 2006-2011 Derrick Moser Перевод:О.Ю.Пахтусов (Oleg Pakhtusov) ---- -Программа Diffuse является графическим инструментом для слияния и сравнения текстовых -файлов. Она может сравнить произвольное число файлов в представлении бок о бок, -предоставляет пользователям возможность вручную корректировать соответствие строк и -редактировать файлы напрямую. Diffuse может также извлекать ревизии файлов из Bazaar, -CVS, Darcs, Git, Mercurial, Monotone, RCS, Subversion и SVK репозиториев для их сравнения -и слияния. +Программа Diffuse является графическим инструментом для слияния и сравнения +текстовых файлов. Она может сравнить произвольное число файлов в представлении +бок о бок, предоставляет пользователям возможность вручную корректировать +соответствие строк и редактировать файлы напрямую. Diffuse может также +извлекать ревизии файлов из Bazaar, CVS, Darcs, Git, Mercurial, Monotone, RCS, +Subversion и SVK репозиториев для их сравнения и слияния. Некоторые основные свойства Diffuse: - возможность сравнивать и объединять произвольное число файлов бок о бок (n-оконные слияния) - соответствие строк может быть скорректирована пользователем вручную - возможность напрямую редактировать файлы -- syntax highlighting +- подсвечивание синтаксиса - Bazaar, CVS, Darcs, Git, Mercurial, Monotone, RCS, Subversion и SVK поддержка - поддержка Unicode - неограниченное число отмен @@ -32,41 +32,41 @@ ---- -Diffuse реализована полностью на Python и должен работать на любой платформе -с Python и PyGTK. Если Вам нужно вручную установить PyGTK, пожалуйста знайте +Diffuse реализована полностью на Python и должен работать на любой платформе с +Python и PyGTK. Если Вам нужно вручную установить PyGTK, пожалуйста знайте зависимости (подчиненные) должны быть инсталлированы до установки PyGTK. Diffuse может быть выполнена непосредственно из не .tar исходного дистрибутива на любой POSIX системе или установлена с инструкциями, описанными в следующем разделе. -Расположение персональных предпочтений, состояния, и файлов инициализации изменены -в 0.4.1 выпуске. Старые настройки могут быть перемещены использованием следующих -команд: +Расположение персональных предпочтений, состояния, и файлов инициализации +изменены в 0.4.1 выпуске. Старые настройки могут быть перемещены использованием +следующих команд: $ mkdir -p ~/.config/diffuse $ mv ~/.diffuse/config ~/.config/diffuse/state $ mv ~/.diffuse/* ~/.config/diffuse $ rmdir ~/.diffuse -Правила для парсинга файлов в ~/.diffuse изменены в 0.3.0 выпуске. -Могут сообщаться нефатальные ошибки на парсинге старых файлов. Эти -ошибки могут быть устранены удалением проблемных строк (или всего -файла) из ~/.config/diffuse/diffuserc. +Правила для парсинга файлов в ~/.diffuse изменены в 0.3.0 выпуске. Могут +сообщаться нефатальные ошибки на парсинге старых файлов. Эти ошибки могут быть +устранены удалением проблемных строк (или всего файла) из +~/.config/diffuse/diffuserc. ---- Установка на POSIX системах: -Выполните 'install.py' скрипт для установки Diffuse. Скрипт принимает -несколько опций для настройки поведения установки. Используйте опцию -'--help', чтобы получить полное перечисление этих опциий. +Выполните 'install.py' скрипт для установки Diffuse. Скрипт принимает несколько +опций для настройки поведения установки. Используйте опцию '--help', чтобы +получить полное перечисление этих опциий. -Diffuse может быть деинсталлирован выполнением 'install.py' скрипта с -опцией '--remove'. +Diffuse может быть деинсталлирован выполнением 'install.py' скрипта с опцией +'--remove'. -Определите опции '--destdir=' и '--files-only' для 'install.py' скрипта -при использовании для создания платформо-определенного пакета Diffuse. +Определите опции '--destdir=' и '--files-only' для 'install.py' скрипта при +использовании для создания платформо-определенного пакета Diffuse. ---- @@ -75,11 +75,19 @@ Каталог 'windows-installer' содержит скрипты для сборки устанавливаемого Windows пакета, который включает все зависимости. +Программа Diffuse может быть собрана как портативное приложение путем +копирования каталога установки на флэшку и создания внешнего интерфейса, +который устанавливает переменные окружения (среды) XDG_CONFIG_HOME и +XDG_DATA_DIR перед запуском Diffuse. Переменные окружения (среды) +XDG_CONFIG_HOME и XDG_DATA_DIR указывают где программа Diffuse должна хранить +свои постоянные настройки (напр. путь к перезаписываемому каталогу на данной +флэшке). + ---- Справочная Документация: Справочная документация Diffuse написана в формате DocBook и может быть легко преобразована в другие форматы, используя XSLT таблицы стилей. Если локальная -справочная документация или ее браузер недоступны, Diffuse попытается отобразить -онлайновую справочную документацию, используя веб-браузер. +справочная документация или ее браузер недоступны, Diffuse попытается +отобразить онлайновую справочную документацию, используя веб-браузер. diff -Nru diffuse-0.4.4/src/usr/bin/diffuse diffuse-0.4.5/src/usr/bin/diffuse --- diffuse-0.4.4/src/usr/bin/diffuse 2010-10-21 01:58:02.000000000 +0000 +++ diffuse-0.4.5/src/usr/bin/diffuse 2011-07-13 09:18:33.000000000 +0000 @@ -1,7 +1,7 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -# Copyright (C) 2006-2010 Derrick Moser +# Copyright (C) 2006-2011 Derrick Moser # # This program is free software; you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free Software @@ -19,6 +19,7 @@ # (http://www.fsf.org/) or by writing to the Free Software Foundation, Inc., # 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +import codecs import gettext import locale import os @@ -29,7 +30,7 @@ if hasattr(sys, 'frozen'): app_path = sys.executable else: - app_path = sys.argv[0] + app_path = os.path.realpath(sys.argv[0]) bin_dir = os.path.dirname(app_path) # platform test @@ -63,19 +64,26 @@ _ = gettext.gettext APP_NAME = 'Diffuse' -VERSION = '0.4.4' -COPYRIGHT = _('Copyright © 2006-2010 Derrick Moser') +VERSION = '0.4.5' +COPYRIGHT = _('Copyright © 2006-2011 Derrick Moser') WEBSITE = 'http://diffuse.sourceforge.net/' +# print a UTF-8 string using the host's native encoding +def printMessage(s): + try: + print codecs.encode(unicode(s, 'utf_8'), sys.getfilesystemencoding()) + except UnicodeEncodeError: + pass + # process help options if __name__ == '__main__': args = sys.argv argc = len(args) if argc == 2 and args[1] in [ '-v', '--version' ]: - print '%s %s\n%s' % (APP_NAME, VERSION, COPYRIGHT) + printMessage('%s %s\n%s' % (APP_NAME, VERSION, COPYRIGHT)) sys.exit(0) if argc == 2 and args[1] in [ '-h', '-?', '--help' ]: - print _("""Usage: + printMessage(_('''Usage: diffuse [ [OPTION...] [FILE...] ]... diffuse ( -h | -? | --help | -v | --version ) @@ -97,10 +105,12 @@ ( -c | --commit ) File revisions and ( -D | --close-if-same ) Close all tabs with no differences ( -e | --encoding ) Use to read and write files + ( -L | --label )