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
1=== modified file 'ChangeLog'
2--- ChangeLog 2012-03-12 13:04:13 +0000
3+++ ChangeLog 2012-03-30 14:36:23 +0000
4@@ -1,5 +1,17 @@
5 <Generated by bzr log --log-format=gnu>
6
7+2012-03-29 Curtis Hovey <sinzui.is@verizon.net>
8+
9+ [570] Do not look for missing in a branch without a parent.
10+
11+2012-03-29 Curtis Hovey <sinzui.is@verizon.net>
12+
13+ [569] Increment version for release.
14+
15+2012-03-20 Curtis Hovey <sinzui.is@verizon.net>
16+
17+ [568] Always setup to bzr-gtk ui factory.
18+
19 2012-03-10 Curtis Hovey <sinzui.is@verizon.net>
20
21 [567] Inc version.
22
23=== modified file 'configure'
24--- configure 2012-03-12 13:04:13 +0000
25+++ configure 2012-03-30 14:36:23 +0000
26@@ -1,6 +1,6 @@
27 #! /bin/sh
28 # Guess values for system-dependent variables and create Makefiles.
29-# Generated by GNU Autoconf 2.68 for gedit-developer-plugins 0.5.13.
30+# Generated by GNU Autoconf 2.68 for gedit-developer-plugins 0.5.14.
31 #
32 # Report bugs to <sinzui.is@verizon.net>.
33 #
34@@ -560,8 +560,8 @@
35 # Identity of this package.
36 PACKAGE_NAME='gedit-developer-plugins'
37 PACKAGE_TARNAME='gedit-developer-plugins'
38-PACKAGE_VERSION='0.5.13'
39-PACKAGE_STRING='gedit-developer-plugins 0.5.13'
40+PACKAGE_VERSION='0.5.14'
41+PACKAGE_STRING='gedit-developer-plugins 0.5.14'
42 PACKAGE_BUGREPORT='sinzui.is@verizon.net'
43 PACKAGE_URL=''
44
45@@ -1319,7 +1319,7 @@
46 # Omit some internal or obsolete options to make the list less imposing.
47 # This message is too long to be a string in the A/UX 3.1 sh.
48 cat <<_ACEOF
49-\`configure' configures gedit-developer-plugins 0.5.13 to adapt to many kinds of systems.
50+\`configure' configures gedit-developer-plugins 0.5.14 to adapt to many kinds of systems.
51
52 Usage: $0 [OPTION]... [VAR=VALUE]...
53
54@@ -1386,7 +1386,7 @@
55
56 if test -n "$ac_init_help"; then
57 case $ac_init_help in
58- short | recursive ) echo "Configuration of gedit-developer-plugins 0.5.13:";;
59+ short | recursive ) echo "Configuration of gedit-developer-plugins 0.5.14:";;
60 esac
61 cat <<\_ACEOF
62
63@@ -1491,7 +1491,7 @@
64 test -n "$ac_init_help" && exit $ac_status
65 if $ac_init_version; then
66 cat <<\_ACEOF
67-gedit-developer-plugins configure 0.5.13
68+gedit-developer-plugins configure 0.5.14
69 generated by GNU Autoconf 2.68
70
71 Copyright (C) 2010 Free Software Foundation, Inc.
72@@ -1860,7 +1860,7 @@
73 This file contains any messages produced by compilers while
74 running configure, to aid debugging if configure makes a mistake.
75
76-It was created by gedit-developer-plugins $as_me 0.5.13, which was
77+It was created by gedit-developer-plugins $as_me 0.5.14, which was
78 generated by GNU Autoconf 2.68. Invocation command line was
79
80 $ $0 $@
81@@ -2675,7 +2675,7 @@
82
83 # Define the identity of the package.
84 PACKAGE='gedit-developer-plugins'
85- VERSION='0.5.13'
86+ VERSION='0.5.14'
87
88
89 cat >>confdefs.h <<_ACEOF
90@@ -6525,7 +6525,7 @@
91 # report actual input values of CONFIG_FILES etc. instead of their
92 # values after options handling.
93 ac_log="
94-This file was extended by gedit-developer-plugins $as_me 0.5.13, which was
95+This file was extended by gedit-developer-plugins $as_me 0.5.14, which was
96 generated by GNU Autoconf 2.68. Invocation command line was
97
98 CONFIG_FILES = $CONFIG_FILES
99@@ -6582,7 +6582,7 @@
100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
101 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
102 ac_cs_version="\\
103-gedit-developer-plugins config.status 0.5.13
104+gedit-developer-plugins config.status 0.5.14
105 configured by $0, generated by GNU Autoconf 2.68,
106 with options \\"\$ac_cs_config\\"
107
108
109=== modified file 'configure.ac'
110--- configure.ac 2012-03-12 13:04:13 +0000
111+++ configure.ac 2012-03-30 14:36:23 +0000
112@@ -4,7 +4,7 @@
113
114 m4_define(gdp_major_version, 0)
115 m4_define(gdp_minor_version, 5)
116-m4_define(gdp_micro_version, 13)
117+m4_define(gdp_micro_version, 14)
118 m4_define(gdp_version, gdp_major_version.gdp_minor_version.gdp_micro_version)
119
120 AC_INIT(gedit-developer-plugins, gdp_version, sinzui.is@verizon.net)
121
122=== modified file 'debian/changelog'
123--- debian/changelog 2012-03-12 13:15:11 +0000
124+++ debian/changelog 2012-03-30 14:36:23 +0000
125@@ -1,3 +1,11 @@
126+gedit-developer-plugins (0.5.14-0ubuntu1) precise; urgency=low
127+
128+ * New upstream bug-fix release.
129+ - bzrgdp error calling show_missing without a parent branch (LP: #968193)
130+ - some bzr commands fail because the ui factory is not setup (LP: #960380)
131+
132+ -- Curtis C. Hovey <sinzui.is@verizon.net> Fri, 30 Mar 2012 10:25:00 -0400
133+
134 gedit-developer-plugins (0.5.13-0ubuntu1) precise; urgency=low
135
136 * New upstream bug-fix release
137
138=== modified file 'plugins/gdp/bzr.py'
139--- plugins/gdp/bzr.py 2012-03-12 13:06:06 +0000
140+++ plugins/gdp/bzr.py 2012-03-30 14:36:23 +0000
141@@ -35,6 +35,8 @@
142 from bzrlib.plugins.gtk.merge import MergeDialog
143 from bzrlib.plugins.gtk.push import PushDialog
144 from bzrlib.plugins.gtk.status import StatusWindow
145+ from bzrlib.plugins.gtk import set_ui_factory
146+ set_ui_factory()
147 HAS_BZR_GTK = True
148 except ImportError:
149 HAS_BZR_GTK = False
150@@ -209,7 +211,11 @@
151 if not HAS_BZR_GTK:
152 return
153 from bzrlib.plugins.gtk.missing import MissingWindow
154- parent_location = self.working_tree.branch.get_parent()
155+ try:
156+ parent_location = self.working_tree.branch.get_parent()
157+ parent_branch = Branch.open_containing(parent_location)[0]
158+ except NotBranchError:
159+ parent_location = None
160 if parent_location is None:
161 message = _("Nothing to do; this branch does not have a parent.")
162 dialog = Gtk.MessageDialog(
163@@ -218,7 +224,6 @@
164 dialog.run()
165 dialog.destroy()
166 return
167- parent_branch = Branch.open_containing(parent_location)[0]
168 self.working_tree.branch.lock_read()
169 try:
170 parent_branch.lock_read()
171
172=== modified file 'plugins/gdp/tests/test_bzr.py'
173--- plugins/gdp/tests/test_bzr.py 2012-03-12 13:04:13 +0000
174+++ plugins/gdp/tests/test_bzr.py 2012-03-30 14:36:23 +0000
175@@ -3,6 +3,8 @@
176
177 __metaclass__ = type
178
179+from gi.repository import Gtk
180+
181 from bzrlib.errors import (
182 NotBranchError,
183 )
184@@ -10,7 +12,10 @@
185 from gdp.bzr import (
186 BzrProject,
187 )
188-from testing import GeditTestCase
189+from testing import (
190+ GeditTestCase,
191+ MockMethod,
192+ )
193
194
195 class FakeBranch:
196@@ -49,3 +54,12 @@
197 self.assertEqual(
198 'This branch does not have a push location.',
199 bzr_project._message)
200+
201+ def test_missing_no_parent(self):
202+ text_file = self.make_file('hello')
203+ window, view, document = self.make_gedit(text_file.name)
204+ bzr_project = BzrProject(window)
205+ bzr_project.working_tree = FakeTree()
206+ MockMethod.bind(self, Gtk.MessageDialog, 'run')
207+ bzr_project.show_missing(None)
208+ self.assertEqual(1, Gtk.MessageDialog.run.called)

Subscribers

People subscribed via source and target branches

to all changes: