This is completed.

See CopyMergeCases for use cases.

The use cases indicate two different areas we need to handle renames:

The first can be addressed by a rename-aware ancestor algorithm placed in filectx and used by merge3. (implemented)

The second operates at the manifestmerge level. (implemented)

Some thoughts on directory rename detection:


CategoryNewFeatures