Wed Aug 31 20:50:46 EST 2005  Mark Stosberg <[EMAIL PROTECTED]>
  * -add test script for --set-scripts-executable
  
  It's currently failing because darcs is currently broken in this regard. I 
commented
  out a "TODO" test in case you want to make to this a TODO test until
  someone gets to it.
New patches:

[-add test script for --set-scripts-executable
Mark Stosberg <[EMAIL PROTECTED]>**20050901015046
 
 It's currently failing because darcs is currently broken in this regard. I commented
 out a "TODO" test in case you want to make to this a TODO test until
 someone gets to it.
] 
<
> {
addfile ./tests/set_scripts_executable.pl
hunk ./tests/set_scripts_executable.pl 1
+#!/usr/bin/env perl
+
+# Some tests for the --set-scripts-executable option.
+
+use lib qw(lib/perl);
+use Test::More qw/no_plan/;
+use Test::Darcs;
+use Shell::Command;
+use strict;
+
+rm_rf  'temp1';
+rm_rf  'temp2';
+mkpath 'temp1';
+mkpath 'temp2/one/two';
+chdir 'temp1';
+darcs 'init';
+chdir '../temp2';
+darcs 'init';
+chdir '../';
+
+{ 
+    my $test_name = 'darcs pull --set-scripts-executable works';
+
+    diag __FILE__;
+    cp __FILE__, 'temp1/script.pl' || die $!;
+    chmod 0644, 'temp1/script.pl' || die $!;
+    ok( (-r 'temp1/script.pl'), 'pre test: script exists and is readable' );
+    ok( ! (-x 'temp1/script.pl'), 'pre test: script is not executable' );
+
+    chdir './temp1';  
+    darcs  qw/add script.pl/;
+    like( ( darcs qw!record --patch-name 'uno' --all --author [EMAIL PROTECTED] ), qr/finished recording/i );
+    ok( chdir '../temp2' );
+    like( ( darcs qw%pull -a ../temp1 %) , qr/finished pulling/i );
+    ok( (-r 'script.pl'), 'reality check: file has been pulled and is readable' );
+
+    #TODO: {
+    #    local $TODO = 'waiting for code to fix.';
+        ok( (-x 'script.pl'), $test_name );
+    #}
+
+    chdir '../';     # now outside of any repo
+}
+
+
+
+ok(-d 'temp1', "temp1 exists here");
+rm_rf 'temp1';
+ok((!-d 'temp1'), 'temp1 directory was deleted');
+
+ok(-d 'temp2', "temp2 exists here");
+rm_rf 'temp2';
+ok((!-d 'temp2'), 'temp2 directory was deleted');
+
+
+
+
}

Context:

