[darcs-users] darcs patch: change is_file to return false on dround... (and 1 more)
Trent W. Buck
trentbuck at gmail.com
Mon Sep 15 00:07:36 UTC 2008
David Roundy <droundy at darcs.net> writes:
> Certainly if you do
>
> mkdir http:
> cd http:
> mkdir foo
> cd foo
> darcs init
> cd ../..
> darcs get http://foo
>
> things will go crazy. The simple rule is that if it contains a colon in
> any position but the second character, it's not a file. We could indeed
> extend this rule to say that paths beginning with a colon might also be
> files, but I don't see a huge demand for that.
If there is a local path that looks like a URL or a "scp notation"
remote file, it would make sense to me to try making the "localness"
explicit by adding a file:, e.g.
darcs init --repodir file:http://yow.org/
to make a darcs repo "yow.org" in ./http:/.
More information about the darcs-users
mailing list