> This is a proposal for how I think "fossil rm" should work.  It's
> consistent with how "svn rm" works.
> At present it's not what happens.


I was refering to the fact that "fossil update" currently does not recreate
a deleted file. It is necessary to do a "fossil revert". There are some people,
myself included, that think that  "fossil update" should recreate deleted files.




2009/12/11 Will Duquette <[email protected]>:
>
> On Dec 10, 2009, at 7:30 AM, Ramon Ribó wrote:
>
>>> If I then do
>>>
>>>    rm *.foo
>>>
>>> when I meant to do
>>>
>>>    fossil rm *.foo
>>>
>>> I can then do
>>>
>>>    fossil update
>>>
>>> which will give me my *.foo files back.
>>
>> Are you sure that this command is going to give that files back? Have
>> you tried it?
>>
>> This is another field where there are currently proposals to change
>> current behavior and
>> do what you think that it does. The "principle of least surprise" is
>> not followed here.
>
> This is a proposal for how I think "fossil rm" should work.  It's
> consistent with how "svn rm" works.
> At present it's not what happens.
>
> Will
>
>
>>
>> 2009/12/10 Will Duquette <[email protected]>:
>>> I was unclear, apparently.
>>>
>>> Suppose "fossil rm *.foo" deletes the files from the file system and
>>> from Fossil.
>>>
>>> If I then do
>>>
>>>    rm *.foo
>>>
>>> when I meant to do
>>>
>>>    fossil rm *.foo
>>>
>>> I can then do
>>>
>>>    fossil update
>>>
>>> which will give me my *.foo files back.  Then, I can do
>>>
>>>    fossil rm *.foo
>>>
>>> Note that I'd expect "fossil rm *.foo" only to remove files from the
>>> file system that it can remove from the repository, i.e., if I had an
>>> extra file, not_added.foo, I'd expect "fossil rm *.foo" to live it
>>> alone.
>>>
>>> Will
>>>
>>> On Dec 10, 2009, at 3:20 AM, Benjohn Barnes wrote:
>>>
>>>>
>>>> On 9 Dec 2009, at 21:21, [email protected]
>>>> wrote:
>>>>
>>>>> Which is exactly why "fossil rm *.foo" should delete *.foo from the
>>>>> file system as well as from the repository.  If you forget, and do
>>>>> "rm
>>>>> *.foo", then you can ask fossil to give you the files back, and
>>>>> then
>>>>> do "fossil rm *.foo" so that you don't need to type in all of the
>>>>> names.
>>>>>
>>>>> Will
>>>>
>>>> Although, I think, as you don't have any globbing, when you "ask
>>>> fossil to give you the files back", you do need to type in all the
>>>> names :-) (unless those deletions are the only changes that you've
>>>> made to the working copy).
>>>>
>>>> _______________________________________________
>>>> fossil-users mailing list
>>>> [email protected]
>>>> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>>>
>>> ------------------------------------------------------------------
>>>        will -at- wjduquette.com      | Catch our weblog,
>>> http://foothills.wjduquette.com/blog | The View from the Foothills
>>>
>>>
>>> _______________________________________________
>>> fossil-users mailing list
>>> [email protected]
>>> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-
>>> users
>>>
>> _______________________________________________
>> fossil-users mailing list
>> [email protected]
>> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
> ------------------------------------------------------------------
>        will -at- wjduquette.com      | Catch our weblog,
> http://foothills.wjduquette.com/blog | The View from the Foothills
>
>
> _______________________________________________
> fossil-users mailing list
> [email protected]
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to