mirror of http://darcs.net/screened (fork of darcs's darcs-reviewed)  (http://darcs.net/Development/GettingStarted)

fix build of Darcs.Util.Index on Win32

ganeshTue Dec 12 06:29:45 UTC 2017

fix writing of hex strings in Darcs.Util.ByteString

Numbers a to f should we written lowercase, otherwise internal patch files and bundles become incompatible with older darcsen.

ghFri Mar 30 17:40:47 UTC 2018

stop supporting SHA1-hashed repository files

Hashed repos were internally hashed with SHA1 for a short amount of time by unreleased Darcs versions before Darcs 2 (in 2008). We drop the ability to read them, so that the current code makes more sense. Now SHA1 only exists in Darcs to hash patch infos and bundles. The testsuite is adapted because two repos tarballs are hashed with SHA1.

ghThu Mar 29 14:17:39 UTC 2018

rollback definition of linePS and use singleton where appropriate

ghThu Mar 29 22:46:05 UTC 2018

no longer read old cache location

We stopped writing in .darcs/cache two releases ago, and "darcs optimize cache" provided the way to migrate these cached files.

ghWed Mar 28 18:08:06 UTC 2018

reimplement impossible and bug in Darcs.Prelude

also remove impossible.h, Darcs.Util.Bug, CPP extension when not used, and use Darcs.Prelude in more places.

ghThu Mar 29 22:25:54 UTC 2018

simplify errorDoc since errors are shown with a call stack in GHC 8+

ghThu Mar 29 21:02:00 UTC 2018

throw out all access to bytestring internals from Darcs.Util.ByteString

The only remaining function, unsafeWithInternals, is used only in Darcs.Util.Hash so it has been moved into that module. The two C files src/fpstring.[ch] have been removed.

bfrWed Mar 28 19:07:51 UTC 2018

fix betweenLinesPS and add a unit test

This is part of the program to get rid of using ByteString internals. The previous version of betweenLinesPS was buggy because it relied on implementation details of unlinesPS, see issue2573.

bfWed Mar 28 15:56:56 UTC 2018

re-format import list of Darcs.Util.ByteString

bfrWed Mar 28 15:47:39 UTC 2018

refactor, simplify, and document hunk application

This refactor does two things: First, it decouples the optimization that applies sequences of hunks to the same file in one go from the algorithm that applies a single hunk. Second, single hunk application is somewhat simplified and extensively documented. This is very subtle and highly optimized code that easily breaks.

This also moves breakAfter/BeforeNthNewline to D.P.Prim.V1.Commute. These functions are only used in this one place. They are undocumented and have subtle semantics, which makes them unsuitable for re-use.

bfThu Feb 22 09:58:00 UTC 2018

more efficient definition of unlinesPS

bfrThu Feb 22 19:14:56 UTC 2018

use term explicit dependencies instead of extra dependencies

ghThu Mar 29 14:47:33 UTC 2018

small simplification in D.R.Rebase

bfWed Mar 28 06:08:07 UTC 2018

fixed/extended haddocks in D.P.Rebase, consolidate error cases

bfTue Mar 27 18:22:46 UTC 2018

D.UI.Commands.Rebase: add a few comments to explain what's going on

bfTue Mar 27 18:15:56 UTC 2018

make spurious failures of hashed storage tests less likely

This is not a complete fix, as I am still seeing occasional failures ("harness/hstestdata.zip: openBinaryFile: does not exist").

bfrWed Mar 28 17:55:44 UTC 2018

allow running the diff.sh test in parallel

We use our own temporary directory for each test to avoid spurious differences between outputs of 'darcs diff' due to temporary names being already taken.

bfrWed Mar 28 17:18:40 UTC 2018

allow shell tests to run in parallel when using --myers and --patience

Like with --darcs1 and --darcs2, we build this option into the path where the test is run.

bfrWed Mar 28 17:17:07 UTC 2018

tests/network: bake process id into REMOTE_DIR

This allows to run the network tests in parallel.

bfSun Feb 25 23:42:39 UTC 2018

tests: fix add.sh that created repos directly in /tmp

bfSun Feb 25 23:41:09 UTC 2018

move makeFilename and readPatchInfos to D.R.Old

These functions are only used to read old-fashioned (non-hashed) repos. Concentrating them inside Darcs.Repository.Old (particularly makeFilename) makes it clear that they only exist for compatibility and not to be used elsewhere.

bfSun Oct 22 10:23:24 UTC 2017

cleanup: rename x to fmt in D.P.Prim.V1.Show

bfSun Feb 25 12:40:58 UTC 2018

remove several unused exports of D.R.Hashed

addToSpecificInventory is particularly dangerous, since it doesn't update the witnesses of the repo. Its only use is in addToTentativeInventory which is similarly dangerous and unfortunately is used (in convert import); it now has haddocks which warn about that.

bfTue Mar 27 18:25:21 UTC 2018

remove unused exports from Darcs.Patch.Bundle

ghThu Mar 29 14:26:15 UTC 2018

use Darcs.Util.Lock.readTextFile for .authorspellings

Also, use catchIOError to catch IO errors when reading the file.

bfWed Mar 28 06:12:59 UTC 2018

add newtypes to separate hashes for patches, inventories, and pristine trees

This makes type signatures more helpful and avoids errors when hashes to different kinds of objects are involved. Currently limited to D.R.Hashed and D.R.Inventory and defined in the latter, but it really belongs in D.R.Cache or a separate module.

This is an extension and generalization of the ValidHash type introduced previously. ValidHash is now a type class so we can use the same get/mkValidHash functions for the different hash types.

bfSat Mar 24 20:48:33 UTC 2018

Move pull-related test from clone.sh to pull.sh

  • also fix it, as pull does not return an error if no patches matched
  • also add --hashes case, that should be equivalent to --matches 'hash ...'
gpieroTue Jan 9 17:05:03 UTC 2018

Shell test for issue2160 is not failing any more.

This was fixed long ago by: patch 286b16f4edbcad477ac80340d45897462acb5114 Author: Ben Franksen <ben.franksen@online.de>; Date: Sun Aug 13 13:29:53 CEST 2017 * resolve issue2160: wrong line numbers when appending empty line

gpieroTue Jan 9 09:49:46 UTC 2018

t/n/issue2545_command-execution-via-ssh-uri.sh: portability fix

gpieroMon Jan 8 19:12:29 UTC 2018