[darcs-users] darcs cia script

VMiklos vmiklos at frugalware.org
Mon Jan 16 16:44:37 UTC 2006


On Mon, Jan 16, 2006 at 05:12:11PM +0100, VMiklos <vmiklos at frugalware.org> wrote:
> a bug: it does not work here with apply-as:
> Shall I push this patch? (1/1) [ynWvpxqadjk], or ? for help: y
> Use of uninitialized value in scalar chomp at /usr/bin/darcs line 71.
> Use of uninitialized value in split at /usr/bin/darcs line 72.
> Use of uninitialized value in substitution (s///) at /usr/bin/darcs line
> 75.
> Finished applying...

attached a patch to fix this issue

udv / greetings,
VMiklos

-- 
Developer of Frugalware Linux, to make things frugal - http://frugalware.org
-------------- next part --------------
--- darcs.orig	2006-01-16 17:17:37.000000000 +0100
+++ darcs	2006-01-16 17:40:38.000000000 +0100
@@ -66,6 +66,9 @@
 my $ts = time;
 
 # get repo name for this project
+if($ARGV[3]) {
+  chdir($ARGV[3]);
+}
 my $module = getcwd();
 chomp $module;
 foreach(split(/\//, $module)) {
@@ -83,7 +86,7 @@
 
 # short cut for darcs commands other than 'apply --all'
 exec ($darcs, @ARGV)
-  if (! ($#ARGV == 1 && $ARGV[0] eq 'apply' && $ARGV[1] eq '--all'));
+  if (! (($#ARGV == 1 || ($#ARGV == 3  && $ARGV[2] eq '--repodir')) && $ARGV[0] eq 'apply' && $ARGV[1] eq '--all'));
 
 # open a pipe for running darcs on the other end
 open (DARCS, "| $darcs @ARGV") || die "Couldn't open pipe to darcs !\n";


More information about the darcs-users mailing list