Re: [darcs-devel] darcs patch: correct apparent typo in test. (and 6 more)

2008-01-08 Thread David Roundy
On Mon, Jan 07, 2008 at 11:12:42PM -0500, Mark Stosberg wrote:
> Mon Jan  7 19:57:10 EST 2008  Mark Stosberg <[EMAIL PROTECTED]>
>   * correct apparent typo in test.
>   The fix made more sense than the former behavior of comparing a file to 
> itself. 
> 
> Mon Jan  7 20:00:43 EST 2008  Mark Stosberg <[EMAIL PROTECTED]>
>   * issue55: document that darcs handles some types of binary files 
> automatically. 
> 
> Mon Jan  7 21:28:08 EST 2008  Mark Stosberg <[EMAIL PROTECTED]>
>   * typo and bug fix in partial.sh.
>   
>   It turned out the call to "darcs optimize" was silently failing to create a 
> checkpoint
>   because there was no tag. This caused the remaining tests for --partial to 
> run against 
>   a full repo, not a partial one. 
> 
> Mon Jan  7 21:47:12 EST 2008  Mark Stosberg <[EMAIL PROTECTED]>
>   * update partial.sh to show off improved darcs-2/partial functionality
> 
> Mon Jan  7 22:52:56 EST 2008  Mark Stosberg <[EMAIL PROTECTED]>
>   * Quit defining inventory format options recursively. Provide user-oriented 
> descriptions.
> 
> Mon Jan  7 23:09:41 EST 2008  Mark Stosberg <[EMAIL PROTECTED]>
>   * improve the one-paragraph docs for "darcs init"
> 
> Mon Jan  7 23:10:24 EST 2008  Mark Stosberg <[EMAIL PROTECTED]>
>   * document the three repo format flags for "darcs init"

Applied.  It looks like there could be further improvements, but this is a
good start!
-- 
David Roundy
Department of Physics
Oregon State University
___
darcs-devel mailing list
darcs-devel@darcs.net
http://lists.osuosl.org/mailman/listinfo/darcs-devel


Re: [darcs-devel] darcs patch: test: Add a test for darcs show tags. (and 1 more)

2008-01-08 Thread David Roundy
On Mon, Jan 07, 2008 at 02:30:35PM +, Nicolas Pouillard wrote:
> Mon Jan  7 15:26:28 CET 2008  [EMAIL PROTECTED]
>   * test: Add a test for darcs show tags.
> 
> Mon Jan  7 15:27:02 CET 2008  [EMAIL PROTECTED]
>   * doc,typo: some s/darcs commit/darcs record/

Thanks for the contributions! Applied.

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


[darcs-devel] [issue577] darcs patch: correct apparent typo in test. (and 6 more)

2008-01-08 Thread David Roundy

David Roundy <[EMAIL PROTECTED]> added the comment:

