Feature Request: 'bzr mv --after' to tell bzr that file(s) have already been moved in the working tree
Erik Bågfors
zindar at gmail.com
Fri Nov 3 14:15:18 GMT 2006
I think "bzr mv foo bar" should have the following logic
if file foo exists
move file foo to bar
move file_id from foo to bar
else if file bar exists
move file_id from foo to bar
That way, the following means the same
mv foo bar
bzr mv foo bar
and
bzr mv foo bar
I think that's what Aaron is talking about.
/Erik
On 11/3/06, Hanns-Steffen Eichenberg <scameronde at googlemail.com> wrote:
> An automatic detection of moved files would be great, but i think you have
> to have an explicit option in addition. Why? When refactoring Java Code
> (rename a class, for example), the name of the file AND the file content
> changes simultaneously. It is an atomic operation from within Eclipse (and
> all other major Java IDEs). How can this be later detected by an algorithm?
>
> Ciao,
> Steffen (scameronde)
>
>
>
> On 11/3/06, Aaron Bentley <aaron.bentley at utoronto.ca> wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Hanns-Steffen Eichenberg wrote:
> > > I really would like to see an option like '--after' for the mv command.
> >
> > > Has this feature been discussed before? Is the idea good or am i missing
> > > something that makes it just plain silly?
> > > RFC.
> >
> > We should definitely support this functionality. In the past, we've
> > discussed not requiring a special flag to do this, just detecting that
> > the file has already moved, and just moving the file_id.
> >
> > Aaron
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.4.1 (GNU/Linux)
> > Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
> >
> >
> iD8DBQFFS0kI0F+nu1YWqI0RAl8YAKCGO72FPKSpKjNR6Bu831pLHhtR2wCfceLW
> > WgWlLaygelqH/SXfUQt4HB8=
> > =vAtG
> > -----END PGP SIGNATURE-----
> >
>
>
--
google talk/jabber. zindar at gmail.com
SIP-phones: sip:erik_bagfors at gizmoproject.com
sip:17476714687 at proxy01.sipphone.com
More information about the bazaar
mailing list