[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-commits-diffs] net.venge.monotone: 3b415f32eb83376f005aac30fa
From: |
code |
Subject: |
[Monotone-commits-diffs] net.venge.monotone: 3b415f32eb83376f005aac30faeb1f1fa2314623 |
Date: |
Thu, 25 Nov 2010 23:51:40 GMT |
revision: 3b415f32eb83376f005aac30faeb1f1fa2314623
date: 2010-11-25T23:51:27
author: address@hidden
branch: net.venge.monotone
changelog:
add a comment to clarify why we treat a path of '/~foo' as correct in this place
manifest:
format_version "1"
new_manifest [6af3e73d86e546660f81ebaebfdcd77018fdc7ac]
old_revision [f4d9a9a65688dbe7f3a0e074edb38db5308db221]
patch "unit-tests/uri.cc"
from [2b1156f7b7ea016dee71022ca958fb5b0a5b2e48]
to [27c2d87e21c57910a08ba76148d6fa3d8cf67c04]
============================================================
--- unit-tests/uri.cc 2b1156f7b7ea016dee71022ca958fb5b0a5b2e48
+++ unit-tests/uri.cc 27c2d87e21c57910a08ba76148d6fa3d8cf67c04
@@ -45,6 +45,11 @@ UNIT_TEST(basic)
"ssh", "", "venge.net", "22", "/tmp/foo.mtn", "", "");
test_one_uri("ssh://venge.net/tmp/foo.mtn",
"ssh", "", "venge.net", "", "/tmp/foo.mtn", "", "");
+ // the parser does not know the inner characteristics of the 'ssh' scheme,
+ // i.e. that a tilde isn't expanded when its inside a path, so we treat this
+ // as correct in this place. the leading slash is then however stripped off
+ // in get_netsync_connect_command in std_hooks.lua so that ssh will handle
+ // it properly
test_one_uri("ssh://address@hidden/~/foo.mtn",
"ssh", "graydon", "venge.net", "", "/~/foo.mtn", "", "");
test_one_uri("ssh://[fe:00:01::04:21]/tmp/foo.mtn",
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Monotone-commits-diffs] net.venge.monotone: 3b415f32eb83376f005aac30faeb1f1fa2314623,
code <=