Comment 13 for bug 241170

Revision history for this message
Andrew Bennetts (spiv) wrote : Re: Assertion error when trying to push

We did some debugging on IRC. The problem is reproducible with a 0.90 server and 0.15 client, and a format 5 (bzr init --dirstate) branch on the server.

To cut a long story short, the root cause is a bug in RemoteRepository._get_parent_map. The "except UnknownSmartMethod" block doesn't adjust the result of self.get_revision_graph() for the subtly different get_parent_map API. That causes BzrBranch._lefthand_history to see revision 1's parents as () rather than (NULL_REVISION,), which causes it to cut the history short by one, which causes the assertion.