It isn't just add. I believe 'commit' does as well. Anything that has reason to "set_state_from_inventory". I originally thought "set_parent_trees" was also to blame, but it looks like that does not discard the stat information.
I think having a short-term fix of updating set_state_from_inventory means that we will fix more than just 'bzr add' and it is worth doing.
It isn't just add. I believe 'commit' does as well. Anything that has reason to "set_state_ from_inventory" . I originally thought "set_parent_trees" was also to blame, but it looks like that does not discard the stat information.
I think having a short-term fix of updating set_state_ from_inventory means that we will fix more than just 'bzr add' and it is worth doing.