darcs

Patch 1143 resolve issue2365: correctly copy pristine in no-worki...

Title resolve issue2365: correctly copy pristine in no-worki...
Superseder Nosy List gh
Related Issues
Status accepted Assigned To
Milestone

Created on 2014-04-22.17:42:25 by gh, last changed 2014-05-04.20:16:13 by gh.

Files
File name Status Uploaded Type Edit Remove
patch-preview.txt gh, 2014-04-22.17:42:24 text/x-darcs-patch
patch-preview.txt gh, 2014-04-22.18:26:40 text/x-darcs-patch
resolve-issue2365_-correctly-copy-pristine-in-no_working_dir-clones.dpatch gh, 2014-04-22.17:42:24 application/x-darcs-patch
resolve-issue2365_-correctly-copy-pristine-in-no_working_dir-clones.dpatch gh, 2014-04-22.18:26:40 application/x-darcs-patch
unnamed gh, 2014-04-22.17:42:24
unnamed gh, 2014-04-22.18:26:40
See mailing list archives for discussion on individual patches.
Messages
msg17377 (view) Author: gh Date: 2014-04-22.17:42:24
Surprisingly enough, `get --no-working-dir` never worked as expected.
Or more precisely, it created working-copy-less repositories that were
also pristine-less.

This patch enables copyHashed to copy a pristine tree without creating
a clean working copy, enabling `get --no-working-dir` to work as expected.

Also I fixed my previous shell test which was broken since "darcs whatsnew"
returns error code 1 when there are no changes.

1 patch for repository http://darcs.net:

Tue Apr 22 14:35:05 ART 2014  Guillaume Hoffmann <guillaumh@gmail.com>
  * resolve issue2365: correctly copy pristine in no-working-dir clones
  This patch makes Darcs.Repository.HashedIO.copyHashed take
  a flag that tells whether a clean working copy should be created
  while pristine is copied.
Attachments
msg17380 (view) Author: gh Date: 2014-04-22.18:26:40
Fix a bug related to lazy evaluation.

1 patch for repository http://darcs.net:

Tue Apr 22 15:24:36 ART 2014  Guillaume Hoffmann <guillaumh@gmail.com>
  * resolve issue2365: correctly copy pristine in no-working-dir clones
  This patch makes Darcs.Repository.HashedIO.copyHashed take
  a flag that tells whether a clean working copy should be created
  while pristine is copied.
Attachments
msg17425 (view) Author: gh Date: 2014-05-04.20:16:13
Self-accept.
History
Date User Action Args
2014-04-22 17:42:25ghcreate
2014-04-22 18:26:41ghsetfiles: + patch-preview.txt, resolve-issue2365_-correctly-copy-pristine-in-no_working_dir-clones.dpatch, unnamed
messages: + msg17380
2014-04-22 18:40:22ghsetstatus: needs-screening -> needs-review
2014-05-04 20:16:13ghsetstatus: needs-review -> accepted
messages: + msg17425