want a hook for diverged graphs

Bug #496764 reported by Martin Pool
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned

Bug Description

It would be nice to have a hook that fires when a push/pull/fetch is about to fail because of diverged graphs. The hook should be given a chance to make some correction. This could be used to make branches cleanly switch across when one of them has been rebased/rewritten.

This may need more discussion before implementation.

See thread "Rewriting Ubuntu branches" on udd.

Martin Pool (mbp)
tags: added: easy
Revision history for this message
Martin Pool (mbp) wrote :

To start with this should be easy: just fire the hook at the point where we would otherwise raise the 'unrelated branches' exception.

The slightly more subtle bit is what the caller should be able to do before we fire, and then that can let us continue.

igc asks: perhaps we should just add a general "an exception is about to happen" hook?

Revision history for this message
Martin Pool (mbp) wrote :

There's also the case of merge.

Revision history for this message
Gary van der Merwe (garyvdm) wrote : Re: [Bug 496764] Re: want a hook for diverged graphs

On Mon, Jun 7, 2010 at 2:43 AM, Martin Pool <email address hidden> wrote:
> igc asks: perhaps we should just add a general "an exception is about to
> happen" hook?

+1

Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
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.