[MERGE] Add mechanism for pre_change_branch_tip hook to cleanly reject a change.

Andrew Bennetts andrew at canonical.com
Mon Jul 14 04:42:04 BST 2008


This patch adds a TipChangeRejected error for pre_change_branch_tip hooks to
raise.  The message given to TipChangeRejected will be reported directly to the
user, even over the smart server.  This is important for a hook that wants to
explain to the user *why* a change is rejected (e.g. "foo.xml is not valid XML:
syntax error on line 1234").

This patch is relative to my last patch for a smart server hooks integration
test, but doesn't really depend on it.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: clean-reject.patch
Type: text/x-diff
Size: 28200 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080714/9084d926/attachment-0001.bin 

More information about the bazaar mailing list