darcs

Issue 2074 AVOID: failure when aborting obliterate that will disallow unrevert

Title AVOID: failure when aborting obliterate that will disallow unrevert
Priority feature Status needs-implementation
Milestone Resolved in
Superseder Nosy List owst
Assigned To
Topics UI

Created on 2011-05-27.11:17:07 by owst, last changed 2013-02-17.13:37:56 by kowey.

Messages
msg14470 (view) Author: owst Date: 2011-05-27.11:17:06
darcs init
touch a
darcs add a
darcs rec -am 'a'
echo "line1" > a
darcs rev -a
echo "yn" | darcs ob

causes "darcs failed:  Cancelled."

when the user has answered no to "This operation will make unrevert
impossible!" in obliterate, because "fail" is called within
"removeFromUnrevertContext" in src/Darcs/Repository/Internal.hs 

I don't think this should be a failure - the user has told darcs to stop.
msg16682 (view) Author: kowey Date: 2013-02-17.13:37:54
Yeah, this is a general thing.  Failure should mean failure
History
Date User Action Args
2011-05-27 11:17:07owstcreate
2013-02-17 13:37:56koweysetpriority: feature
status: unknown -> needs-implementation
topic: + UI
messages: + msg16682
title: Darcs failure when stopping obliterate that will disallow unrevert -> AVOID: failure when aborting obliterate that will disallow unrevert