per file merge hooks would like a way to maintain state

Bug #513822 reported by John A Meinel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Medium
Robert Collins

Bug Description

Now that bug #491711 has landed, using it has shown a small deficiency.

Specifically, per-file hooks often want to maintain some state across the merge
(such as whether they are enabled, what files to work on, etc.)

One option would be to change the hook so that at the beginning of the merge
we call a hook which returns an object (potentially None if the hook is
disabled). Afterwards, in the inner loop, those objects are used (methods
called) that perform the same actions that we are doing today.

Related branches

Changed in bzr:
status: Confirmed → Fix Released
assignee: nobody → Robert Collins (lifeless)
milestone: none → 2.1.0
John A Meinel (jameinel)
Changed in bzr:
milestone: 2.1.0 → 2.1.0rc2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.