the branch parent check is either misguided or under-documented

Bug #1494090 reported by Paul Collins
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
codetree
Fix Released
Undecided
Tim Kuhlman

Bug Description

I do not understand why codetree includes an explicit check that the branch parent of the existing copy matches the location given in the collect file. It seems to me that it would be much more natural to simply "bzr pull" the given location (without --overwrite, and perhaps with --remember to refresh parent_location) and let bzr's existing handling of diverged branches be a reasonable sanity check.

Branches get moved and merged all the time, and this is normal in distributed development. The branch parent check means that we have had to include "overwrite=true" in many more places than would otherwise be the case, and I believe it also means that the more interesting "this branch was rebased or replaced" uses of this option become harder to spot.

We should either document the rationale for this behaviour, or remove it.

---

References (none of which seem to have captured the rationale):
https://bugs.launchpad.net/codetree/+bug/1247028
https://code.launchpad.net/~thedac/codetree/branch-checking-and-handling/+merge/193510
Message-ID: <email address hidden> (Subject: 2013-10-31 (Wednesday) EOD Report for David Ames)

Related branches

Paul Collins (pjdc)
Changed in codetree:
assignee: nobody → Paul Collins (pjdc)
Revision history for this message
Vincent Ladeuil (vila) wrote :

We got bitten by this in https://bazaar.launchpad.net/~canonical-ca-hackers/software-center-agent/trunk/revision/3066 when the upstream project changed the team owning the branch.

It has fallouts in various parts of our CI infrastructure so chiming here to mention that while the error message is clear and provides good feedback to the user, a warning would seem more appropriate, provide the same feedback but doesn't require users to remove the offending existing branch.

Tim Kuhlman (timkuhlman)
Changed in codetree:
status: New → In Progress
assignee: Paul Collins (pjdc) → Tim Kuhlman (timkuhlman)
Tim Kuhlman (timkuhlman)
Changed in codetree:
status: In Progress → Fix Released
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.