Feature Request: 'bzr mv --after' to tell bzr that file(s) have already been moved in the working tree
John Arbash Meinel
john at arbash-meinel.com
Mon Nov 6 14:15:27 GMT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Marius Kruger wrote:
> hi,
> On 11/5/06, *Hanns-Steffen Eichenberg* <scameronde at googlemail.com
> <mailto:scameronde at googlemail.com>> wrote:
>
> My current patch (draft version, not made public yet) uses a flag or
> the following logic:
>
> - source present and versioned, target not present and not
> versioned: mv file and change repo (regular mv)
> - source not present and versioned, target present and not
> versioned: only change repo (new mv)
> - source present and versioned, target present and not versioned:
> you have to use the flag or it is an error
> (for situations like:
> mv a b; touch a; bzr mv a b ==> ERROR
> mv a b; touch a; bzr mv a b --after ==> OK
> )
>
>
> This is perfect!
> (when can we have it :)
I also was wondering if we could see the proposed patch.
>
> ...
>
> I think when using the fuzzy match the user must be the one who
> finally decides
> if a match is correct or not. Maybe the auto-rename could open an
> editor with
> its suggestions. That would allow for easy control and confirmation
> of mass
> renames.
>
>
> This will be a very nice to have later.
>
> Later mv-detection could also be done, when you run 'bzr status': also
> show the proposed moves.
> Then the user could alter this if needed with additional bzr command
> options
> - 'bzr mv --after a b'
> - 'bzr mv --cancel a b' (if the wrong one was chosen)
> (as the inverse of 'bzr add' is 'bzr remove', the user should be
> able to cancel the mv action, in the case he made a mistake.)
>
To me, this would be:
bzr mv --after b a
Since the inverse of 'mv a b' is 'mv b a'.
No need for a special flag.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFT0N/JdeBCYSNAAMRAmPyAKCKmxoPV5ETvrSj1QmFus8G+pP6IwCgj+PC
jNg0tsE2oaj4MeTCEkEWp5c=
=HR0y
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list