darcs

Issue 1380 darcs diff fails complaining that a file not exist

Title darcs diff fails complaining that a file not exist
Priority bug Status given-up
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, kowey, norman-ramsey, t-jodias, thorkilnaur, tux_rocker
Assigned To norman-ramsey
Topics

Created on 2009-03-06.04:20:00 by nr1, last changed 2017-07-30.23:38:21 by gh.

Messages
msg7409 (view) Author: norman-ramsey Date: 2009-03-06.04:19:57
darcs diff is looking for more files than it ought:

: nr@yorkie 5596 ; darcs diff --from-patch='ghctags compile again' GhcTags.hs
darcs: ./compiler/nativeGen/SPARC/CodeGen/Gen32.hs: openBinaryFile: does not exist (No such file or directory)

You can reproduce this with the current HEAD of GHC, in directory 
utils/ghctags.

I suspect it may be opening every file mentioned in every patch.
It should obviously not fall over if a file is mentioned in a patch
but no longer exists.

Also to the point, since I've asked for one particular file
on the command line, there's no reason darcs should ask for
anything  not identical to that file (or related to it by darcs mv).

Norman

P.S. dunno if 678 is related---couldn't find much useful with a search.
msg7654 (view) Author: kowey Date: 2009-04-09.16:16:23
Could I get a volunteer to build a minimal test case for this?

Norman, if it won't be too much trouble for you: 
http://wiki.darcs.net/index.html/RegressionTests

Otherwise, any takers?
msg7659 (view) Author: norman-ramsey Date: 2009-04-09.20:39:47
Eric,

I'd love to help, but my plate is way too full and will remain that
way at least until July 15 (the POPL deadline).

Norman
msg8741 (view) Author: kowey Date: 2009-09-07.13:39:18
Hi Norman,

So I think this is really two bugs in one.  I've split off the bit about not
looking at unnecessary files into issue1600.

Meanwhile, for the error, I ran
$ darcs diff --from-patch='ghctags compile again' GhcTags.hs
in ghctags of a GHC repo whose latest patch is from 2009-04 and did not get any
error messages.

By any chance was this a partial repository?

If so, I think what will most likely happen is that we will retire support for
partial repositories before we fix the bug.

Thanks for the bug report!
History
Date User Action Args
2009-03-06 04:20:00nr1create
2009-03-06 12:18:44tux_rockersetpriority: bug
nosy: + tux_rocker
2009-04-09 16:16:25koweysetstatus: unread -> needs-reproduction
nosy: kowey, simon, thorkilnaur, tux_rocker, dmitry.kurochkin, dias, nr1
messages: + msg7654
2009-04-09 20:39:49nr1setnosy: kowey, simon, thorkilnaur, tux_rocker, dmitry.kurochkin, dias, nr1
messages: + msg7659
2009-08-25 17:41:42adminsetnosy: + darcs-devel, - simon
2009-08-27 14:16:49adminsetnosy: kowey, darcs-devel, thorkilnaur, tux_rocker, dmitry.kurochkin, dias, nr1
2009-09-07 13:39:21koweysetstatus: needs-reproduction -> waiting-for
nosy: kowey, darcs-devel, thorkilnaur, tux_rocker, dmitry.kurochkin, dias, nr1
assignedto: nr1
messages: + msg8741
title: darcs diff tries to read a file it shouldn't, fails when does not exist -> darcs diff fails complaining that a file not exist
2009-10-23 22:47:06adminsetnosy: + t-jodias, - dias
2009-10-24 00:38:55adminsetassignedto: nr1 -> norman-ramsey
nosy: + norman-ramsey
2009-10-24 00:38:58adminsetnosy: - nr1
2017-07-30 23:38:21ghsetstatus: waiting-for -> given-up