Rev 194: Sort plugins by name. in file:///home/jelmer/bzr-gtk/trunk/
Jelmer Vernooij
jelmer at samba.org
Mon Apr 30 21:10:46 BST 2007
At file:///home/jelmer/bzr-gtk/trunk/
------------------------------------------------------------
revno: 194
revision-id: jelmer at samba.org-20070430201040-blzs1t94fh0pyume
parent: szilveszter.farkas at gmail.com-20070422203834-ov81s3ht7gexvc88
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: trunk
timestamp: Mon 2007-04-30 22:10:40 +0200
message:
Sort plugins by name.
modified:
NEWS news-20070325173539-3va57o99cz3o57xe-1
preferences.py preferences.py-20070313153956-vcdqjrfal0wuk0vb-1
=== modified file 'NEWS'
--- a/NEWS 2007-04-22 20:37:17 +0000
+++ b/NEWS 2007-04-30 20:10:40 +0000
@@ -8,6 +8,8 @@
* Tags support added: 'gtags' command and Branch->Tags menu entry in Olive
(#103725, Szilveszter)
+ * Sort plugins in gpreferences (Jelmer)
+
0.15.2 2007-04-03
BUG FIXES
=== modified file 'preferences.py'
--- a/preferences.py 2007-03-13 16:48:48 +0000
+++ b/preferences.py 2007-04-30 20:10:40 +0000
@@ -173,8 +173,11 @@
treeview.append_column(column)
import bzrlib.plugin
- for name, plugin in bzrlib.plugin.all_plugins().items():
- model.append([name, getattr(plugin, '__file__', None)])
+ plugins = bzrlib.plugin.all_plugins()
+ plugin_names = plugins.keys()
+ plugin_names.sort()
+ for name in plugin_names:
+ model.append([name, getattr(plugins[name], '__file__', None)])
vbox.pack_start(scrolledwindow, expand=True, fill=True)
More information about the bazaar-commits
mailing list