darcs

Issue 490 optimize --reorder may invalidate checkpoint

Title optimize --reorder may invalidate checkpoint
Priority bug Status resolved
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, kowey, thorkilnaur, tommy, zooko
Assigned To
Topics

Created on 2007-06-29.18:11:37 by zooko, last changed 2009-08-27.14:11:54 by admin.

Files
File name Uploaded Type Edit Remove
log.txt.bz2 zooko, 2007-06-29.18:11:36 application/octet-stream
Messages
msg1753 (view) Author: zooko Date: 2007-06-29.18:11:36
Folks:

Following the wiki, I ran:

darcs get --partial http://abridgegame.org/repos/darcs 2>&1 | tee / 
tmp/log

It ended with:

-------
11:07:47 (48.20 MB/s) - `20070603213706-145ad- 
c132921b279873206833bd151cdebd952f5d9206.gz' saved [321/321]

FINISHED --11:07:47--
Downloaded: 163,508 bytes in 147 files
Welcome to the darcs darcs repository!

This is the stable release branch.
**********************
darcs: failed to read patch in get_extra:
Thu May 17 02:01:06 PDT 2007  Tommy Pettersson <ptp@lysator.liu.se>
   * add some changelog entries
Perhaps this is a 'partial' repository
-------

The exact version is:

-------
zooko@org:~/playground/darcs$ darcs --exact-version
darcs compiled on Jun 18 2007, at 14:07:14
# configured Mon Jun 18 14:00:52 PDT 2007
./configure /usr/local/stow/darcs-1.0.9-locally-built/share/ 
config.site /usr/local/stow/darcs-1.0.9-locally-built/etc/config.site

Context:

[TAG 1.0.9
Tommy Pettersson <ptp@lysator.liu.se>**20070603213706]
-------

Full log is attached.

Regards,

Zooko
Attachments
msg1754 (view) Author: zooko Date: 2007-06-29.18:17:34
I'm going to mark this as "Priority: urgent", because it really does make a bad
impression...
msg1755 (view) Author: zooko Date: 2007-06-29.18:24:13
darcs get without the --partial worked.

Therefore I've (temporarily) removed "--partial" from the darcs wiki  
instructions:

http://wiki.darcs.net/index.html/CategoryBinaries#head- 
b15d465c02627c31cec4be3644b5e3ed8e10b38b

Regards,

Zooko
msg1756 (view) Author: tommy Date: 2007-06-29.19:25:09
The problem was caused by me runing 'darcs optimize --reorder' on the darcs main
repository, which commuted some patches but didn't remove or update the
checkpoint correspondingly. (I've now generated a new checkpoint.)
msg1757 (view) Author: droundy Date: 2007-06-29.19:28:09
On Fri, Jun 29, 2007 at 06:11:37PM -0000, Zooko wrote:
> Following the wiki, I ran:
> 
> darcs get --partial http://abridgegame.org/repos/darcs 2>&1 | tee / 
> tmp/log

Argh.  I fixed this particular case (on darcs.net, the old abridgegame.org
URL is pointing at an old server... that needs to be changed) by running
darcs optimize --reorder on the darcs repository, but the bug is still
there.  If checkpoints has a checkpoint of a tag that the inventory isn't
broken on, then this is what happens.  This can happen as a result of darcs
optimize --reorder.

I'm working on a fix.

Thanks for the bug report!
-- 
David Roundy
Department of Physics
Oregon State University
History
Date User Action Args
2007-06-29 18:11:38zookocreate
2007-06-29 18:17:35zookosetstatus: unread -> unknown
messages: + msg1754
2007-06-29 18:24:14zookosetmessages: + msg1755
2007-06-29 19:25:10tommysetpriority: urgent -> bug
messages: + msg1756
title: failure to get darcs with 1.0.9 -> optimize --reorder may invalidate checkpoint
2007-06-29 19:28:10droundysetmessages: + msg1757
2007-07-14 20:40:36koweysetstatus: unknown -> resolved-in-stable
2007-07-14 20:46:05koweylinkissue433 superseder
2008-09-16 21:31:11adminsetstatus: resolved-in-stable -> resolved
nosy: + dagit
2009-08-06 17:36:46adminsetnosy: + markstos, jast, Serware, dmitry.kurochkin, darcs-devel, mornfall, simon, thorkilnaur, - droundy
2009-08-06 20:33:48adminsetnosy: - beschmi
2009-08-10 22:05:47adminsetnosy: - markstos, darcs-devel, jast, Serware, mornfall
2009-08-11 00:01:17adminsetnosy: - dagit
2009-08-25 17:50:40adminsetnosy: + darcs-devel, - simon
2009-08-27 14:11:54adminsetnosy: tommy, kowey, darcs-devel, zooko, thorkilnaur, dmitry.kurochkin