[PATCH] make bzr mv use rename if only moving one file

David Clymer david at zettazebra.com
Thu Sep 8 18:23:25 BST 2005


On Thu, 2005-09-08 at 11:24 -0400, Aaron Bentley wrote:
> -----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?
> 

I'll take a whack at it.

-davidc

-- 
gpg-key: http://www.zettazebra.com/files/key.gpg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050908/63616db6/attachment.pgp 


More information about the bazaar mailing list