[darcs-users] darcsum fix

Lele Gaifax lele at metapensiero.it
Tue Jan 10 16:27:35 UTC 2012


Hi Simon,

since it's been a while since my last darcsum update, I took the
opportunity...

    $ cd darcsum/
    $ darcs show repo
	      Type: darcs
	    Format: darcs-1.0
	      Root: /home/lele/wip/darcsum
	  Pristine: PlainPristine "_darcs/pristine"
	     Cache: thisrepo:/home/lele/wip/darcsum, cache:/home/lele/.darcs/cache
    Default Remote: http://joyful.com/repos/darcsum
       Num Patches: 236
    $ darcs pull
    Pulling from "http://joyful.com/repos/darcsum"...

    darcs failed:  Incompatibility with repository http://joyful.com/repos/darcsum:
    Cannot mix darcs-2 repositories with older formats
    $ darcs cha --last=3
    Tue Jan 18 02:07:44 CET 2011  Simon Michael <simon at joyful.com>
      * site updates

    Mon Jan 17 23:28:37 CET 2011  Simon Michael <simon at joyful.com>
      * updates notes file

    Mon Jan 17 23:19:25 CET 2011  Simon Michael <simon at joyful.com>
      * add a makefile and simple hakyll-based home page
    $ darcs wha -s
    No changes!

Oh well, not a problem, my copy was not modified, it's easier to grab
a new one

    $ cd ..
    $ mv darcsum darcsum.old
    $ darcs get http://joyful.com/repos/darcsum
    Copying patches, to get lazy repository hit ctrl-C...
    Hash failure in /home/lele/.darcs/cache/patches/0000000587-6013f5f667bebccf2a782190264cc955937d5566982eea5648f8ddd103ce29b6
    Hash failure in /home/lele/.darcs/cache/patches/0000000635-d69eb8f2a2329128b7c308964e9784e0b68bd92db925b21becf30e51a8d8510d
    Hash failure in http://joyful.com/repos/darcsum/_darcs/patches/0000000635-d69eb8f2a2329128b7c308964e9784e0b68bd92db925b21becf30e51a8d8510d

    darcs failed:  Couldn't fetch `0000000635-d69eb8f2a2329128b7c308964e9784e0b68bd92db925b21becf30e51a8d8510d'
    in subdir patches from sources:

    thisrepo:/home/lele/wip/darcsum
    cache:/home/lele/.darcs/cache
    repo:http://joyful.com/repos/darcsum

Uhm... it's not the first time I see those hash failures: should I
wipe my ~/.darcs/cache directory? I even tried to be smart: seeing
that "darcs help environment" mentions $APPDATA as the location of the
cache, I did

    $ cd /tmp/
    $ APPDATA=/tmp darcs get http://joyful.com/repos/darcsum
    Copying patches, to get lazy repository hit ctrl-C...
    Hash failure in /home/lele/.darcs/cache/patches/0000001420-8c6d7cc9069e4736243fb4c5904f08c930d65c9b4771b2b178c71c1af4ecd3fb
    Finished getting.

Doh, definitely better, but... why is darcs *still* using the cache in
my home directory? I some how expected to see a new "cache" subdir
under /tmp, but nothing like that appeared, just the new "darcsum"
clone...

Am I missing something, is the help outdated about $APPDATA, or does
it expect a ".darcs" subdir under $APPDATA?

Thank you in advance,
bye, lele.
--
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
lele at metapensiero.it  |                 -- Fortunato Depero, 1929.


More information about the darcs-users mailing list