darcs

Issue 1421 darcs get: --partial and old --tag fight in old-fashioned-inventory.

Title darcs get: --partial and old --tag fight in old-fashioned-inventory.
Priority bug Status wont-fix
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, kowey, ndmitchell, thorkilnaur, tux_rocker
Assigned To
Topics Partial

Created on 2009-04-07.21:38:47 by kowey, last changed 2009-08-27.14:32:13 by admin.

Messages
msg7598 (view) Author: kowey Date: 2009-04-07.21:38:43
On Tue, Apr 07, 2009 at 21:39:36 +0100, Neil Mitchell wrote:
> Running: darcs get --partial --repo-name=temp/base http://darcs.haskell.org/ghc-
> 6.10/packages/base --tag="base 4.0.0.0"

Excellent!  I can reproduce this on my Mac and have a good idea what the
cause is, i.e. an interaction between the --partial and the --tag flag.

I'm BCC'ing the bug tracker for this (in case that works)

You can make a local version of this with

darcs tag -m "old tag"
create a patch
darcs tag -m "new tag"
darcs optimize --checkpoint
darcs get --partial "old tag"

What happens is that with the --partial flag, darcs gets only the
patches up from the new tag on.  But with the --tag flag, darcs tries to
unapply patches in from the new tag to the old tag, patches which it
simply has not fetched.  It sounds like what darcs really ought to do
is to grab checkpoints which are early enough to cover the tag you want
to fix.

Could I get a volunteer to
 - turn this into a minimal test case (Trent?)
 - check to see how darcs 1.0.9 fares with it?

> darcs: failed to read patch:
> Wed May 28 01:38:30 GMT Daylight Time 2008  Ian Lynagh <igloo@earth.li>
>   tagged 2008-05-28
> C:/Neil/hoogle/data/generate/temp/base/_darcs/patches/20080528003830-3fd76-feac6
> 2e381b4ec95be9553256c59e5770ac48fcc.gz: openBinaryFile: does not exist (No such
> file or directory)
> Command failed

http://wiki.darcs.net/DarcsWiki/OldReleases is linked from
http://wiki.darcs.net/DarcsWiki/Binaries

Thanks!
msg8471 (view) Author: kowey Date: 2009-08-24.15:20:36
I think what will most realistically happen is that we'll have deprecated
--partial (by making it equivalent to --complete) before we get around to fixing
this.  Sorry!
History
Date User Action Args
2009-04-07 21:38:47koweycreate
2009-04-09 08:47:10twbsetnosy: darcs-users, kowey, ndmitchell, simon, thorkilnaur, tux_rocker, dmitry.kurochkin
title: Darcs bug (Neil Mitchell) -> darcs get: --partial and old --tag fight in old-fashioned-inventory.
2009-04-09 11:36:51koweysetpriority: bug
status: unread -> needs-reproduction
nosy: - darcs-users
2009-08-24 15:20:40koweysetstatus: needs-reproduction -> wont-fix
nosy: kowey, ndmitchell, simon, thorkilnaur, tux_rocker, dmitry.kurochkin
topic: + Partial
messages: + msg8471
2009-08-25 17:43:06adminsetnosy: + darcs-devel, - simon
2009-08-27 14:32:13adminsetnosy: kowey, darcs-devel, ndmitchell, thorkilnaur, tux_rocker, dmitry.kurochkin