darcs

Issue 1449 darcs get --context does not handle missing patches

Title darcs get --context does not handle missing patches
Priority wishlist Status given-up
Milestone Resolved in
Superseder Nosy List WorldMaker, darcs-devel, dmitry.kurochkin, kowey, nominolo, thorkilnaur
Assigned To
Topics UI

Created on 2009-04-21.17:28:36 by kowey, last changed 2017-07-30.23:36:01 by gh.

Messages
msg7731 (view) Author: kowey Date: 2009-04-21.17:28:33
This is really just a UI problem.

I did a
  darcs get http://code.haskell.org/GenI --context my-context
and got distinctly bug-like output.

Copying patches, to get lazy repository hit ctrl-C...
darcs: failed to read patch in get_extra:       
Mon Apr 13 11:10:36 BST 2009  Eric Kow <E.Y.Kow@brighton.ac.uk>
  * Remove unused 'grammars' directory.
Mon Apr 13 11:10:36 BST 2009  Eric Kow <E.Y.Kow@brighton.ac.uk>
  * Remove unused 'grammars' directory.
Patch not stored in patch bundle:
Mon Apr 13 11:10:36 BST 2009  Eric Kow <E.Y.Kow@brighton.ac.uk>
  * Remove unused 'grammars' directory.
Perhaps this is a 'partial' repository?

On further inspection, it turns out that the problem was not a bug
but that I was trying to do a darcs get using a context file which
contained patches that I had not even pushed yet.

In other words, I was asking darcs for patches that didn't even exist in the
repo.  The real context file is attached here as "real-context"

It would be nice if darcs could give more helpful output in this
scenario, but I imagine this would be tricky to do.

One thing to look into, though: why do we print the patch name
three times?

That'll teach me to do demos when I'm tired :-)
msg8267 (view) Author: kowey Date: 2009-08-18.20:41:42
Note that issue1505 may help, but it won't completely solve the problem for this
particular issue.

I guess in my ideal darcs, we would be able to say something like

  This context file contains patches which are not in the source repository
  ...

Whoever implements this should probably write a regression test first :-)
History
Date User Action Args
2009-04-21 17:28:36koweycreate
2009-04-22 03:08:13twbsettopic: + UI
nosy: kowey, simon, thorkilnaur, dmitry.kurochkin, nominolo
2009-04-22 03:08:30twbsetpriority: wishlist
nosy: kowey, simon, thorkilnaur, dmitry.kurochkin, nominolo
2009-08-18 20:41:44koweysetstatus: unread -> needs-implementation
nosy: + WorldMaker
messages: + msg8267
2009-08-25 17:43:55adminsetnosy: + darcs-devel, - simon
2009-08-27 14:27:28adminsetnosy: kowey, darcs-devel, WorldMaker, thorkilnaur, dmitry.kurochkin, nominolo
2009-10-23 22:39:13adminsetnosy: + maxbattcher, - WorldMaker
2009-10-24 00:00:35adminsetnosy: + WorldMaker, - maxbattcher
2017-07-30 23:36:01ghsetstatus: needs-implementation -> given-up