[MERGE] add a hook to set_last_revision_info()

James Henstridge james at jamesh.id.au
Thu Apr 3 10:06:59 BST 2008


One of the main features of the bzr-dbus plugin is to broadcast a signal 
every time the head revision of a branch changes.  At the moment it does 
that by using the "set_rh" hook.

Unfortunately, this does not work with new branch formats which try to 
avoid needlessly evaluating the branch history.  The attached bundle 
adds a new hook for the set_last_revision_info() method, which appears 
to be the new way of updating branches.

While there are already hooks for commit, uncommit, push and pull, I 
think a hook like this is also useful.   There is always the possibility 
that new versions of Bazaar will introduce new ways to modify a branch 
that will bypass those hooks.  The set_last_revision_info hook would 
still be called for those new entry points.

James.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-patch
Size: 9689 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080403/6271098f/attachment.bin 


More information about the bazaar mailing list