Merge lp:~jelmer/bzr-dbus/zeitgeist into lp:bzr-dbus
| Status: | Merged |
|---|---|
| Merged at revision: | not available |
| Proposed branch: | lp:~jelmer/bzr-dbus/zeitgeist |
| Merge into: | lp:bzr-dbus |
| Prerequisite: | lp:~jelmer/bzr-dbus/lazy |
| Diff against target: |
99 lines (+65/-4) 2 files modified
__init__.py (+1/-1) hook.py (+64/-3) |
| To merge this branch: | bzr merge lp:~jelmer/bzr-dbus/zeitgeist |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Robert Collins (community) | 2010-02-11 | Needs Fixing on 2010-02-16 | |
|
Review via email:
|
|||
| Jelmer Vernooij (jelmer) wrote : | # |
| Robert Collins (lifeless) wrote : | # |
bzr-dbus is part of the canonical maintained plugins for bzr, so it needs copyright assignment.
I don't see that you need the commit hook, as bzr-dbus is already connected to tip changes, which all commits are. I'd like you to have a look at that ;).
Other than that conceptually sure its fine to have this live in -dbus.
| Jelmer Vernooij (jelmer) wrote : | # |
> bzr-dbus is part of the canonical maintained plugins for bzr, so it needs
> copyright assignment.
>
> I don't see that you need the commit hook, as bzr-dbus is already connected to
> tip changes, which all commits are. I'd like you to have a look at that ;).
>
> Other than that conceptually sure its fine to have this live in -dbus.
I've updated the copyright - Markus told me he's already signed the contributor assignment.
I think we should just support notifications of commits that were made by the local user for now and possibly supporti the notification of pull/push on branches later on
| Robert Collins (lifeless) wrote : | # |
On Thu, 2010-02-18 at 02:38 +0000, Jelmer Vernooij wrote:
> > bzr-dbus is part of the canonical maintained plugins for bzr, so it needs
> > copyright assignment.
> >
> > I don't see that you need the commit hook, as bzr-dbus is already connected to
> > tip changes, which all commits are. I'd like you to have a look at that ;).
> >
> > Other than that conceptually sure its fine to have this live in -dbus.
> I've updated the copyright - Markus told me he's already signed the contributor assignment.
>
> I think we should just support notifications of commits that were made by the local user for now and possibly supporti the notification of pull/push on branches later on
I'd really rather not have duplicate code in the codebase, and it sure
looks like that is what it is at the moment.
Have you tried just logging what it grabs with the current hook - you
might like it!
-Rob
| Jelmer Vernooij (jelmer) wrote : | # |
On Thu, 2010-02-18 at 02:54 +0000, Robert Collins wrote:
> On Thu, 2010-02-18 at 02:38 +0000, Jelmer Vernooij wrote:
> > > bzr-dbus is part of the canonical maintained plugins for bzr, so it needs
> > > copyright assignment.
> > >
> > > I don't see that you need the commit hook, as bzr-dbus is already connected to
> > > tip changes, which all commits are. I'd like you to have a look at that ;).
> > >
> > > Other than that conceptually sure its fine to have this live in -dbus.
> > I've updated the copyright - Markus told me he's already signed the contributor assignment.
> >
> > I think we should just support notifications of commits that were made by the local user for now and possibly supporti the notification of pull/push on branches later on
>
> I'd really rather not have duplicate code in the codebase, and it sure
> looks like that is what it is at the moment.
>
> Have you tried just logging what it grabs with the current hook - you
> might like it!
The 'duplication' is an extra hook, one line for the registration and
one line for the actual hook.
The alternative is filtering out commits in the current hook and only
calling the zeitgeist code in that case - that's still one or two lines
of code.
Using the post_branch_
delutes gnome-activity-
lot of pulls.
Cheers,
Jelmer
| Robert Collins (lifeless) wrote : | # |
If you've actually tried it [branch tip change] and didn't like it, then
merging the post commit hook is fine. Please open a bug to make more
capturing possible.
-Rob

This adds support for providing events to zeitgeist to the dbus plugin. Talking to zeitgeist is done through a small Python wrapper around the dbus Python module, but that python module should always be installed when zeitgeist itself is installed.
This allows showing bzr commits in gnome-activity- journal.
It's based on Markus Korn's initial plugin that is living in a separate Bazaar branch, but is not packaged. He is fine with moving this code into bzr-dbus.