Dean Roehrich wrote:
> On Tue, Jul 29, 2008 at 03:57:52PM +0200, Vladimir Kotal wrote:
>> By 'behave like wx' I meant the following changes to cdm.py:
>>    - 'hg add' hook is processed by cdm which leads to an entry being 
>> created in plaintext file (like 'wx/active')
> 
> 'add' is already a base mercurial command.

Yeah, I am aware of it. I've been told that 'core' Mercurial commands 
provide hooks for additional functions which can be called as part of 
normal processing.

By tapping into 'add' it would be possible to add new entry to the 
active list file.

>>    - 'hg edit' adds new entry
>>    - 'hg unedit' removes the entry in the plaintext file and restores 
>> file from parent
> 
> More command names that would increase our likely-hood of hitting a name
> collision in a future Mercurial update...
> 
> Cadmium will be extended--if not with this request, then with some other
> request.  Let's get a command prefix into it now, otherwise it'll be too
> painful to follow future Mercurial updates.

While this is reasonable, it could become cumbersome. 'hg list' seems 
easier to type than 'hg cmd_list'.

What exactly are you proposing ?


v.

Reply via email to