This looks like a bug in the transform code. I'm not sure about the specifics, but it is getting 'tree.kind(file_id) == 'absent'" and is very confused from there.
I don't think it is possible for RevisionTree.kind() to return 'absent', so I'm guessing the issue is that the source tree is another working tree (or possibly a _PreviewTree?)
However, all the code paths I can track down don't seem to be able to give 'absent'. I'm not really sure how to reproduce.
This looks like a bug in the transform code. I'm not sure about the specifics, but it is getting 'tree.kind(file_id) == 'absent'" and is very confused from there.
I don't think it is possible for RevisionTree.kind() to return 'absent', so I'm guessing the issue is that the source tree is another working tree (or possibly a _PreviewTree?)
However, all the code paths I can track down don't seem to be able to give 'absent'. I'm not really sure how to reproduce.