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: Thomas Keller
Subject: Re: [Monotone-users] Getting the sourece code for the latest monotone?
Date: Fri, 08 Oct 2010 12:36:57 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.11) Gecko/20100714 SUSE/3.0.6 Lightning/1.0b2pre Thunderbird/3.0.6

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.

-- 
GPG-Key 0x160D1092 | address@hidden | http://thomaskeller.biz
Please note that according to the EU law on data retention, information
on every electronic information exchange might be retained for a period
of six months or longer: http://www.vorratsdatenspeicherung.de/?lang=en


Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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