[darcs-users] darcs patch: script for issue1248 (and 1 more)

Eric Kow kowey at darcs.net
Tue May 12 21:37:31 UTC 2009


On Tue, May 12, 2009 at 22:25:27 +0100, Ganesh Sittampalam wrote:
> Mon May 11 22:42:36 BST 2009  Ganesh Sittampalam <ganesh at earth.li>
>   * script for issue1248

I'm applying this, but I think I should also request that you merge in
the template stuff from tests/EXAMPLE.sh as a quick little follow-up.
I'm not likely to push for the next hour,  so if you want to amend
instead, we could do that.
 
> Tue May 12 21:54:29 BST 2009  Ganesh Sittampalam <ganesh at earth.li>
>   * resolve issue 1248: support compressed inventories for darcs-1 repos
>   This is important since optimize --compress can create them

This seems straightforward enough, applied, thanks!

script for issue1248
--------------------
> Ganesh Sittampalam <ganesh at earth.li>**20090511214236
>  Ignore-this: e1be8c6b4066756ab502786ee8406297
> ] addfile ./bugs/issue1248.sh
> hunk ./bugs/issue1248.sh 1
> +#!/usr/bin/env bash
> +set -ev
> +
> +rm -rf temp1
> +mkdir temp1
> +cd temp1
> +darcs init --old-fashioned
> +touch foo
> +darcs rec -a -m'foo' -l --author=me at me
> +darcs tag --author=me at me foo
> +darcs check
> +darcs optimize --reorder
> +darcs check
> +darcs optimize --compress
> +darcs check

resolve issue 1248: support compressed inventories for darcs-1 repos
--------------------------------------------------------------------
> Ganesh Sittampalam <ganesh at earth.li>**20090512205429
>  Ignore-this: eb94620681b89b14a8f49d48265e86df
>  This is important since optimize --compress can create them
>  
> ] move ./bugs/issue1248.sh ./tests/issue1248.sh
> hunk ./src/Darcs/Repository/DarcsRepo.lhs 260
>  
>  read_repo_private :: RepoPatch p => String -> [DarcsFlag] -> FilePath -> FilePath -> IO (SealedPatchSet p)
>  read_repo_private k opts d iname = do
> -    i <- fetchFilePS (d++"/"++darcsdir++"/"++iname) Uncachable
> +    i <- gzFetchFilePS (d++"/"++darcsdir++"/"++iname) Uncachable
>      finishedOneIO k iname
>      (rest,str) <- case BC.break ((==) '\n') i of
>                    (swt,pistr) | swt == BC.pack "Starting with tag:" ->
> 

-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/darcs-users/attachments/20090512/b7f96326/attachment.pgp>


More information about the darcs-users mailing list