darcs-beta-2.4.98.5: a distributed, interactive, smart revision control systemSource codeContentsIndex
Darcs.URL
Description

Path resolving:

  • A URL contains the sequence "://".
  • A local filepath does not contain colons, except as second character (windows drives).
  • A path that is neither a URL nor a local file is an ssh-path.

Examples:

 /usr/repo/foo                 -- local file
 c:/src/darcs                  -- local file
 http://darcs.net/             -- URL
 peter@host:/path              -- ssh
 droundy@host:                 -- ssh
 host:/path                    -- ssh

This means that single-letter hosts in ssh-paths do not work, unless a username is provided.

Perhaps ssh-paths should use "ssh://user@host/path"-syntax instead?

Documentation
isFile :: String -> BoolSource
isUrl :: String -> BoolSource
isSsh :: String -> BoolSource
isRelative :: String -> BoolSource
isAbsolute :: String -> BoolSource
isSshNopath :: String -> BoolSource
Produced by Haddock version 2.6.1