[PATCH] make bzr mv use rename if only moving one file
Aaron Bentley
aaron.bentley at utoronto.ca
Thu Sep 8 16:24:17 BST 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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?
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDIFeh0F+nu1YWqI0RAku6AJ9SE5/Cqf1LBQ7FA6eslOmUFu5FZACfQHKa
kxp3PrwM7CNgJFiEzLWLIMs=
=1Ux2
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list