Re: Commit monotone scripts to core?

Marty Vance <[email protected]> Tue, 03 Mar 2009 12:03:39 -0700
Newsgroups gmane.comp.cms.xaraya.devel
Organization Xaraya
Message-ID <[email protected]>
Hb wrote:

> Marty Vance schrieb:
> 
>>... Hb just mentioned in #support that he was similar DOS batch scripts for
>>Windows users.
>>Should we add these to the core under com.xaraya.core:/tools/monotone/,
>>so that everyone has access to them?  ...
> 
> 
> com.xaraya.qa.test:/repotools/.. is better and independent of core.
> 
> It would be nice to have a default directory layout as recommendation for
> starters. Sample:
> 
> 
>><xarDevRoot>--+--<xar_1_WebR>--+--html--+--includes...
>>              |                |        +--modules...
>>              |                |        +--themes...
>>              |                |        ...
>>              |                |        
>>              |                +--samples...
>>              |                +--tests...
>>              |                +--tools--+--monotone- *dead end here*
>>              |                          +--...
>>              |
>>              +--<xar_2_WebR>..
>>              |
>>              +--xarqatests--+--bin...
>>              |              +--data...
>>              |              +--tests...
>>              |              +--repotools--+--linux...          *new*
>>              |                            +--win...            *new*
>>              |
>>              +--xarreposit             *contains monotone databases*
> 
> 
> 
> The names 'xarqatests' and 'xarreposit' from that layout would be hardcoded
> dirnames in the DOS script. Starting from the dir above xarqatests (xarDevRoot
> in this sample) the script would crawl and update everything under it except
> xarreposit.
> 
> With %appdata%\monotone\ we have an absolute location on WIN machines to place
> user settings like 'databases to pull'.

How developers organize their own workspaces is up to them, and they are 
likely to have more than one workspace for each core (I do).

A much simpler and quicker solution would be to add these scripts to 
each core under tools/monotone/scripts/unix/, and your (or other) 
windows equivalents under tools/monotone/scripts/win/.  The xaraya.rc 
file is on this path, so putting the scripts below it seems reasonable. 
  The scripts, like the RC file, are not intended to be used in place, 
but copied (and edited) to suit the user and their environment; 
~/.monotone/ and %appdata%\monotone\ are reasonably equivalent, but 
again, that's up to individual preference.

We already have QA tests in a separate branch, and I would like to keep 
to a minimum the number of separate branches we make developers juggle.

In short, we should keep it simple.