"bzr push -r NNN" with --overwrite fails with NoSuchRevision

Bug #234229 reported by Andrew Bennetts
2
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Undecided
Andrew Bennetts

Bug Description

If I have a standalone branch at "URL" of bzr.dev revision 3389, then this command:
    bzr push -r 3390 --overwrite URL
fails with a NoSuchRevision error when trying to generate the new history on the target. It seems it tries to generate a history for the *tip* of the source, rather than the specified revision.

If I instead use this command:
    bzr push -r 3390 URL
it works.

Related branches

Revision history for this message
Andrew Bennetts (spiv) wrote :

I think I have a fix for this. It involves deleting code :)

Changed in bzr:
assignee: nobody → spiv
milestone: none → 1.6
status: New → In Progress
Andrew Bennetts (spiv)
Changed in bzr:
status: In Progress → Fix Committed
Revision history for this message
Andrew Bennetts (spiv) wrote :

It turns out some older formats just silently push the tip of the source in this case, rather than error out, but that's still buggy.

Anyway, the branch linked from this bug has a fix, and I've sent it to the list. It corrects the behaviour for all formats.

John A Meinel (jameinel)
Changed in bzr:
status: Fix Committed → 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.