Re: Monotone tests failing under Debian automated building

Ludovic Brenta <[email protected]>
Newsgroups gmane.comp.version-control.monotone.devel
Message-ID <[email protected]>
On Tue, 24 Apr 2012 15:04:13 +0100, Francis Russell wrote:
>> To me, it looks like monotone is copying test databases to a 
>> specific
>> location for a test, then apparently finding the files missing. I 
>> can't
>> replicate this in a Debian unstable chroot, nor can I imagine in the
>> automated build environment could cause the tests to fail in this 
>> way.
>
> Ha, I've found it! monotone appears to be rewriting pluses to spaces
> in its URLs:
>
> Simple example:
>
> $ cd /tmp/
> $ mtn db init -d mtn.db
> $ mtn db init -d mtn+2.db
> $ mtn pull -d mtn.db "file:///tmp/mtn+2.db?*"
> mtn: doing anonymous pull; use -kKEYNAME if you need authentication
> mtn: connecting to 'file:/tmp/mtn 2.db'
> mtn:   include pattern  '*'
> mtn:   exclude pattern  ''
> mtn: misuse: database '/tmp/mtn 2.db' does not exist

The plus sign must be percent-encoded as %2B in the URI:

mtn pull -d mtn.db "file:///tmp/mtn%2B2.db?*"

-- 
Ludovic Brenta.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.