Merge lp:~sinzui/ubuntu/precise/gedit-developer-plugins/0.5.14 into lp:ubuntu/precise/gedit-developer-plugins

Proposed by Curtis Hovey
Status: Merged
Merged at revision: 13
Proposed branch: lp:~sinzui/ubuntu/precise/gedit-developer-plugins/0.5.14
Merge into: lp:ubuntu/precise/gedit-developer-plugins
Diff against target: 208 lines (+53/-14)
6 files modified
ChangeLog (+12/-0)
configure (+10/-10)
configure.ac (+1/-1)
debian/changelog (+8/-0)
plugins/gdp/bzr.py (+7/-2)
plugins/gdp/tests/test_bzr.py (+15/-1)
To merge this branch: bzr merge lp:~sinzui/ubuntu/precise/gedit-developer-plugins/0.5.14
Reviewer Review Type Date Requested Status
Daniel Holbach (community) Approve
Ubuntu branches Pending
Review via email: mp+100159@code.launchpad.net

Description of the change

This branch fixes bug #960380 in Ubuntu and has a premptive fix for bug #960380 (upstream bzr-gtk 0.104.0 change how ui events are handled).

To post a comment you must log in.
Revision history for this message
Daniel Holbach (dholbach) wrote :

Good work!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'ChangeLog'
--- ChangeLog 2012-03-12 13:04:13 +0000
+++ ChangeLog 2012-03-30 14:36:23 +0000
@@ -1,5 +1,17 @@
1<Generated by bzr log --log-format=gnu>1<Generated by bzr log --log-format=gnu>
22
32012-03-29 Curtis Hovey <sinzui.is@verizon.net>
4
5 [570] Do not look for missing in a branch without a parent.
6
72012-03-29 Curtis Hovey <sinzui.is@verizon.net>
8
9 [569] Increment version for release.
10
112012-03-20 Curtis Hovey <sinzui.is@verizon.net>
12
13 [568] Always setup to bzr-gtk ui factory.
14
32012-03-10 Curtis Hovey <sinzui.is@verizon.net>152012-03-10 Curtis Hovey <sinzui.is@verizon.net>
416
5 [567] Inc version.17 [567] Inc version.
618
=== modified file 'configure'
--- configure 2012-03-12 13:04:13 +0000
+++ configure 2012-03-30 14:36:23 +0000
@@ -1,6 +1,6 @@
1#! /bin/sh1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for gedit-developer-plugins 0.5.13.3# Generated by GNU Autoconf 2.68 for gedit-developer-plugins 0.5.14.
4#4#
5# Report bugs to <sinzui.is@verizon.net>.5# Report bugs to <sinzui.is@verizon.net>.
6#6#
@@ -560,8 +560,8 @@
560# Identity of this package.560# Identity of this package.
561PACKAGE_NAME='gedit-developer-plugins'561PACKAGE_NAME='gedit-developer-plugins'
562PACKAGE_TARNAME='gedit-developer-plugins'562PACKAGE_TARNAME='gedit-developer-plugins'
563PACKAGE_VERSION='0.5.13'563PACKAGE_VERSION='0.5.14'
564PACKAGE_STRING='gedit-developer-plugins 0.5.13'564PACKAGE_STRING='gedit-developer-plugins 0.5.14'
565PACKAGE_BUGREPORT='sinzui.is@verizon.net'565PACKAGE_BUGREPORT='sinzui.is@verizon.net'
566PACKAGE_URL=''566PACKAGE_URL=''
567567
@@ -1319,7 +1319,7 @@
1319 # Omit some internal or obsolete options to make the list less imposing.1319 # Omit some internal or obsolete options to make the list less imposing.
1320 # This message is too long to be a string in the A/UX 3.1 sh.1320 # This message is too long to be a string in the A/UX 3.1 sh.
1321 cat <<_ACEOF1321 cat <<_ACEOF
1322\`configure' configures gedit-developer-plugins 0.5.13 to adapt to many kinds of systems.1322\`configure' configures gedit-developer-plugins 0.5.14 to adapt to many kinds of systems.
13231323
1324Usage: $0 [OPTION]... [VAR=VALUE]...1324Usage: $0 [OPTION]... [VAR=VALUE]...
13251325
@@ -1386,7 +1386,7 @@
13861386
1387if test -n "$ac_init_help"; then1387if test -n "$ac_init_help"; then
1388 case $ac_init_help in1388 case $ac_init_help in
1389 short | recursive ) echo "Configuration of gedit-developer-plugins 0.5.13:";;1389 short | recursive ) echo "Configuration of gedit-developer-plugins 0.5.14:";;
1390 esac1390 esac
1391 cat <<\_ACEOF1391 cat <<\_ACEOF
13921392
@@ -1491,7 +1491,7 @@
1491test -n "$ac_init_help" && exit $ac_status1491test -n "$ac_init_help" && exit $ac_status
1492if $ac_init_version; then1492if $ac_init_version; then
1493 cat <<\_ACEOF1493 cat <<\_ACEOF
1494gedit-developer-plugins configure 0.5.131494gedit-developer-plugins configure 0.5.14
1495generated by GNU Autoconf 2.681495generated by GNU Autoconf 2.68
14961496
1497Copyright (C) 2010 Free Software Foundation, Inc.1497Copyright (C) 2010 Free Software Foundation, Inc.
@@ -1860,7 +1860,7 @@
1860This file contains any messages produced by compilers while1860This file contains any messages produced by compilers while
1861running configure, to aid debugging if configure makes a mistake.1861running configure, to aid debugging if configure makes a mistake.
18621862
1863It was created by gedit-developer-plugins $as_me 0.5.13, which was1863It was created by gedit-developer-plugins $as_me 0.5.14, which was
1864generated by GNU Autoconf 2.68. Invocation command line was1864generated by GNU Autoconf 2.68. Invocation command line was
18651865
1866 $ $0 $@1866 $ $0 $@
@@ -2675,7 +2675,7 @@
26752675
2676# Define the identity of the package.2676# Define the identity of the package.
2677 PACKAGE='gedit-developer-plugins'2677 PACKAGE='gedit-developer-plugins'
2678 VERSION='0.5.13'2678 VERSION='0.5.14'
26792679
26802680
2681cat >>confdefs.h <<_ACEOF2681cat >>confdefs.h <<_ACEOF
@@ -6525,7 +6525,7 @@
6525# report actual input values of CONFIG_FILES etc. instead of their6525# report actual input values of CONFIG_FILES etc. instead of their
6526# values after options handling.6526# values after options handling.
6527ac_log="6527ac_log="
6528This file was extended by gedit-developer-plugins $as_me 0.5.13, which was6528This file was extended by gedit-developer-plugins $as_me 0.5.14, which was
6529generated by GNU Autoconf 2.68. Invocation command line was6529generated by GNU Autoconf 2.68. Invocation command line was
65306530
6531 CONFIG_FILES = $CONFIG_FILES6531 CONFIG_FILES = $CONFIG_FILES
@@ -6582,7 +6582,7 @@
6582cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=16582cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6583ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"6583ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6584ac_cs_version="\\6584ac_cs_version="\\
6585gedit-developer-plugins config.status 0.5.136585gedit-developer-plugins config.status 0.5.14
6586configured by $0, generated by GNU Autoconf 2.68,6586configured by $0, generated by GNU Autoconf 2.68,
6587 with options \\"\$ac_cs_config\\"6587 with options \\"\$ac_cs_config\\"
65886588
65896589
=== modified file 'configure.ac'
--- configure.ac 2012-03-12 13:04:13 +0000
+++ configure.ac 2012-03-30 14:36:23 +0000
@@ -4,7 +4,7 @@
44
5m4_define(gdp_major_version, 0)5m4_define(gdp_major_version, 0)
6m4_define(gdp_minor_version, 5)6m4_define(gdp_minor_version, 5)
7m4_define(gdp_micro_version, 13)7m4_define(gdp_micro_version, 14)
8m4_define(gdp_version, gdp_major_version.gdp_minor_version.gdp_micro_version)8m4_define(gdp_version, gdp_major_version.gdp_minor_version.gdp_micro_version)
99
10AC_INIT(gedit-developer-plugins, gdp_version, sinzui.is@verizon.net)10AC_INIT(gedit-developer-plugins, gdp_version, sinzui.is@verizon.net)
1111
=== modified file 'debian/changelog'
--- debian/changelog 2012-03-12 13:15:11 +0000
+++ debian/changelog 2012-03-30 14:36:23 +0000
@@ -1,3 +1,11 @@
1gedit-developer-plugins (0.5.14-0ubuntu1) precise; urgency=low
2
3 * New upstream bug-fix release.
4 - bzrgdp error calling show_missing without a parent branch (LP: #968193)
5 - some bzr commands fail because the ui factory is not setup (LP: #960380)
6
7 -- Curtis C. Hovey <sinzui.is@verizon.net> Fri, 30 Mar 2012 10:25:00 -0400
8
1gedit-developer-plugins (0.5.13-0ubuntu1) precise; urgency=low9gedit-developer-plugins (0.5.13-0ubuntu1) precise; urgency=low
210
3 * New upstream bug-fix release11 * New upstream bug-fix release
412
=== modified file 'plugins/gdp/bzr.py'
--- plugins/gdp/bzr.py 2012-03-12 13:06:06 +0000
+++ plugins/gdp/bzr.py 2012-03-30 14:36:23 +0000
@@ -35,6 +35,8 @@
35 from bzrlib.plugins.gtk.merge import MergeDialog35 from bzrlib.plugins.gtk.merge import MergeDialog
36 from bzrlib.plugins.gtk.push import PushDialog36 from bzrlib.plugins.gtk.push import PushDialog
37 from bzrlib.plugins.gtk.status import StatusWindow37 from bzrlib.plugins.gtk.status import StatusWindow
38 from bzrlib.plugins.gtk import set_ui_factory
39 set_ui_factory()
38 HAS_BZR_GTK = True40 HAS_BZR_GTK = True
39except ImportError:41except ImportError:
40 HAS_BZR_GTK = False42 HAS_BZR_GTK = False
@@ -209,7 +211,11 @@
209 if not HAS_BZR_GTK:211 if not HAS_BZR_GTK:
210 return212 return
211 from bzrlib.plugins.gtk.missing import MissingWindow213 from bzrlib.plugins.gtk.missing import MissingWindow
212 parent_location = self.working_tree.branch.get_parent()214 try:
215 parent_location = self.working_tree.branch.get_parent()
216 parent_branch = Branch.open_containing(parent_location)[0]
217 except NotBranchError:
218 parent_location = None
213 if parent_location is None:219 if parent_location is None:
214 message = _("Nothing to do; this branch does not have a parent.")220 message = _("Nothing to do; this branch does not have a parent.")
215 dialog = Gtk.MessageDialog(221 dialog = Gtk.MessageDialog(
@@ -218,7 +224,6 @@
218 dialog.run()224 dialog.run()
219 dialog.destroy()225 dialog.destroy()
220 return226 return
221 parent_branch = Branch.open_containing(parent_location)[0]
222 self.working_tree.branch.lock_read()227 self.working_tree.branch.lock_read()
223 try:228 try:
224 parent_branch.lock_read()229 parent_branch.lock_read()
225230
=== modified file 'plugins/gdp/tests/test_bzr.py'
--- plugins/gdp/tests/test_bzr.py 2012-03-12 13:04:13 +0000
+++ plugins/gdp/tests/test_bzr.py 2012-03-30 14:36:23 +0000
@@ -3,6 +3,8 @@
33
4__metaclass__ = type4__metaclass__ = type
55
6from gi.repository import Gtk
7
6from bzrlib.errors import (8from bzrlib.errors import (
7 NotBranchError,9 NotBranchError,
8 )10 )
@@ -10,7 +12,10 @@
10from gdp.bzr import (12from gdp.bzr import (
11 BzrProject,13 BzrProject,
12 )14 )
13from testing import GeditTestCase15from testing import (
16 GeditTestCase,
17 MockMethod,
18 )
1419
1520
16class FakeBranch:21class FakeBranch:
@@ -49,3 +54,12 @@
49 self.assertEqual(54 self.assertEqual(
50 'This branch does not have a push location.',55 'This branch does not have a push location.',
51 bzr_project._message)56 bzr_project._message)
57
58 def test_missing_no_parent(self):
59 text_file = self.make_file('hello')
60 window, view, document = self.make_gedit(text_file.name)
61 bzr_project = BzrProject(window)
62 bzr_project.working_tree = FakeTree()
63 MockMethod.bind(self, Gtk.MessageDialog, 'run')
64 bzr_project.show_missing(None)
65 self.assertEqual(1, Gtk.MessageDialog.run.called)

Subscribers

People subscribed via source and target branches

to all changes: