[prev in list] [next in list] [prev in thread] [next in thread] 

List:       darcs-devel
Subject:    [darcs-devel] [patch1053] use existing many-files repo for sigPIPE.sh test
From:       Guillaume Hoffmann <bugs () darcs ! net>
Date:       2013-02-21 15:36:05
Message-ID: 51263ed8.c455b40a.7370.30df () mx ! google ! com
[Download RAW message or body]

New submission from Guillaume Hoffmann <guillaumh@gmail.com>:

It would be great if this patch worked but it doesn't, so please don't appl=
y.

See: http://irclog.perlgeek.de/darcs/2013-02-21#i_6482371

1 patch for repository http://darcs.net:

Thu Feb 21 16:31:20 CET 2013  Guillaume Hoffmann <guillaumh@gmail.com>
  * use existing many-files repo for sigPIPE.sh test

----------
files: patch-preview.txt, unnamed, use-existing-many_files-repo-for-sigpipe=
_sh-test.dpatch
messages: 16707
nosy: gh
status: needs-screening
title: use existing many-files repo for sigPIPE.sh test

__________________________________
Darcs bug tracker <bugs@darcs.net>
<http://bugs.darcs.net/patch1053>
__________________________________
["patch-preview.txt" (text/x-darcs-patch)]


[use existing many-files repo for sigPIPE.sh test
Guillaume Hoffmann <guillaumh@gmail.com>**20130221153120
 Ignore-this: d22b0b9f125decf589ab0348d571fec1
] hunk ./tests/sigPIPE.sh 4
 #!/usr/bin/env bash
 . ./lib
 
-DARCS_EDITOR=echo
-export DARCS_EDITOR
+if grep darcs-1 .darcs/defaults; then
+format=hashed
+elif grep darcs-2 .darcs/defaults; then
+format=darcs-2
+fi
 
 rm -rf temp1
 mkdir temp1
hunk ./tests/sigPIPE.sh 14
 
 cd temp1
-darcs init
 
hunk ./tests/sigPIPE.sh 15
-echo hello world > foo
-darcs add foo
-darcs record -a --author=me -m "First patch"
-i=1
-while test $i -le 100; do
-  echo foo $i > foo;
-  darcs record --ignore-times -a --author=me -m "Patch $i" > bar
-  i=`expr $i + 1`
-done
-darcs tag --author=me -m 'silly tag'
-i=1000
-while test $i -le 1096; do
-  echo foo $i > foo;
-  darcs record --ignore-times -a --author=me -m "Patch $i" > bar
-  i=`expr $i + 1`
-done
+gunzip -c $TESTDATA/many-files--${format}.tgz | tar xf -
 
hunk ./tests/sigPIPE.sh 17
-darcs --version
-darcs changes | head
+cd many-files--*
 
hunk ./tests/sigPIPE.sh 19
-cd ..
-# rm -rf temp1
+darcs changes | head -n 1
+
+cd ../..
+rm -rf temp1


["use-existing-many_files-repo-for-sigpipe_sh-test.dpatch" (application/x-darcs-patch)]
["unnamed" (application/octet-stream)]

_______________________________________________
darcs-devel mailing list
darcs-devel@darcs.net
http://lists.osuosl.org/mailman/listinfo/darcs-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic