darcs

Issue 2253 failure trying to make index in darcs-1.0 repo

Title failure trying to make index in darcs-1.0 repo
Priority Status resolved
Milestone Resolved in 2.10.0
Superseder Nosy List fx
Assigned To
Topics

Created on 2012-10-10.11:28:28 by fx, last changed 2012-10-16.19:46:46 by noreply.

Messages
msg16218 (view) Author: fx Date: 2012-10-10.11:28:26
I just tried to run:

  darcs changes <file>

in an old repo that I didn't realize was
        Format: darcs-1.0

The resulting message was unhelpful (with a long path elided below):

  Creating a patch index, please wait. To stop press Ctrl-C
  darcs: [elided]/_darcs/hashed_inventory: openBinaryFile: does not exist (No such file or directory)
 
For what it's worth, it works to do just "darcs changes".
 
This is with version "2.9.5 (+ 10 patches)", but there don't appear to
have been any relevant changes since.
msg16219 (view) Author: owst Date: 2012-10-10.11:34:19
Hmm. I thought that I'd fixed this for Issue2237.

Can you check if you built your darcs with the patch

    "resolve issue 2237 prevent patch index creation for non-hashed repos"

If so, and you're still getting the error, then we need to do some more
investigation!
msg16220 (view) Author: owst Date: 2012-10-10.11:39:33
Urk. I see the same behaviour as you, using the oldfashioned.tgz repo in
tests/data/, and runnning `darcs cha x`.

Maybe I didn't catch all codepaths that create the PI.
msg16235 (view) Author: noreply Date: 2012-10-16.19:46:45
The following patch sent by Owen Stephens <darcs@owenstephens.co.uk> updated issue issue2253 with
status=resolved;resolvedin=2.10.0 HEAD

* Resolve issue2253 - attempting to use the patch index shouldn't create it on OF repos 
Ignore-this: b1a9ea6c7bf9dd2571258c9d005511ce
History
Date User Action Args
2012-10-10 11:28:28fxcreate
2012-10-10 11:34:20owstsetmessages: + msg16219
2012-10-10 11:39:34owstsetmessages: + msg16220
2012-10-16 19:46:46noreplysetstatus: unknown -> resolved
messages: + msg16235
resolvedin: 2.10.0