[darcs-users] why is darcs getting the "root" version of a file

Terrence Brannon bauhaus at metaperl.com
Thu Jul 28 10:07:26 UTC 2005


I dont understand why dacs would say it is applying the latest patches
but when you look at a file, its contents are only the initial add,
not all the patches to the file as well. The transcript follows. When
I cat the file, note how its contents are the initially added
contents, not the latest version of the file.

terry at Abulafia:/tmp/myrepo/y$ darcs get --verbose --complete http://ScannedInAvian.org/repos/craft-of-fp
Getting the inventory...
Copying patch 1 of 12: 20050726033949-34f56-370aa112d394f1cb0706c80b70bcc45fcbdb44b4.gz
Copying patch 2 of 12: 20050728010745-7fa64-f7dbc9e2fb9fe4ff2bc83d175df1bc9744c35bcc.gz
Copying patch 3 of 12: 20050727042435-7fa64-232bad25336a9e6fe22b150a9584f09adfde0af5.gz
Copying patch 4 of 12: 20050727025736-7fa64-546e9dcad48a5463687a74b2fd1b0870066226fc.gz
Copying patch 5 of 12: 20050727025050-7fa64-fa943cc66b1f07077b1b294dfc85fa42d680867c.gz
Copying patch 6 of 12: 20050727024243-7fa64-43d1c845bc0d4ea929c4f6f7090f6b480930d53b.gz
Copying patch 7 of 12: 20050726031047-7fa64-d9caaf764df218ef53c3b073fc8014ca2b692b75.gz
Copying patch 8 of 12: 20050726025738-7fa64-2fef32d89cc125be2a9696fb3b0938719f752bd4.gz
Copying patch 9 of 12: 20050724122149-7fa64-2c8133cffdc9d1c6d645ed4a9d1fb87a697e0d54.gz
Copying patch 10 of 12: 20050719035012-34f56-467fad7c37828e61a4305cf0ac1814a1ec470ca8.gz
Copying patch 11 of 12: 20050720024350-7fa64-c5e6cbbe7e5ef5949142dd05f95580d43472a702.gz
Copying patch 12 of 12: 20050720023922-7fa64-df9c4a86226d842a8a38d7cd54c2f459e9a07cb6.gz
Applying patches to the "working" directory...
Applying patch Wed Jul 20 02:39:22 GMT 2005  bauhaus at metaperl.com
  * initial patch
Patch applies cleanly...
Applying patch Wed Jul 20 02:43:50 GMT 2005  bauhaus at metaperl.com
  * kill old comments
Patch applies cleanly...
Applying patch Tue Jul 19 03:50:12 GMT 2005  thinkpad-560e at metaperl.com
  * document start of Chapter 6 functions
Patch applies cleanly...
Applying patch Sun Jul 24 12:21:49 GMT 2005  bauhaus at metaperl.com
  * supermarket processing
Patch applies cleanly...
Applying patch Tue Jul 26 02:57:38 GMT 2005  bauhaus at metaperl.com
  * write project functions ex 6.32 newbie style
Patch applies cleanly...
Applying patch Tue Jul 26 03:10:47 GMT 2005  bauhaus at metaperl.com
  * fixed a bug where I was dependant on the list just being a sequential list of numbers
Patch applies cleanly...
Applying patch Wed Jul 27 02:42:43 GMT 2005  bauhaus at metaperl.com
  * gzl's cool solution to correlating a list
Patch applies cleanly...
Applying patch Wed Jul 27 02:50:50 GMT 2005  bauhaus at metaperl.com
  * add
Patch applies cleanly...
Applying patch Wed Jul 27 02:57:36 GMT 2005  bauhaus at metaperl.com
  * clearer instructions
Patch applies cleanly...
Applying patch Wed Jul 27 04:24:35 GMT 2005  bauhaus at metaperl.com
  * quick update
Patch applies cleanly...
Applying patch Thu Jul 28 01:07:45 GMT 2005  bauhaus at metaperl.com
  * initial problems worked
Patch applies cleanly...
Applying patch Tue Jul 26 03:39:49 GMT 2005  thinkpad-560e at metaperl.com
  * sort problem worked
Patch applies cleanly...
Syncing the repository...
Finished getting.
terry at Abulafia:/tmp/myrepo/y$ cat craft-of-fp/ex/ex7.hs
{-
  Problem 1: SJT's code  for Chapter 5 of his book doesnt load. 
  His module uses a function called isDigit but ghci fails to 
  find it upon startup.

  Question 1: in the function first_digit will an entire list be generated 
  by the digits() function or will list generation be short circuited?
-}

import Chapter5
import Data.List


first_digit str 
    = case (digits str) of
      []   -> '\0'
      (x : _) -> x



-- 
	Carter's Compass: I know I'm on the right track when,
	   by deleting something, I'm adding functionality.





More information about the darcs-users mailing list