logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

darcs patch: msg#00085

Subject: darcs patch
Sat Oct 23 19:09:31 EST 2004  Mark Stosberg <mark@xxxxxxxxxxxxxxx>
  * test for record with absolute paths (current failing)

New patches:

[test for record with absolute paths (current failing)
Mark Stosberg <mark@xxxxxxxxxxxxxxx>**20041024000931] {
addfile ./tests/record.pl
hunk ./tests/record.pl 1
+#!/usr/bin/env perl
+
+# Some tests for 'darcs record '
+
+use Test::More qw/no_plan/;
+use strict;
+use vars qw/$DARCS/;
+$DARCS = $ENV{DARCS} || "$ENV{PWD}/../darcs";
+
+`rm -rf temp1`;
+`mkdir temp1`;
+chdir 'temp1';
+`$DARCS init`;
+
+###
+
+my $test_name = 'record works with absolute paths';
+
+`date >> date.t`;
+`darcs add date.t`;
+
+like(`darcs record -A x -a -m foo \`pwd\`/date.t 2>&1`, qr/finished 
recording/i, $test_name);
+
+###
+
+chdir '../';
+`rm -rf temp1`;
+ok((!-d 'temp1'), 'temp1 directory was deleted');
+
+
+
+
}



Context:

[add two sections to best practices chapter.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041023162528] 
[fix bug in sort_coalesce_composite when coalescing messes up the sort.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041023160704] 
[add --disable option for disabling commands in _darcs/prefs/defaults
Tomasz Zielonka <t.zielonka@xxxxxxxxxxxxxxxxxxxxx>**20041022204427] 
[check for conflicts when writing pending, and if found, die with big message.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041023152128] 
[fix pull and push when called from subdirectories with ../../repodir.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041023150050] 
[remove failing test in revert with conflicts in pending.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041023144611] 
[use concatMap in Patch.lhs rather than concat $ map.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041023141410] 
[allow coalescing of two moves.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041023141135] 
[add test for bad pending after pull
Tomasz Zielonka <t.zielonka@xxxxxxxxxxxxxxxxxxxxx>**20041022075617] 
[clarify add error message.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041023112055] 
[remove unused mmap_slurp_file function.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041022114301] 
[new test: darcs pull should work relative to the current directory
Mark Stosberg <mark@xxxxxxxxxxxxxxx>**20041023151542
 
 I understand this bug is fix with the latest patch set. Because I have an 
older version,
 the test fails, demonstrating the bug is present in 9.23:
 
 not ok 1 - darcs pull should work relative to the current directory
 #     Failed test (pull.pl at line 22)
 #                   '
 # Fail: ../../templ/_darcs/inventory: openBinaryFile: does not exist (No such 
file or directory)
 #
 # '
 #           matches '(?i-xsm:fail.*no such)'
 
 
 
] 
[another test for 'darcs mv'
Mark Stosberg <mark@xxxxxxxxxxxxxxx>**20041022182749
 This adds a new test for 'mv':
 
  "adding a directory with more than one ../ in it should work."
 
 I wrote it because I thought I had found a related bug. However, the test
 passes, so perhaps there is no bug in darcs here.
 
     Mark
 
 
] 
[a test for adding directories
Mark Stosberg <mark@xxxxxxxxxxxxxxx>**20041022172931
 I added a (failing) test for adding a new directory. The bug is simply in the
 diagnostic message returned. The directory is referred to a file when it
 should be referred to as a directory to be less confusing.
 
 Here's what the failing test output looks like now:
 
 not ok 1 - Make sure that messages about directories call them directories.
 #     Failed test (add.pl at line 20)
 #                   'A file named foo.d is already in the repository!
 # Note that to ensure portability we don't allow files that differ
 # only in case.
 # '
 #     doesn't match '(?-xism:directory)'
 
 
 
 
 
] 
[fix off-by-one error in annotate that kept users from seeing "deleted" version.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041022111703] 
[use creator hash and original name in patch list annotate links
Will <will@xxxxxxxxxx>**20041021214939] 
[Add appropriate CFLAGS when compiling with curl
Samuel Tardieu <sam@xxxxxxxxxxx>**20041020121919
 The output of `curl-config --cflags` must be added to the compiler CFLAGS
 in case where curl is not installed in a system predefined directory. This
 is the case on FreeBSD for example where curl is installed in /usr/local
 and the compiler by default doesn't look into /usr/local/include unless
 directed to.
] 
[test script for conflicts in pending
Mark Stosberg <mark@xxxxxxxxxxxxxxx>**20041022001011
 This is a test script to test how things work when there are conflicts in 
pending.
 (None of the other test scripts seemed to cover this yet).
 
 Right now it just verifies the current behavior, which may not be the most
 desirable in the long term. Here are the tests it runs now:
 
 ok 1 - darcs whatsnew reports 'pending has conflicts'
 ok 2 - darcs revert reports "pending has conflicts"
 ok 3 - darcs revert reports "unable to apply inverse patch"
 ok 4 - darcs record reports "pending has conflicts"
 ok 5 - darcs record reports "unable to apply patch"
 ok 6 - darcs repair finds no problem
 
 
 
 
] 
[make xml changes output the original filename when doing changes on a file.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041021120539] 
[add test for rerecord empty patch
Tommy Pettersson <ptp@xxxxxxxxxxxxxx>**20041019191519] 
[use creator hash and original file name in file annotate links
Will <will@xxxxxxxxxx>**20041020063238] 
[clean up 'use strict' warnings in cgi
Will <will@xxxxxxxxxx>**20041020060934] 
[don't mmap on windows-semantics filesystems.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041019102101] 
[add symlink to tarball as darcs-latest.tar.gz on make dist.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041019085945] 
[rerecord shouldn't fail when the patch becomes an empty patch.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041017124826] 
[darcs init is now silent on success.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041017122851] 
[use DIV rather than verbatim when compiling docs to HTML.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041017121413] 
[fix option/options typo in docs.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041017121319] 
[add --creator-hash to annotate.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041016184220
 This change is intended to make it possible to fix darcs.cgi behavior when
 there are file renames.  Currently, it's not possible to view with
 darcs.cgi versions of file prior to a rename event.  By specifying the file
 name *when it was created*, we can avoid that difficulty.
] 
[link to darcs.css stylesheet
Mark Stosberg <mark@xxxxxxxxxxxxxxx>**20041018120816] 
[initial test for rerecord
Mark Stosberg <mark@xxxxxxxxxxxxxxx>**20041017013403
 I noticed that there appeared to be no tests at all for 'rerecord', so I added 
a
 very basic one. Now at least if the command is completely broken there will 
some
 indication from the test suite. 
 
 I did break from convention by coding the test in Perl rather than 'sh'. Perl 
 has a much more flexible and powerful testing system. Since Perl is used in a
 few other places in the project, I thought I could sneak this in here. :)
 I think Perl could be provide a better long term solution for the automated
 test suite. 
 
 I believe I adjusted the Makefile appropriately so this will get run. However,
 I'm having trouble getting my environment set up so that "make test" works at 
all,
 so I wasn't able to test this.
 
 The test should be easy to translate to a 'sh' script if you want to keep that
 consistency for now. 
 
     Mark
 
] 
[add style for darcs command option headers
Mark Stosberg <mark@xxxxxxxxxxxxxxx>**20041016212736] 
[add extra "options" markers
Mark Stosberg <mark@xxxxxxxxxxxxxxx>**20041016210257
 These are used to highlight the places when command options
 are explained in the descriptive text. For the web-based manual
 these could be turned into CSS classes that can be styled,
 and perhaps also HTML anchors.
] 
[improve syntax consistency, add "options" sections
Mark Stosberg <mark@xxxxxxxxxxxxxxx>**20041016205515
  - Sometimes it would say the "'compress' flag" and other times:
     "--compress option".
     (with dashes and s/flag/option). I made it consistent.
 
  - Some \begin{option} sections appear as well since darcs thought
    it was the same patch. 
 
 
  
] 
[move extra "--reply" documentation closer to the first chunk. 
Mark Stosberg <mark@xxxxxxxxxxxxxxx>**20041016202638] 
[canonize self
Mark Stosberg <mark@xxxxxxxxxxxxxxx>**20041016201245] 
[typo fix
Mark Stosberg <mark@xxxxxxxxxxxxxxx>**20041016200011] 
[use new darcs.css with manual as well.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041016171201] 
[use anonymous file handle for temporary files in darcs.cgi.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041016165802] 
[improve error message when push gets a bad repo as argument.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041016155515] 
[Add explicit --dont-look-for-adds to tests, because they
simons@xxxxxxx**20041015150115
 fail if the user has set
 
   whatsnew look-for-adds
 
 in his ~/.darcs/defaults file. "make check" should probably
 ignore this config file altogether.
] 
[IORef is now in Data hierarchy
simons@xxxxxxx**20041015145538] 
[System.Time exports all this module needs
simons@xxxxxxx**20041015145524] 
[remove trailing whitespace
simons@xxxxxxx**20041015145447] 
[foreign exports withArray0
simons@xxxxxxx**20041015145329] 
[prelude exports elem
simons@xxxxxxx**20041015145226] 
[don't import bug twice in darcs_cgi.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041016144821] 
[add new \begin{options} module to documentation.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041016135437] 
[eliminate "David's Advanced Revision Control System" from manual and web page.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041016122054] 
[add --summary option to commands that accept --dry-run.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041015112027] 
[remove vestigial sentence from web page.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041015105008] 
[make changes accept --verbose as a synonymn for --summary.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041014120604] 
[bring ChangeLog up to date.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041014114923] 
[don't accept newlines in patch names.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041014114833] 
[quote conflict attribute values in xml output
Will <will@xxxxxxxxxx>**20041013161333] 
[clarify that boringfile is a repository path
andrew@xxxxxxxxxxx**20041012205127] 
[adding darcs.css
Mark Stosberg <mark@xxxxxxxxxxxxxxx>**20041016160355
 This is the one stylesheet to unify them all. At least, the intent is that it 
would be used
 on the main darcs set, the online manual, and the wiki, to unify the darcs
 online presence.
 
] 
[remove redundent docs for 'trackdown'
Mark Stosberg <mark@xxxxxxxxxxxxxxx>**20041016025325
 The description was how to run 'trackdown' was repeated in slightly different 
words. I removed
 one copy. 
] 
[partial docs spruce up to highlight long flag descriptions
Mark Stosberg <mark@xxxxxxxxxxxxxxx>**20041016024829
 I can't decide whether this update (if applied to the rest of the docs) would
 really add much. Give it a whirl and let me know. If it seems good, I can work
 on update the rest of the docs.
 
     Mark
 
] 
[add 'cvs -n update' equivalence
mark@xxxxxxxxxxxxxxx**20041014030202
 I use '-n update' nearly as much as plain 'update', so I thought this was 
worth including for reference. 
] 
[fix bug where new files didn't show up in darcs diff.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041013111107] 
[fix bug in slurp_recorded_and_unrecorded when called from a different 
directory.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041013110922] 
[make pull prompt for confirmation when there is a conflict with unrecorded 
changes.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041013111327] 
[make unrevert interactive.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041012111740] 
[Fix compilation errors if HAVE_MAPI and HAVE_CURSES are both unset
mklooster@xxxxxxx**20041011095851] 
[update ChangeLog a bit.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041011111827] 
[don't try to generate a new name on get if name was given explicitely.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041010123829] 
[fixed a bug in changes --from-tag.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041010123136] 
[when remaking website, also remake docs.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041010105157] 
[Beatify, er, canonise myself in authors.hs.
Juliusz Chroboczek <jch@xxxxxxxxxxxxxx>**20041009171340] 
[always mark conflicts, even if there's an obvious solution.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041009115131] 
[when rerecording conflicted patch, remove the conflict.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041009104906] 
[when matching patch names, include "UNDO: " in rolled-back patches.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041008111510] 
[handle better the case where unrevert context doesn't make sense.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041008104452] 
[remove unused read_patch function.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041007120450] 
[have cgi preserve whitespace in comments
Will <will@xxxxxxxxxx>**20041007181910] 
[make cgi stylesheet location configurable
Will <will@xxxxxxxxxx>**20041007180619] 
[add new slurp_recorded_and_unrecorded function.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041007120513] 
[Clean up stringify calls in configure.ac (take 3)
Taral <taral@xxxxxxxxx>**20041005173835] 
[Clean up SignalHandler.lhs warnings
Taral <taral@xxxxxxxxx>**20041005172302] 
[Clean up External.hs warnings
Taral <taral@xxxxxxxxx>**20041005172251] 
[Use -Werror
Taral <taral@xxxxxxxxx>**20041004190657] 
[make clean didn't remove authors executable
ijones@xxxxxxxxxx**20041005031319] 
[fix linking problem with --disable-optimize
Tomasz Zielonka <t.zielonka@xxxxxxxxxxxxxxxxxxxxx>**20041005075950] 
[fix overwriting of c_context.c in tarball source.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041005112445] 
[Add RTSFLAGS to GNUmakefile
Taral <taral@xxxxxxxxx>**20041004192542] 
[Clean up Patch.lhs warnings (take 2)
Taral <taral@xxxxxxxxx>**20041004192505] 
[Make stringify put string in .rodata
Taral <taral@xxxxxxxxx>**20041004190637] 
[fix replace documentation.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041005111328] 
[really fix newlines in whatsnew -u
andrew@xxxxxxxxxxx**20041005030757] 
[fix bug in defaults processing of options with -- in them.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041005105533] 
[more win32 build fixes
Will <will@xxxxxxxxxx>**20041004173323] 
[Make clear author can be a commented email address.
Ralph Corderoy <ralph@xxxxxxxxxxxxxxx>**20041004120404
 I didn't realise that I could enter a commented email address when
 prompted.  Hence my authors.hs addition to fix up my existing patches.
 These documentation and prompt changes try to avoid this for others.
] 
[Remove unused var in Tag.lhs
Taral <taral@xxxxxxxxx>**20041003162732] 
[Clean up FastPackedString.hs warnings
Taral <taral@xxxxxxxxx>**20040928232322] 
[Clean up Context.lhs warnings
Taral <taral@xxxxxxxxx>**20040928232212] 
[Move file-specific options out of GNUmakefile
Taral <taral@xxxxxxxxx>**20040928224635] 
[can't make AUTHORS in predist, since history isn't available.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041004105119] 
[fix win32 build problem
Will <will@xxxxxxxxxx>**20041003213706] 
[TAG 1.0.0rc3
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041003114608] 

Patch bundle hash:
69b78db11df9c34c0bad07a6de6a4f44bce30a67
_______________________________________________
darcs-devel mailing list
darcs-devel@xxxxxxxxxxxxxxx
http://www.abridgegame.org/cgi-bin/mailman/listinfo/darcs-devel
<Prev in Thread] Current Thread [Next in Thread>