monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] BUG: Windows version doing an anonymous pull


From: Stephen Leake
Subject: Re: [Monotone-devel] BUG: Windows version doing an anonymous pull
Date: Tue, 29 Jul 2008 23:59:06 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (windows-nt)

Philip Hannent <address@hidden> writes:

> Stephen Leake wrote:
>> Philip Hannent <address@hidden> writes:
>>
>>> I tried to to an anonymous pull from two different servers using the
>>> native windows build and it failed.  I only have the get_passphrase
>>> function in my monotonerc file.  If I use MinGW bash shell and use
>>> monotone from that it works fine.
>>
>> Is that a different monotone executable? The "native windows build"
>> found on the monotone website is built with MinGW.
>>
>> The version that fails in your example is the MinGW version. What
>> version succeeds?
>
> The monotone that comes with MinGW 

I don't believe there is a monotone that comes "with MinGW".

> is different from the version which
> you have on your website, this version works:
> $ mtn version --full
> monotone 0.40 (base revision: 5ccc279f9dea0444b47f03dd5291ecc985fcb7f6)
> Running on          : CYGWIN_NT-5.1 1.5.25(0.156/4/2) 2008-06-12 19:34 i686
> C++ compiler        : GNU C++ version 3.4.4 (cygming special, gdc 0.12, using 
> dm
> d 0.125)

This is the Cygwin monotone, not the MinGW monotone. Note the "running
on Cygwin", and "C++ compiler ... cygming special".

When you do:

type -a mtn

How many 'mtn' are shown, and what directories are they in?

> This version (oddly) does not:
> H:\mtn\elm.lynx>mtn version --full
> monotone 0.40 (base revision: 5ccc279f9dea0444b47f03dd5291ecc985fcb7f6)
> Running on          : Windows NT/2000/XP/2003 (5.1, build 2600,
> Service Pack 2) on ia32 (level 15, rev 521)
> C++ compiler        : GNU C++ version 3.4.5 (mingw special)

This is the MinGW mtn. Note the "running on Windows NT", and "C++
compiler ... mingw special".

As Timothy pointed out, the MinGW and Cygwin mtn's look for monotonerc
and the keys directory in different places

MinGW looks in %APPDATA%/monotone, Cygwin looks in $HOME/.monotone

If you plan on using file: or ssh: sync protocols, you must use the
Cygwin version.

If you want to integrate nicely with Win32 (not Cygwin) Emacs, you
must use the MinGW version.

If you must therefore use both, you may find it helpful to put this in
%APPDATA%/monotone/monotonerc:

dofile("c:/<home>/.monotone/monotonerc")

where "<home>" is replaced by the path to your $HOME directory.

That way, the MinGW and Cygwin mtn will share the same monotonerc.

To make them share the same keys directory, you must specify
--keydir=~/.monotone/keys whenever you checkout a workspace; after
that, the keys dir is specified by _MTN/options.

It would be nice if mtn allowed specifying where ".monotone" is, with
one environment variable. But all other platforms don't care :(.

-- 
-- Stephe




reply via email to

[Prev in Thread] Current Thread [Next in Thread]