Ooops.  Accidentally forwarded wrong email to bugs list.  :(

--
priority:  -> not-our-bug
status: unread -> resolved

__
Darcs bug tracker <[EMAIL PROTECTED]>

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


Re: [darcs-devel] darcs using Network.HTTP

2008-01-08 Thread David Roundy
On Tue, Jan 08, 2008 at 02:02:47PM -0800, John Meacham wrote:
> Hi, out of curiosity, why does darcs not use the Network.HTTP native
> haskell http library (http://www.haskell.org/http/) instead of
> attempting to use libcurl or libwww?
> 
> are the reasons just historical, and if so would moving to Network.HTTP
> be something that is wanted?

It's partly historical (darcs predates Network.HTTP), and partly (in the
case of libwww) because Network.HTTP does not support pipelining (which is
the motivation behind the recent work).  At least, that's been my
impression.  There's also the (in practice, minor) factor that Network.HTTP
supports fewer protocols.

Adding support for Network.HTTP would be great--as a compile-time
alternative.
-- 
David Roundy
Department of Physics
Oregon State University
___
darcs-devel mailing list
darcs-devel@darcs.net
http://lists.osuosl.org/mailman/listinfo/darcs-devel


[darcs-devel] darcs using Network.HTTP

2008-01-08 Thread John Meacham
Hi, out of curiosity, why does darcs not use the Network.HTTP native
haskell http library (http://www.haskell.org/http/) instead of
attempting to use libcurl or libwww?

are the reasons just historical, and if so would moving to Network.HTTP
be something that is wanted?

John

-- 
John Meacham - ⑆repetae.net⑆john⑈
___
darcs-devel mailing list
darcs-devel@darcs.net
http://lists.osuosl.org/mailman/listinfo/darcs-devel


[darcs-devel] [issue578] Darcs2 failed: cannot roll back a 'rollback' patch.

2008-01-08 Thread Mark Stosberg

New submission from Mark Stosberg <[EMAIL PROTECTED]>:

Attached is a test script which illustrates what appears to be a bug with darcs2
and the darcs-2 format. 

It's the Steve and Monica example from the DarcsTwo page with a surprise ending.
There's a plot twist where Monica tries a rollback instead of obliterate. At
this point, Darcs2 lies and says: 

failed: cannot roll back a 'rollback' patch.

The bug is perhaps superseded by one of the others that describes overhauling
'rollback'. 

( I created a new keyword/topic called "Darcs2" to tag bugs that are specific to
it. 

   Mark

--
messages: 2372
nosy: beschmi, droundy, kowey, markstos, tommy
priority: bug
status: unread
title: Darcs2 failed:  cannot roll back a 'rollback' patch.
topic: Darcs2

__
Darcs bug tracker <[EMAIL PROTECTED]>

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


[darcs-devel] [issue579] Darcs2: "changes" shows revised history

2008-01-08 Thread Mark Stosberg

New submission from Mark Stosberg <[EMAIL PROTECTED]>:

This bug report can be illustrated with the shell script uploaded through 
issue578.

The result is that after going through the Steve and Monica example from 
DarcsTwo, 
"darcs changes" reports that one conflicting patch contains no content at all!
That's definitely different than darcs-1, and looks like a bug to me. 

Example:
#

$ darcs changes -s
Tue Jan  8 21:06:50 EST 2008  steve
  * Bnote

M ./foo -1 +1

Tue Jan  8 21:06:49 EST 2008  steve
  * Anote


Tue Jan  8 21:06:50 EST 2008  monica
  * AZnote

A ./bar
A ./foo

--
messages: 2374
nosy: beschmi, droundy, kowey, markstos, tommy
priority: bug
status: unread
title: Darcs2: "changes" shows revised history
topic: Darcs2

__
Darcs bug tracker <[EMAIL PROTECTED]>

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


[darcs-devel] darcs patch: add ChangeLog entry for HTTP Pipelining ... (and 1 more)

2008-01-08 Thread Mark Stosberg
Sun Jan  6 23:43:16 EST 2008  Mark Stosberg <[EMAIL PROTECTED]>
  * add ChangeLog entry for HTTP Pipelining support

Tue Jan  8 22:23:46 EST 2008  Mark Stosberg <[EMAIL PROTECTED]>
  * issue567: regression test for moving a file to the same location as itself

New patches:

[add ChangeLog entry for HTTP Pipelining support
Mark Stosberg <[EMAIL PROTECTED]>**20080107044316] {
addfile ./changelog.in/entries/issue377
hunk ./changelog.in/entries/issue377 1
+
+match: name "Initial implementation of HTTP pipelining using libwww"
+
+> Fix issue 377, slow performance over HTTP, by adding pipelining support. (Dmitry Kurochkin)
}

[issue567: regression test for moving a file to the same location as itself
Mark Stosberg <[EMAIL PROTECTED]>**20080109032346] {
addfile ./tests/invalid_pending_after_mv_to_self.sh
hunk ./tests/invalid_pending_after_mv_to_self.sh 1
+#!/bin/sh
+
+# A regression test for issue567
+
+set -ev
+
+test $DARCS || DARCS=$PWD/../darcs
+ACTUAL_DARCS=`which $DARCS`
+DARCSPATH=`dirname $ACTUAL_DARCS`
+PATH="$DARCSPATH:$PATH"
+export PATH
+echo $PATH
+
+EMAIL=tester
+export EMAIL
+
+rm -rf temp
+mkdir temp
+cd temp
+$DARCS init
+mkdir dir
+touch dir/t.t
+$DARCS add dir
+$DARCS add dir/t.t
+$DARCS record -am 'initial add'
+
+# grand finale? Can we move the file to itself? 
+darcs mv dir/t.t dir/
+
+cd ..
+
+rm -rf temp*
}

Context:

[fix latex bug in docs.
David Roundy <[EMAIL PROTECTED]>**20080108211102] 
[fix latex bug in docs.
David Roundy <[EMAIL PROTECTED]>**20080108205912] 
[fix bug in show_tags.sh cleanup.
David Roundy <[EMAIL PROTECTED]>**20080108204430] 
[doc,typo: some s/darcs commit/darcs record/
[EMAIL PROTECTED] 
[test: Add a test for darcs show tags.
[EMAIL PROTECTED] 
[document the three repo format flags for "darcs init"
Mark Stosberg <[EMAIL PROTECTED]>**20080108041024] 
[improve the one-paragraph docs for "darcs init"
Mark Stosberg <[EMAIL PROTECTED]>**20080108040941] 
[Quit defining inventory format options recursively. Provide user-oriented descriptions.
Mark Stosberg <[EMAIL PROTECTED]>**20080108035256] 
[update partial.sh to show off improved darcs-2/partial functionality
Mark Stosberg <[EMAIL PROTECTED]>**20080108024712] 
[typo and bug fix in partial.sh.
Mark Stosberg <[EMAIL PROTECTED]>**20080108022808
 
 It turned out the call to "darcs optimize" was silently failing to create a checkpoint
 because there was no tag. This caused the remaining tests for --partial to run against 
 a full repo, not a partial one. 
] 
[issue55: document that darcs handles some types of binary files automatically. 
Mark Stosberg <[EMAIL PROTECTED]>**20080108010043] 
[correct apparent typo in test.
Mark Stosberg <[EMAIL PROTECTED]>**20080108005710
 The fix made more sense than the former behavior of comparing a file to itself. 
] 
[prevent warning in test script and remove mysterious exit(1) call.
Mark Stosberg <[EMAIL PROTECTED]>**20080106052622] 
[issue395: eliminate patches with a single character name from shell scripts in the test suite.
Mark Stosberg <[EMAIL PROTECTED]>**20080106051821] 
[issue526: improve Perl test suite.
Mark Stosberg <[EMAIL PROTECTED]>**20080106045548
 - better compatibility when path to darcs includes a space
 - better portability by eliminating some system calls
 - general style improvements
] 
[minor white-space and code style improvements
Mark Stosberg <[EMAIL PROTECTED]>**20080105183641] 
[typo fix on GNUmakefile comment
Mark Stosberg <[EMAIL PROTECTED]>**20080105183027] 
[refactor: improve style and portability of pull.pl test script.
Mark Stosberg <[EMAIL PROTECTED]>**20080105181751
 Many direct system calls were eliminated. No functional changes.  
] 
[add feature requested in issue576.
David Roundy <[EMAIL PROTECTED]>**20080105150125] 
[fix bug in issue576.
David Roundy <[EMAIL PROTECTED]>**20080105144929] 
[add test that triggers bug in issue576.
David Roundy <[EMAIL PROTECTED]>**20080105144812] 
[add configure support for libwww.
David Roundy <[EMAIL PROTECTED]>**20080104201255] 
[make bug message more explicit.
David Roundy <[EMAIL PROTECTED]>**20080104004253] 
[Initial implementation of HTTP pipelining using libwww.
Dmitry Kurochkin <[EMAIL PROTECTED]>**20071222144902] 
[Make sure we test the 'darcs' we just built and not one in a global path.
Mark Stosberg <[EMAIL PROTECTED]>**20080102002235
 This done by using "$DARCS" instead of 'darcs'.
 However, in my case the updated test FAILS unexplainably with 2.0.0pre3,
 by failing to detect that a file has changed. 
 If I follow along in a shell and run the same commands with Darcs 2, 
 the problem does not appear. 
] 
[issue347 - document that single quotes should be used in .darcs/defaults
Mark Stosberg <[EMAIL PROTECTED]>**20080101164428] 
[make indent slightly more concise using lines and unlines.
David Roundy <[EMAIL PROTECTED]>**20080104003953] 
[refactor: replace recursive indent with more concise find-and-replace syntax
Mark Stosberg <[EMAIL PROTECTED]>**20080101200447] 
[

[darcs-devel] [issue580] list files converts names to utf-8 even if they already are utf-8

2008-01-08 Thread Pekka Pessi

New submission from Pekka Pessi <[EMAIL PROTECTED]>:

When the repo contnets are shown with darcs list, the file names that
contain 8-bit chars (UTF-8 or ISO-8859-* or whatever) are converted to
UTF-8 as if they are ISO-8859-1.

For example, file named "Ääliö älä lyö ööliä läikkyy" in 8859-1 is
byte string \e4\e4\6c\69\f6 ...
It is shown with, e.g., darcs changes --summary as quoted bytestring
[_\e4_][_\e4_]li[_\f6_] ...

With darcs list files it is shown as
./[_\c3_][_\a4_][_\c3_][_\a4_]li[_\c3_][_\b6_] (iow, it has been
converted into utf-8 as iso-8859-1).

If the file name is encoded in utf-8, it has bytestring
\c3\84\c3\a4\6c\69\c3\b6 (each accented char is now encoded in two
bytes). It is shown with, e.g., darcs changes --summary as quoted
bytestring  [_\c3_][_\84_][_\c3_][_\a4_]li[_\c3_][_\b6_]

However, with darcs list files it is shown as

[_\c3_][_\83_][_\c2_][_\84_][_\c3_][_\83_][_\c2_][_\a4_]li[_\c3_][_\83_][_\c2_][_\b6_]

that is, darcs list assumes that the bytestring is a ISO-8859-1 string
and converts it into UTF-8.

A script output from utf-8 terminal is attached.

--
files: list-files-utf8
messages: 2385
nosy: beschmi, droundy, kowey, ppessi, tommy
status: unread
title: list files converts names to utf-8 even if they already are utf-8

__
Darcs bug tracker <[EMAIL PROTECTED]>

__

list-files-utf8
Description: Binary data
___
darcs-devel mailing list
darcs-devel@darcs.net
http://lists.osuosl.org/mailman/listinfo/darcs-devel


[darcs-devel] darcs patch: regression test for issue406

2008-01-08 Thread Mark Stosberg
Tue Jan  8 23:45:00 EST 2008  Mark Stosberg <[EMAIL PROTECTED]>
  * regression test for issue406

New patches:

[regression test for issue406
Mark Stosberg <[EMAIL PROTECTED]>**20080109044500] hunk ./tests/partial.sh 50
+
+# This is a regression test for issue406
+$DARCS tag -A x --checkpoint checkpointing_a_partial
+

Context:

[fix latex bug in docs.
David Roundy <[EMAIL PROTECTED]>**20080108211102] 
[fix latex bug in docs.
David Roundy <[EMAIL PROTECTED]>**20080108205912] 
[fix bug in show_tags.sh cleanup.
David Roundy <[EMAIL PROTECTED]>**20080108204430] 
[doc,typo: some s/darcs commit/darcs record/
[EMAIL PROTECTED] 
[test: Add a test for darcs show tags.
[EMAIL PROTECTED] 
[document the three repo format flags for "darcs init"
Mark Stosberg <[EMAIL PROTECTED]>**20080108041024] 
[improve the one-paragraph docs for "darcs init"
Mark Stosberg <[EMAIL PROTECTED]>**20080108040941] 
[Quit defining inventory format options recursively. Provide user-oriented descriptions.
Mark Stosberg <[EMAIL PROTECTED]>**20080108035256] 
[update partial.sh to show off improved darcs-2/partial functionality
Mark Stosberg <[EMAIL PROTECTED]>**20080108024712] 
[typo and bug fix in partial.sh.
Mark Stosberg <[EMAIL PROTECTED]>**20080108022808
 
 It turned out the call to "darcs optimize" was silently failing to create a checkpoint
 because there was no tag. This caused the remaining tests for --partial to run against 
 a full repo, not a partial one. 
] 
[issue55: document that darcs handles some types of binary files automatically. 
Mark Stosberg <[EMAIL PROTECTED]>**20080108010043] 
[correct apparent typo in test.
Mark Stosberg <[EMAIL PROTECTED]>**20080108005710
 The fix made more sense than the former behavior of comparing a file to itself. 
] 
[prevent warning in test script and remove mysterious exit(1) call.
Mark Stosberg <[EMAIL PROTECTED]>**20080106052622] 
[issue395: eliminate patches with a single character name from shell scripts in the test suite.
Mark Stosberg <[EMAIL PROTECTED]>**20080106051821] 
[issue526: improve Perl test suite.
Mark Stosberg <[EMAIL PROTECTED]>**20080106045548
 - better compatibility when path to darcs includes a space
 - better portability by eliminating some system calls
 - general style improvements
] 
[minor white-space and code style improvements
Mark Stosberg <[EMAIL PROTECTED]>**20080105183641] 
[typo fix on GNUmakefile comment
Mark Stosberg <[EMAIL PROTECTED]>**20080105183027] 
[refactor: improve style and portability of pull.pl test script.
Mark Stosberg <[EMAIL PROTECTED]>**20080105181751
 Many direct system calls were eliminated. No functional changes.  
] 
[add feature requested in issue576.
David Roundy <[EMAIL PROTECTED]>**20080105150125] 
[fix bug in issue576.
David Roundy <[EMAIL PROTECTED]>**20080105144929] 
[add test that triggers bug in issue576.
David Roundy <[EMAIL PROTECTED]>**20080105144812] 
[add configure support for libwww.
David Roundy <[EMAIL PROTECTED]>**20080104201255] 
[make bug message more explicit.
David Roundy <[EMAIL PROTECTED]>**20080104004253] 
[Initial implementation of HTTP pipelining using libwww.
Dmitry Kurochkin <[EMAIL PROTECTED]>**20071222144902] 
[Make sure we test the 'darcs' we just built and not one in a global path.
Mark Stosberg <[EMAIL PROTECTED]>**20080102002235
 This done by using "$DARCS" instead of 'darcs'.
 However, in my case the updated test FAILS unexplainably with 2.0.0pre3,
 by failing to detect that a file has changed. 
 If I follow along in a shell and run the same commands with Darcs 2, 
 the problem does not appear. 
] 
[issue347 - document that single quotes should be used in .darcs/defaults
Mark Stosberg <[EMAIL PROTECTED]>**20080101164428] 
[make indent slightly more concise using lines and unlines.
David Roundy <[EMAIL PROTECTED]>**20080104003953] 
[refactor: replace recursive indent with more concise find-and-replace syntax
Mark Stosberg <[EMAIL PROTECTED]>**20080101200447] 
[simplify (and debug) pending handling.
David Roundy <[EMAIL PROTECTED]>**20071227133618
 Note that this change could lead to performance regressions, but I believe
 that these regressions would be strongly bounded (never worse than a
 whatsnew), and this simplification makes the code much easier to safely
 modify.
] 
[make updating of pending on pull much more efficient.
David Roundy <[EMAIL PROTECTED]>**20071224131059] 
[simplify a bit of code.
David Roundy <[EMAIL PROTECTED]>**20071224131023] 
[fix type-witness bug in HopefullyPrivate.
David Roundy <[EMAIL PROTECTED]>**20071223141149] 
[simplify Get
David Roundy <[EMAIL PROTECTED]>**20071223025108] 
[simplify tentativelyAddPatch by removing unused return value.
David Roundy <[EMAIL PROTECTED]>**20071223024400] 
[simplify away np2prims and nps2prims.
David Roundy <[EMAIL PROTECTED]>**20071223022145] 
[try to avoid rewriting patches that we've just read.
David Roundy <[EMAIL PROTECTED]>**20071222190029] 
[generalize CommandsAux utility functions.
David Roundy <