[PATCH] make bzr mv use rename if only moving one file
aaron.bentley at utoronto.ca
Thu Sep 8 16:24:17 BST 2005
-----BEGIN PGP SIGNED MESSAGE-----
David Clymer wrote:
> builtin cmd_mv uses branch.move for multiple and single files.
> Branch.move doesnt seem to handle single files (is there a good reason
> for that?).
I think the point is to provide a cleaner API. mv(1) can have somewhat
surprising behaviour, because it tries to guess user intention based on
whether the target is a dirctory.
> This patch uses branch.rename_one to mv single files with cmd_mv.
Great. Do you mind adding a test case?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the bazaar