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 mailing list
Monotone-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monotone-devel

Reply via email to