Issue 2150 missing dependencies in darcs apply confuse users

Title missing dependencies in darcs apply confuse users
Priority bug Status needs-diagnosis/design
Milestone Resolved in
Superseder Nosy List bfr, kowey, mndrix
Assigned To
Topics UI

Created on 2012-03-03.19:50:29 by kowey, last changed 2012-03-06.07:29:18 by kowey.

msg15206 (view) Author: kowey Date: 2012-03-03.19:50:27
I think this is a usability bug in darcs apply:

Consider the case where we have a repository called “central”, and a 
local copy called “laggard”.  If somebody sends a patch against 
“central”, the person applying said patch to “laggard” will sometimes be 
confused when darcs refuses to apply the bundle because of missing 
dependencies.  The confusion comes from the violation of the expectation 
set by darcs pull and friends that unwanted non-dependencies can be 
cherry picked.  How come apply doesn't do cherry-picking?

The answer is not patch theory related.  It's just an artefact of how 
darcs send/apply works: no dependencies in bundles.

I think we should maybe think of some ways we can improve on this.  
* minimal context
* store metadata in bundles giving original repo, and add UI like “fetch 
the missing patches from http://example.com?”
* ???

* http://irclog.perlgeek.de/darcs/2011-05-12#i_3723753
* http://lists.osuosl.org/pipermail/darcs-users/2012-March/026397.html
* http://wiki.darcs.net/FAQ#why-does-darcs-apply-force-me-to-get-
msg15208 (view) Author: mndrix Date: 2012-03-04.03:10:34
I encountered this same problem two nights ago after implementing a 
rudimentary rebase command in terms of obliterate and apply.  I had 
patches ABCD and called 'obliterate -o' to create a patch file for each 
one.  I then tried to apply them in the order ACDB.  Of course, the bundle 
for D referred to B in the context and 'apply' refused to proceed.

Before this experience, I falsely assumed that context for a bundle was 
calculated by commuting patches backwards until any part of them changed.  
Is that what kowey means by minimal context?

In this particular case, storing extra metadata and fetching false 
dependencies during apply would break the intent of rebase.
msg15210 (view) Author: kowey Date: 2012-03-06.07:29:18
See issue1514 for discussion on minimal context
Date User Action Args
2012-03-03 19:50:29koweycreate
2012-03-04 03:10:35mndrixsetnosy: + mndrix
messages: + msg15208
2012-03-06 07:29:18koweysetmessages: + msg15210