[fix typo in docs.
David Roundy <[EMAIL PROTECTED]>**20050831002520] 
[fix --posthook code to pass tests.
David Roundy <[EMAIL PROTECTED]>**20050830132225] 
[add test for --disable.
David Roundy <[EMAIL PROTECTED]>**20050830132122] 
[add changelog entry for --posthook.
David Roundy <[EMAIL PROTECTED]>**20050830132110] 
[add skeleton posthook test.
David Roundy <[EMAIL PROTECTED]>**20050827123744] 
[posthook documentation
Jason Dagit <[EMAIL PROTECTED]>**20050825045706] 
[changed from --posthook-command to posthook
Jason Dagit <[EMAIL PROTECTED]>**20050825043414] 
[now the posthook options appear for each command
Jason Dagit <[EMAIL PROTECTED]>**20050825043305] 
[posthook for apply
Jason Dagit <[EMAIL PROTECTED]>**20050803070343
 With this patch it is now possible to specify a command to run after every
 successful apply.
] 
[added run_posthook for actually running posthooks
Jason Dagit <[EMAIL PROTECTED]>**20050803070156
 This adds the function run_posthook which should be used to run posthooks.
 The code was added to Test.lhs, but there may be a better place for this code.
] 
[added posthook command line switches
Jason Dagit <[EMAIL PROTECTED]>**20050803065956
 Added generic posthook command line switches.  This patch does not add any
 posthooks to any command.
] 
[New implementation of comparePS, based on memcmp. 1/5 space usage, 96% faster
[EMAIL PROTECTED] 
[Rewrite gcau, add explanatory comment from David and some TODO notes
Ian Lynagh <[EMAIL PROTECTED]>**20050830020943] 
[update building darcs section of manual.
David Roundy <[EMAIL PROTECTED]>**20050829120152] 
[add bench directory with a single script in it.
David Roundy <[EMAIL PROTECTED]>**20050828114118
 See bench/README for discussion of the idea behind this.
] 
[Use substrPS-less versions of initPS and tailPS
[EMAIL PROTECTED] 
[remove hideous malloc hack.
David Roundy <[EMAIL PROTECTED]>**20050818161411] 
[Remove unused function
Ian Lynagh <[EMAIL PROTECTED]>**20050730010118] 
[fix for bug Ian found in apply.
David Roundy <[EMAIL PROTECTED]>**20050811162558
 This is the bug manifested in the cabal repository.
] 
[Move slurping into syncPristine.
Juliusz Chroboczek <[EMAIL PROTECTED]>**20050809232101
 Avoids creating a useless pristine tree when there is none.  Thanks to
 Ian for pointing this out.
] 
[Split --relink into --relink and --relink-pristine.
Juliusz Chroboczek <[EMAIL PROTECTED]>**20050809230951
 Relinking the pristine tree breaks handling of timestamps, which causes
 Darcs to compare file contents.  It should not be used unless you know
 what you are doing.
] 
[fix compilation errors with ghc-6.2.2 on win32
Peter Strand <[EMAIL PROTECTED]>**20050809192759] 
[Retain both Git's author and committer.
Juliusz Chroboczek <[EMAIL PROTECTED]>**20050810000820] 
[make repair work on partial repositories.
David Roundy <[EMAIL PROTECTED]>**20050805113001] 
[Cleanup --verbose handling in repair command
Matt Lavin <[EMAIL PROTECTED]>**20050805020630] 
[change my AUTHORS email to [EMAIL PROTECTED]
David Roundy <[EMAIL PROTECTED]>**20050808124703] 
[clean up Printer.wrap_text.
David Roundy <[EMAIL PROTECTED]>**20050808114844] 
[add several changelog entries.
David Roundy <[EMAIL PROTECTED]>**20050808114800] 
[improve EOD message a tad.
David Roundy <[EMAIL PROTECTED]>**20050807112644
 This change also introduces a "wrapped_text" function in Printer, so we
 won't have to worry so often about manually wrapping lines.
] 
[changed ***DARCS*** to ***END OF DESCRIPTION***
Jason Dagit <[EMAIL PROTECTED]>**20050729032543] 
[remove unused opts argument from apply_patches and apply_patches_with_feedback
Matt Lavin <[EMAIL PROTECTED]>**20050807031038] 
[Use apply_patch_with_feedback from check and repair commands
Matt Lavin <[EMAIL PROTECTED]>**20050805020830] 
[add code to read patch bundles with added CRs.
David Roundy <[EMAIL PROTECTED]>**20050806222631
 I think this'll address bug #291.
] 
[accept command-line flags in any order.
David Roundy <[EMAIL PROTECTED]>**20050806211828
 In particular, we no longer require that --flags precede filename and
 repository arguments.
] 
[show patch numbers instead of dots on get
Matt Lavin <[EMAIL PROTECTED]>**20050804013649] 
[add obliterate command as alias for unpull.
David Roundy <[EMAIL PROTECTED]>**20050804104929] 
[Do not ask confirmation for revert -a
[EMAIL PROTECTED]
 Giving -a as a parameter means the user expects all changes to be reverted.
 Just like for unrevert and record go ahead with it do not ask for confirmation.
] 
[clarify help text for 'd' in SelectPatches.
David Roundy <[EMAIL PROTECTED]>**20050806231117] 
[Add --with-static-libs configure flag for linking static versions of libraries.
[EMAIL PROTECTED] 
[add changelog entry for bug #477.
David Roundy <[EMAIL PROTECTED]>**20050806212148] 
[changelog entry for bug #189.
David Roundy <[EMAIL PROTECTED]>**20050731132624] 
[add description of how to add changelog entries to ChangeLog.README.
David Roundy <[EMAIL PROTECTED]>**20050806225901] 
[Explain the missing ChangeLog
Mark Stosberg <[EMAIL PROTECTED]>**20050526135421
 
 It should be easy for casual users and contributors to view and update the
 ChangeLog.
 
 Providing a README file in the place where people are most likely to look
 provides a very useful clue.
 
 However, it's still not clear to me exactly how the system works, so I have
 left a stub to complete that documentation.
 
     Mark
 
] 
[fix obsolete error explanation in get_extra bug.
David Roundy <[EMAIL PROTECTED]>**20050804130610] 
[simplify fix for bug 463; reuse /// from FilePathUtils
Matt Lavin <[EMAIL PROTECTED]>**20050804021130] 
[Make curl exit with error on failed downloads
[EMAIL PROTECTED] 
[Bump up AC_PREREQ version to 2.59.
[EMAIL PROTECTED] 
[fix for bug 463 (with new test)
Matt Lavin <[EMAIL PROTECTED]>**20050802002116] 
[bump version number, since I just made a release.
David Roundy <[EMAIL PROTECTED]>**20050731190756] 
[Use simpler curl_version() function to get version string.
Kannan Goundan <[EMAIL PROTECTED]>**20050322221027] 
[fix documentation on --reorder-patches.
David Roundy <[EMAIL PROTECTED]>**20050731185406] 
[add changelog entry for bug #224.
David Roundy <[EMAIL PROTECTED]>**20050731133942] 
[fix bug when editing long comment leaves empty file.
David Roundy <[EMAIL PROTECTED]>**20050731133612] 
[TAG 1.0.4pre2
David Roundy <[EMAIL PROTECTED]>**20050731121029] 
Patch bundle hash:
7c82492482fab87fad3384ea5b8df7c72d49ce8f
_______________________________________________
darcs-devel mailing list
[email protected]
http://www.abridgegame.org/cgi-bin/mailman/listinfo/darcs-devel

Reply via email to