bazaar-ng 0.7 released

John Arbash Meinel john at arbash-meinel.com
Tue Jan 24 16:40:52 GMT 2006


Jari Aalto wrote:
> Alexander Belchenko <bialix at ukr.net> writes:
> 
> 
>>Jari Aalto пишет:
>> > Howabout this (win32 native bzr):
>>
>>
>>>     $BZR_HOME                  - if set
>>>     $HOMESHARE\.bzr.conf\      - if exists, assume HOMESHARE as "HOME"
>>>     ($HOMEDRIVE + $HOMEPATH)\.bzr.conf\
>>>                                - if exists, assume ... as "HOME"
>>>     $APPDATA                   - ... or else
>>
>>-1 on proposed scheme. In my opinion: currently realized in bzr is
>>most win32 native.
>>
>>($HOMEDRIVE + $HOMEPATH) -- its definetely BAD idea for win32 native.
>>Because on some machine it pointed to C:\. 
> 
> 
> I explained poorly or you misunderstood. I was proposing code that
> determines the correct location like this. No automatic use of
> HOMESHARE, but only IF user has a bazaar directory along it.
> 
>     if (environemtn variable is set "BZR_HOME")
>        then use BZR_HOME
>     else if (there is directory "$HOMESHARE/.bzr.conf/")
>        then suppose user is using $HOMESHARE
>     else if (you can find directory "$HOMEDRIVE + $HOMEPATH/\.bzr.conf")
>        then suppose user is using $HOMEDRIVE + $HOMEPATH
>     else
>        use APPDATA
> 
> Jari

Just so you are aware of the update. The official location on windows is:

$APPDATA/bazaar/2.0/bazaar.conf
On Linux it is:
~/.bazaar/bazaar.conf

We got rid of the .bzr.conf directory. And on windows, we try to avoid
using dot files. Windows doesn't play very nicely with them. (you can't
create a file in explore which begins with a period)

I'm not sure what the correct path should be for $HOMESHARE.

Also, we need a place to *create* the directory if it doesn't exist.

I wouldn't be opposed to probing for config directories. But what
happens if 2 exist?

John
=:->

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060124/c2fea8ca/attachment.pgp 


More information about the bazaar mailing list