remove vs rm vs forget
Aaron Bentley
aaron.bentley at utoronto.ca
Fri Jun 16 13:14:56 BST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jari Aalto+mail.perl wrote:
> * Fri 2006-06-16 Michael Ellerman <michael AT ellerman.id.au>
> * Message-Id: dc1166600606160142s69342af6i7b24d5af5015b869 AT mail.gmail.com
>> On 6/16/06, Jari Aalto+mail.perl <jari.aalto AT cante.net> wrote:
>>
>>> * Fri 2006-06-16 Matthew Hannigan <mlh AT zip.com.au>
>>> * Message-Id: 20060616000130.GB2348 AT mattsputer.localdomain
>>>> On Thu, Jun 15, 2006 at 07:45:42PM +0300, Jari Aalto+mail.perl wrote:
>>>>> rm
>>>>>
>>>>> Has established history since day one. The meanin is clear even in context
>>>>> of VCS:
>>>> ? SVN deletes the file as well as removing from repository.
>>>> Or do you mean working directory (if so you're confusing the
>>>> heck out of me.)
>>> - CVS does not delete file (user has to)
>>> - SVN does both (in repo + working dir)
>>> - BZR would delete it from repo (and leave it on working dir)
>> This is exactly the problem. It _isn't_ clear what 'rm' should do. The
>> fact that cvs and svn both have the command, and it does something
>> different isn't useful. We either have to pick one, or perhaps the
>> best option is to pick neither.
>>
>>> - change project; What the command called in VCS x?
>>> - change project; What the command called in VCS y?
>>> ...
>>> "Argh, why can't they use common command set ..."
>> But you still have to remember for each VCS what 'rm' _actually does_,
>> so there's no less remembering.
>
> To me deleting file from working dir without explicit request is too
> dangerous -- I think SVN did go wrong there and CVS was right to
> request user to do that.
To me, the name 'rm' suggests that it's meant to be used in place of
POSIX rm in working trees, just as mv is meant to be used in place of
POSIX mv.
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEkqDA0F+nu1YWqI0RAmEQAJ0YtqTI26olV99qgkqbsc4Gc4l0fwCeMvd1
xQCHfID0Yo+DQB8Lr+yT98M=
=NUEL
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list