Some initial impressions of phases

Aurélien Campéas aurelien.campeas at logilab.fr
Tue Jan 24 05:32:57 CST 2012


Le 23/01/2012 16:54, Pierre-Yves David a écrit :
>>
>> The following is a major point and not just some nit pick.
>>
>> Which other core mercurial command *both* changes state, and reports it using
>> the same command? None that I am aware of. Eg push doesn't become outgoing with
>> an option switch or vice versa. (Neither does pull and incoming). Similarly
>> there no command does gets both the status and does the action. Ie there is no
>> option to do "hg status --do-a-commit-instead<files>" or alternatively "hg
>> commit --do-a-status-instead<files>".
>>
>> Thus there needs to be two commands. A report-the-phase command and a
>> set-the-phase command. I am not sure of the names but going by the rest of the
>> mercurial commands having one command -- phase -- to do both is somewhat
>> unprecedented. (and not in a good way.)
>
> Wrong. Other commands do have the same semantic:
>
> hg bookmarks

I've yet to use them but the help suggests othewise (see hg help 
bookmarks and bookmark vs bookmarks).

> hg branch
>

Indeed. It is horribly confusing.
Cannot be undone for bw compat reasons I guess.
Please please please do not follow these steps.

Aurélien.



More information about the Mercurial-devel mailing list