[darcs-devel] [patch471] Put back showHexLen into Darcs.Utils, it's needed on w...

Eric Kow kowey at darcs.net
Fri Nov 19 08:33:39 UTC 2010


On Thu, Nov 18, 2010 at 17:55:43 +0000, Petr Ročkai wrote:
> this is needed to get darcs building on windows again. A dead code cleanup
> patch earlier cleaned up a bit too much. Please fast-track review if at all
> possible, it's both trivial and it partially unbreaks buildbot on windows
> (still there's a test failing).

Fast tracked accordingly.
Nothing to review as its old code and not being used in a new way.

PS. still mostly ignoring patches
    post-holiday act only 60% together, more progress to go

Put back showHexLen into Darcs.Utils, it's needed on windows.
-------------------------------------------------------------
> Petr Rockai <me at mornfall.net>**20101118164545
>  Ignore-this: 7e5fc87887c2b3fae0a99b2846652068
> ] hunk ./src/Darcs/Utils.hs 71
>  import qualified Storage.Hashed.Monad as HS ( exists, tree )
>  import Storage.Hashed.Tree( Tree, listImmediate, findTree )
>  
> +showHexLen :: (Integral a) => Int -> a -> String
> +showHexLen n x = let s = showHex x ""
> +                 in replicate (n - length s) ' ' ++ s
  
> hunk ./src/Darcs/Utils.hs 39
>  import System.IO.Error ( annotateIOError, isUserError, ioeGetErrorString )
>  
>  import Darcs.SignalHandler ( catchNonSignal )
> +import Numeric ( showHex )
>  import System.Directory ( doesFileExist )
>  import System.Exit ( ExitCode(..) )
>  import System.Environment ( getEnv )
> hunk ./src/Darcs/Utils.hs 6
>  {-# LANGUAGE CPP, ForeignFunctionInterface #-}
>  
>  module Darcs.Utils ( ortryrunning, nubsort, breakCommand
> +                   , showHexLen

-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
For a faster response, try +44 (0)1273 64 2905 or
xmpp:kowey at jabber.fr (Jabber or Google Talk only)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.osuosl.org/pipermail/darcs-devel/attachments/20101119/e57599d7/attachment.pgp>


More information about the darcs-devel mailing list