getting complete HEAD repo, darcs issues
Claus Reinke
claus.reinke at talk21.com
Mon Nov 26 08:42:41 EST 2007
>> 3 which reminds me: darcs-all gets in the way when
>> working from local repos on windows:
>
> I haven't encountered any issues with darcs-all on Windows, but perhaps I'm just lucky.
here is what happens to me when trying to use darcs-all to
make a local copy of my ghc+corelibs+testsuite+extralibs
repos, with just ghc+corelibs+testsuite for validate:
$ pwd
/cygdrive/c/fptools/validate/ghc
$ cat _darcs/prefs/repos
c:/fptools/ghc
$ ./darcs-all --testsuite get
warning: adding --partial, to override use --complete
== running darcs get --partial c:/fptools/testsuite
Invalid repository: c:/fptools/testsuite
realdarcs.exe: c:/fptools/testsuite/_darcs/inventory: openBinaryFile: does not exist (No such
file o
r directory)
darcs failed: 256 at ./darcs-all line 59.
note that darcs-all uses the wrong path for 'darcs get', which
happens because the conditional path checks are a bit too lax
to work with windows drive letters, or to distinguish them from
protocols in the first place:
$ diff darcs-all ../darcs-all
14c14
< if ($defaultrepo =~ /:/) {
---
> if ($defaultrepo =~ /^\(http:\|ssh:\)/) {
20c20
< elsif ($defaultrepo =~ /^\//) {
---
> elsif ($defaultrepo =~ /^\(\/\|[a-zA-Z]:\/\)/) {
with those changes, it works (at least for my local get;-)
$ ../darcs-all --testsuite get
warning: adding --partial, to override use --complete
== running darcs get --partial c:/fptools/ghc/testsuite
Copying patch 40 of 40... done.
Applying patch 39 of 39... done.
Finished getting.
== running darcs get --partial c:/fptools/ghc/libraries/array
..
claus
ps what about this suggestion?
>>1 could the tar-balls at darcs.haskell.org please be split according to repo-collection? that is,
>>one each for
>> ghc, corelibs, testsuite, extralibs
i've got ghc+corelibs, and the current organisation would
force me to download another 100M (ghc+corelibs+testsuite),
which is impractical for me, instead of just 10M (testsuite),
which is slow but doable, to get the complete testsuite.
More information about the Cvs-ghc
mailing list