On Fri, Dec 14, 2012 at 5:29 PM, Richard Hipp <d...@sqlite.org> wrote:
>
>
> On Fri, Dec 14, 2012 at 7:20 PM, Jan Danielsson <jan.m.daniels...@gmail.com>
> wrote:
>>
>> Hello,
>>
>>    It seems that some of those who are opposed to changing the behavior
>> of rm/mv are reaching a consensus that the names "rm" and "mv" were
>> poorly chosen, because they have a Unix connotation, and "rename" and
>> "move" has been suggested instead. So -- is there any reason we can't
>> have both?
>>
>>    mv/rm - change to principle of least surprise
>>
>>    move/remove - behaves like current mv/rm
>>
>>    That way we all get what we want .. no?
>
>
> We have had (for a long time) commands "delete" and "rename".  "rm" is just
> an alias for "delete" and "mv" is an alias for "rename".  It would not be
> that hard to change just "rm" to remove files from disk (if it is safe to do
> so) but leave "delete" as the current behavior.
>
> Seems like a reasonable suggestion.

Could I humbly suggest "unmanage" for the name of the
remove-from-repo-and-leave-the-disk-alone command? This would be
consistent with the status messages emitted by fossil (I think on
merge?) and it's pretty clear from its name what it would do.

This could leave us with the following commands:

1. unmanage -- remove from repo
2. delete -- unmanage and attempt to bring the disk to that state
3. rename -- change the name / path of a file in the repo
4. move -- rename as above, and bring the disk up to date

I think this could be a pretty nice middle of the road compromise. As
for what rm and mv are aliased to at that point -- I for one don't
care. It's the continued existence of known safe (repo only) commands
that keeps me smiling.

Thanks,

Themba

>
>>
>>
>> --
>> Kind regards,
>> Jan Danielsson
>>
>> _______________________________________________
>> fossil-users mailing list
>> fossil-users@lists.fossil-scm.org
>> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
>
>
>
> --
> D. Richard Hipp
> d...@sqlite.org
>
> _______________________________________________
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to