[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-devel] [bug #31106] 'localhost:port?branch' not accepted as ne
From: |
Stephen Leake |
Subject: |
[Monotone-devel] [bug #31106] 'localhost:port?branch' not accepted as netsync URI |
Date: |
Thu, 23 Sep 2010 08:59:15 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.2) Gecko/20100316 Firefox/3.6.2 |
URL:
<http://savannah.nongnu.org/bugs/?31106>
Summary: 'localhost:port?branch' not accepted as netsync URI
Project: monotone
Submitted by: stephen_leake
Submitted on: Thu 23 Sep 2010 04:59:14 AM EDT
Category: networking
Severity: 3 - Normal
Item Group: incorrect behavior
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
mtn version --full: 0.99dev
_______________________________________________________
Details:
I'm attempting to eliminate the 'deprecated' warnings from
tests/automate_netsync. However, the URI parser fails.
Here's the old command:
check(mtn2("automate", "pull", srv.address, "bar"), 0, nil, nil)
this generates the command:
automate pull localhost:45056 bar
which gives the warning:
mtn: warning: separate server and pattern arguments are deprecated, please
consider using the URI calling syntax instead
Here's my update:
check(mtn2("automate", "pull", srv.address .. "?bar"), 0, nil, nil)
this generates the command:
automate pull localhost:45056?bar
which gives the error:
mtn: connecting to localhost://27145
mtn: fatal: error: ../monotone.netsync.automate/netsync.cc:89:
I(!host.empty())
monotone.texi says the URI syntax is:
<scheme>://[[<user>@@]<host>[:<port>]][/<path>][?<pattern>[;-<exclude-pattern>[...]]]
So this should be accepted.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?31106>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [Monotone-devel] [bug #31106] 'localhost:port?branch' not accepted as netsync URI,
Stephen Leake <=