Comment 1 for bug 107967

Revision history for this message
John A Meinel (jameinel) wrote :

Confirmed. We detect whether the target is a directory so we can switch between "bzr mv foo bar" meaning rename "foo" to "bar", and move "foo" to "bar/foo". However, this is done before detecting if the source exists.

What we should do is check if source exists, then check if target exists (and whether it is a dir).

Also, we have some problems if source and target both exist, and target is a directory. Because then it is unclear what you want. I'm okay with failing in that circumstance.