monotone-users
[Top][All Lists]
Advanced

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

Re: [Monotone-users] Getting the sourece code for the latest monotone?


From: Masatake YAMATO
Subject: Re: [Monotone-users] Getting the sourece code for the latest monotone?
Date: Fri, 08 Oct 2010 20:11:07 +0900 (JST)

> Am 08.10.2010 11:24, schrieb Masatake YAMATO:
>>>> How can I get the sourece code for the latest monotone?
>>>> I''ve tried to get and I got some troubles. I'd like to
>>>> know this to developers. 
>>>
>>> I'm very sorry that you had so much trouble. While code.monotone.ca's
>>> IDF instance already states that you can use mtn:// style URIs with the
>>> clone clone, this does only work from 0.99 onwards which is released
>>> this fall (i.e. in the next couple of weeks). Until then you have to
>>> pull and checkout manually (with 0.48):
>>>
>>>   $ mtn db init -d :monotone
>>>   $ mtn pull -d :monotone \
>>>      'mtn://code.monotone.ca/monotone?net.venge.monotone'
>>>   $ mtn co -d :monotone -r h:net.venge.monotone
>>>
>>> Sorry again for the inconvenience.
>> 
>> Thank you for replying. I've understood the situation.
>> 
>> My understanding is that to use the new clone notation, both 
>> client and server sides must be updated. Correct?
> 
> Actually not. The URI syntax is pure syntactic sugar on the client side.
> Internally we extract scheme, host name and branch pattern from it and
> start the sync. The server notation (scheme://host/server) is not used
> for the main monotone server, but only its proxy, usher.
> 
>> The mtn server running at monotone project is already updated to the
>> newer version which supports new clone notation. But mtn servers
>> separately run by various organizations have not been updated yet.  So
>> there are situations that even one uses the newer version of monotone
>> client, one cannot do clone from the older mtn servers. If what I
>> wrote here is correct, the older command line you told me in the last
>> mail is very important; the command line in the only way for getting 
>> contents regardless of any combinations of server versions and client 
>> versions. Even if a command line become longer than single clone command 
>> line, 
>> I would like to know more version independent way for getting contents.
>> 
>> 
>> I have tried the command line you told:
>> 
>>     $ mtn db init -d :monotone
>>     $ mtn pull -d :monotone  
>> 'mtn://code.monotone.ca/monotone?net.venge.monotone'
>>     mtn pull -d :monotone  
>> 'mtn://code.monotone.ca/monotone?net.venge.monotone'
>>     mtn: setting default server to 
>> mtn://code.monotone.ca/monotone?net.venge.monotone
>>     mtn: setting default branch include pattern to 'net.venge.monotone'
>>     mtn: setting default branch exclude pattern to ''
>>     mtn: setting default include pattern for server 
>> 'mtn://code.monotone.ca/monotone?net.venge.monotone' to 'net.venge.monotone'
>>     mtn: setting default exclude pattern for server 
>> 'mtn://code.monotone.ca/monotone?net.venge.monotone' to ''
>>     mtn: doing anonymous pull; use -kKEYNAME if you need authentication
>>     mtn: connecting to mtn://code.monotone.ca/monotone?net.venge.monotone
>>     mtn: network error: service name resolution failed for: mtn
>> 
>> It doesn't work. I've used the original /etc/services(No mtn line).
> 
> Ok, you are completely right and I was wrong. 0.48 is indeed buggy when
> it comes to mtn:// urls. I vaguely remember that this was also one of
> the reasons I rewrote all this code a couple of months ago.
> 
> The reason why I didn't saw this earlier was because I tested with a
> trunk version of monotone in the meantime, and this works for the above
> use case without a problem.
> 
> Thomas.

My understanding is: monotone 0.48 canno do pull over network
without adding mtn entry to /etc/services.  If one doesn't want to
modify /etc/services, the one should use or wait 0.99 reelase.

Masatake YAMATO



reply via email to

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