Suggestions

Rafael Villar Burke pachi at mmn-arquitectos.com
Tue Aug 9 06:33:06 CDT 2005


Matt Mackall wrote:

>>> I was griping about this awhile ago. It turns out there's really no 
>>> need of hg
>>>
>>>remove, simply deleting the files seemed to be enough:
>>>
>>>    % rm sub/sub2.c
>>>    % hg status
>>>    R sub/sub2.c
>>>      
>>>
>>This is a bug and will be fixed soon :)
>>
>>Of course a --force flag to 'hg remove' would be good here.
>>    
>>
>
>We want something other than force, otherwise people will expect it to
>behave like 'rm -f'. Perhaps -D/--delete?
>
And wouldn't be a good option having a new command called "forget" to 
remove the file from being version controlled, and keep "remove" to 
actually remove a file or directory (as its semantics cry for doing)?. 
Having to use an option for a command that you normally would use that 
way is a bad choice, IMHO. Defaults should reflect the most common cases 
and those that make the SCM system as transparent as possible.
Forgetting a file is something you can eventually do, and could be done 
with an option (or with a command if it's so common), but removing a 
file is definetly something you frequently do, and you mean you want to 
delete it in the working copy and keep it out of the way in the repo. 
Having to do twice the operation because you must inform your SCM system 
is working for this latter, not a convenient use.

My 2 cents,

Rafael Villar Burke


More information about the Mercurial mailing list