← Back to team overview

quickly-talk team mailing list archive

Re: optimum folder for post_create.py etc

 

On 10 August 2012 07:04, Didier Roche <didrocks@xxxxxxxxxx> wrote:
> Le 09/08/2012 20:16, tony byrne a écrit :
>>
>> Hi all
>
> Hey Tony,
>
>>   There has been some talk here about a post_create.py command but the
>> folder is to determined. There was also a per project folder wanted.
>> I suggest using the XDG standard
>> ~/.config/quickly/templates/ubuntu-application/post_create.py
>
> I think we need to add "hooks" something in the folder path. What about:
>
> ~/.config/quickly/templates-hooks/ubuntu-application/post_create.py
>
> (I'm still pondering if we shouldn't put as well the custom templates here:
> like
>
> ~/.config/quickly/templates/ubuntu-application/foo-template
>
> but I'm unsure about the discoverability TBH)
>
>> ~/.config/quickly/projects/myproject/whatever
>
> Hum, on this one, I would rather see having a hooks or .hooks folder inside
> the project itself (it's per project after all!), what do you think? In
> addition to that, everyone bzr branching (even you on another computer), you
> will get the hook ready to fire bundled to your project!

This is identical to how git implements hooks. There, hooks are inside
.git repository data or user or site-wide config folders.

bzr also implements them but reuses its plugin system so hooks cannot
be per-project.

Under neither system hooks are checked into the repository. This makes
sense because if user has hooks in the user-wide config location it is
not obvious if or how these would be included into the repository.


-- 
Alistair Buxton
a.j.buxton@xxxxxxxxx


References