API snafu

John Arbash Meinel john at arbash-meinel.com
Fri Feb 1 22:42:12 GMT 2008


I'm not sure if people realized it when they wrote it, but there is a 
really strange API decision.

Specifically, WorkingTree.update_basis_by_delta takes (revision_id, 
delta), but DirState.update_basis_by_delta takes (delta, revision_id)

It seems I was successfully passing it in the wrong order, and it wasn't 
noticing until it tried to write out the list of parents, only to find a 
list of lists, rather than a list of strings.

Was there a reason these parameters got switched? Is it possible to 
switch it back?

John
=:->



More information about the bazaar mailing list