Patch 32 Add an extra newline in help text stored... (and 1 more)

Title Add an extra newline in help text stored... (and 1 more)
Superseder Nosy List dagit, kowey, twb
Related Issues
Status accepted Assigned To dagit

Created on 2009-10-31.21:01:49 by kowey, last changed 2009-11-09.05:24:16 by dagit.

File name Status Uploaded Type Edit Remove
add-an-extra-newline-in-help-text-stored-in-author-prefs_.dpatch kowey, 2009-10-31.21:01:47 text/x-darcs-patch
unnamed kowey, 2009-10-31.21:01:47 text/plain
See mailing list archives for discussion on individual patches.
msg9145 (view) Author: kowey Date: 2009-10-31.21:01:47
Sat Oct 31 20:46:17 GMT 2009  Eric Kow <kowey@darcs.net>
  * Add an extra newline in help text stored in author prefs.
  This is for readability in the authors file.

Sat Oct 31 20:21:37 GMT 2009  Eric Kow <kowey@darcs.net>
  * Camel-case functions exported by Darcs.Repository.Prefs (and some more).

Note that the camel casing is automated with this little Haskell script.
I guess with this sort of automation, we should maybe just get the whole
thing over with in one go.

-- -------------------8<--------------------------------------------

import Data.Char
import System.Environment
import System.Cmd

main =
 do args <- map (filter (/= ',')) `fmap` getArgs
    mapM_ applyCamel args

applyCamel w =
 do system $  unwords [ "grep -rl", w, "src", "|", "xargs darcs replace", w, w2 ]
  w2 = camelCase w

camelCase :: String -> String
camelCase ('_':c:cs) = toUpper c : camelCase cs
camelCase (c:cs) = c : camelCase cs
camelCase [] = []
msg9156 (view) Author: twb Date: 2009-11-01.04:14:56
I've applied the first of these, since it follows on directly from a
patch of mine, and is uncontroversial.  I haven't reviewed the second
patch in the bundle and don't intend to in the immediate future.
msg9171 (view) Author: kowey Date: 2009-11-01.23:46:41
Hi Jason, the first patch here has been reviewed.  The second patch is just a
camel casing which I think you can review in your sleep.  Perhaps the perfect
patch for busy Jasons?
Date User Action Args
2009-10-31 21:01:49koweycreate
2009-11-01 04:14:56twbsetnosy: + twb
messages: + msg9156
2009-11-01 23:46:41koweysetnosy: + dagit
messages: + msg9171
assignedto: dagit
2009-11-09 05:24:16dagitsetstatus: needs-review -> accepted