filtering bzr status by state
Brian de Alwis
bsd at cs.ubc.ca
Sun Mar 15 21:35:30 GMT 2009
On 15-Mar-2009, at 3:28 PM, Brian de Alwis wrote:
>
> I instead built a simple plugin that uses the start_commit hook to
> run:
>
> find . -type f -print0 | xargs -0 chmod a-x
>
> before a commit. [...] It's primitive, but functional.
I had a thought that a nicer, platform-agnostic approach would be to
have the plugin tweak the delta to ignore any exec bit changes. But
none of the hooks seem to allow changing the delta. pre_commit seems
the obvious candidate, but its docs say:
tree_delta is a TreeDelta object describing changes from
the basis revision. hooks MUST NOT modify this delta.
future_tree is an in-memory tree obtained from
CommitBuilder.revision_tree() and hooks MUST NOT
modify this tree.
Is there a way to accomplish this type of change from a plugin?
Brian.
--
"Amusement to an observing mind is study." - Benjamin Disraeli
More information about the bazaar
mailing list