According to relevant RFCs, in addition to alphanumerics, the following
characters are valid in URL scheme parts: '+', '-' and '.', but
currently only alphanumerics are allowed in remote helper names.
Allow those three characters in remote helper names (both 'foo://' and
'foo::' syntax).
Signed-off-by: Ilari Liusvaara <redacted>
---
transport.c | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
From: Johannes Schindelin <hidden> Date: 2016-06-15 22:48:20
Hi,
On Tue, 23 Feb 2010, Ilari Liusvaara wrote:
According to relevant RFCs, in addition to alphanumerics, the following
characters are valid in URL scheme parts: '+', '-' and '.', but
currently only alphanumerics are allowed in remote helper names.
May I caution against allowing "+" as part of filenames? On Windows,
thanks to the DOS garb^Wheritage, "+" is not really allowed...
Or maybe I misunderstood the intent of the patch?
Ciao,
Dscho
Heya,
On Tue, Feb 23, 2010 at 14:03, Johannes Schindelin
[off-list ref] wrote:
May I caution against allowing "+" as part of filenames? On Windows,
thanks to the DOS garb^Wheritage, "+" is not really allowed...
Would it be safe to say "raplce all occurences of '+' and '.' with
'-'? Is it feasible that we would want to support two protocols with a
different helper that map to the same 'name' using that scheme? So,
would there ever be a case where we want to handle "bzr+ssh"
and "bzr-ssh" with a different helper? I reckon not, and if it does
occur it's always possible to put a simple dispatcher in between?
--
Cheers,
Sverre Rabbelier
From: Johannes Sixt <hidden> Date: 2016-06-15 22:48:20
Johannes Schindelin schrieb:
May I caution against allowing "+" as part of filenames? On Windows,
thanks to the DOS garb^Wheritage, "+" is not really allowed...
I don't think that's true (and I also think it never was).
You may be refering to the copy command, where you can say
copy a.txt+b.txt+c.txt abc.txt
to concatenate the source files. But this does not restrict how you can
name your files. If you have a file a+b.txt and want to use it with copy,
then you must use double-quotes:
copy "a+b.txt" elsewhere.txt
copy "a+b.txt"+c.txt abc.txt
-- Hannes
From: Johannes Schindelin <hidden> Date: 2016-06-15 22:48:20
Hi,
On Tue, 23 Feb 2010, Sverre Rabbelier wrote:
On Tue, Feb 23, 2010 at 14:03, Johannes Schindelin
[off-list ref] wrote:
quoted
May I caution against allowing "+" as part of filenames? On Windows,
thanks to the DOS garb^Wheritage, "+" is not really allowed...
Would it be safe to say "raplce all occurences of '+' and '.' with
'-'?
I'd rather only replace '+' with '-'. While "short" DOS filenames can only
have one dot, and only up to three (upper-case) characters after that,
"long" ones do not share that restriction.
Is it feasible that we would want to support two protocols with a
different helper that map to the same 'name' using that scheme? So,
would there ever be a case where we want to handle "bzr+ssh" and
"bzr-ssh" with a different helper? I reckon not, and if it does occur
it's always possible to put a simple dispatcher in between?
From: Paolo Bonzini <hidden> Date: 2016-06-15 22:48:20
On 02/23/2010 01:33 PM, Ilari Liusvaara wrote:
According to relevant RFCs, in addition to alphanumerics, the following
characters are valid in URL scheme parts: '+', '-' and '.', but
currently only alphanumerics are allowed in remote helper names.
Allow those three characters in remote helper names (both 'foo://' and
'foo::' syntax).
I think '+' could be special-cased in that, for example, "svn+ssh://"
should still invoke an hypothetic git-remote-svn helper. There is no
use yet for this feature, but I'm sure that foreign VCS helpers would
use it.
Paolo
From: Gabriel Filion <hidden> Date: 2016-06-15 22:48:20
Paolo Bonzini wrote:
On 02/23/2010 01:33 PM, Ilari Liusvaara wrote:
quoted
According to relevant RFCs, in addition to alphanumerics, the following
characters are valid in URL scheme parts: '+', '-' and '.', but
currently only alphanumerics are allowed in remote helper names.
Allow those three characters in remote helper names (both 'foo://' and
'foo::' syntax).
I think '+' could be special-cased in that, for example, "svn+ssh://"
should still invoke an hypothetic git-remote-svn helper. There is no
use yet for this feature, but I'm sure that foreign VCS helpers would
use it.
Special-casing the + could be useful to simplify support for
"svn::ssh://"-style addresses as both could receive the same URL
("ssh://..").
It would also mean less clutter in the script directory. Instead of
having two scripts, one to catch "helper://.." remote URLs and another
to catch "helper+ssh://.." URLs, the same script would differentiate
between used protocols.
--
Gabriel Filion