Bug#594357: bzr-stats: Completely unusable: Doesn't register commands

2010-08-25 Thread Stefano Rivera
Package: bzr-stats
Version: 0.0.1~bzr40-1
Severity: grave
Tags: upstream
Justification: renders package unusable

Upstream+Ubuntu Bug: http://launchpad.net/bugs/623981

$ bzr plugins | grep stat
$ bzr committer-statistics
bzr: ERROR: unknown command "committer-statistics"

Basically, installing the package has zero effect. It doesn't register
with bzr.

SR

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_ZA.UTF-8, LC_CTYPE=en_ZA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages bzr-stats depends on:
ii  bzr   2.1.2-1easy to use distributed version co
ii  python2.6.5-13   interactive high-level object-orie
ii  python-central0.6.16 register and build utility for Pyt

bzr-stats recommends no packages.

bzr-stats suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#594357: bzr-stats: Completely unusable: Doesn't register commands

2010-08-25 Thread Stefano Rivera
tags 594357 +patch
thanks

Patch attached.

SR

-- 
Stefano Rivera
  http://tumbleweed.org.za/
  H: +27 21 465 6908 C: +27 72 419 8559  UCT: x3127
diff -Nru bzr-stats-0.0.1~bzr40/debian/changelog bzr-stats-0.0.1~bzr40/debian/changelog
--- bzr-stats-0.0.1~bzr40/debian/changelog	2010-08-25 17:23:50.0 +0200
+++ bzr-stats-0.0.1~bzr40/debian/changelog	2010-08-25 17:22:38.0 +0200
@@ -1,3 +1,10 @@
+bzr-stats (0.0.1~bzr40-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Register plugin and commands with bzr. (Closes #594357)
+
+ -- Stefano Rivera   Wed, 25 Aug 2010 17:20:29 +0200
+
 bzr-stats (0.0.1~bzr40-1) unstable; urgency=low
 
   * New upstream snapshot.
diff -Nru bzr-stats-0.0.1~bzr40/debian/patches/register-commands bzr-stats-0.0.1~bzr40/debian/patches/register-commands
--- bzr-stats-0.0.1~bzr40/debian/patches/register-commands	1970-01-01 02:00:00.0 +0200
+++ bzr-stats-0.0.1~bzr40/debian/patches/register-commands	2010-08-25 17:22:38.0 +0200
@@ -0,0 +1,18 @@
+Description: Register commands with bzrlib
+Author: Stefano Rivera 
+Forwarded: http://code.launchpad.net/~stefanor/bzr-stats/register-623981/+merge/33639
+Bug-Ubuntu: http://launchpad.net/bugs/623981
+Bug-Debian: http://bugs.debian.org/594357
+Last-Update: 2010-08-25
+--- /dev/null
 b/__init__.py
+@@ -0,0 +1,9 @@
++"""Statistics plugin for Bazaar
++This is a simple plugin for Bazaar that can list the contributors to a branch
++and what they worked on.
++"""
++from bzrlib.commands import plugin_cmds
++version_info = (0, 0, 1, 'bzr', 40)
++plugin_cmds.register_lazy("cmd_committer_statistics", [], "bzrlib.plugins.stats.cmds")
++plugin_cmds.register_lazy("cmd_ancestor_growth", [], "bzrlib.plugins.stats.cmds")
++plugin_cmds.register_lazy("cmd_credits", [], "bzrlib.plugins.stats.cmds")
diff -Nru bzr-stats-0.0.1~bzr40/debian/patches/series bzr-stats-0.0.1~bzr40/debian/patches/series
--- bzr-stats-0.0.1~bzr40/debian/patches/series	1970-01-01 02:00:00.0 +0200
+++ bzr-stats-0.0.1~bzr40/debian/patches/series	2010-08-25 17:22:38.0 +0200
@@ -0,0 +1 @@
+register-commands