logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

darcs patch: Do not ask confirmation for revert -a: msg#00124

Subject: darcs patch: Do not ask confirmation for revert -a
Attached a patch generated with darcs send -o which makes revert -a non-interactive all the way by suppressing the question just before reverting. It is still asked if -a is not supplied.

Jani
New patches:

[Do not ask confirmation for revert -a
jani@xxxxx**20050627124011
 Giving -a as a parameter means the user expects all changes to be reverted.
 Just like for unrevert and record go ahead with it do not ask for confirmation.
] {
hunk ./Revert.lhs 107
-             yorn <- askUser "Do you really want to revert these changes? "
+             yorn <- if All `elem` opts
+                     then return "y"
+                     else askUser "Do you really want to revert these changes? 
"
}

Context:

[Teach apply how to handle ChangePref patches
Ian Lynagh <igloo@xxxxxxxx>**20050615023428] 
[Make more RepoPrefs functions generic in their Monad
Ian Lynagh <igloo@xxxxxxxx>**20050615023359] 
[Make some repo prefs functions generic in the Monad they use
Ian Lynagh <igloo@xxxxxxxx>**20050615022455] 
[Add m{Write,Read}BinFile, mDoes{Directory,File}Exist to DarcsIO
Ian Lynagh <igloo@xxxxxxxx>**20050615022310] 
[Fall back to the inefficient, but safe, separate_middle_last_from_first defn.
Ian Lynagh <igloo@xxxxxxxx>**20050615010549] 
[Don't define our lex function separately for PackedStrings, and take it out of 
Stringalike itself
Ian Lynagh <igloo@xxxxxxxx>**20050615024343] 
[Remove '\n's from Docs, and remove some unwanted spaces
Ian Lynagh <igloo@xxxxxxxx>**20050615003925] 
[format error to be easier to read
Mark Stosberg <mark@xxxxxxxxxxxxxxx>**20050604231330
 
 Before this change, the description ran directly into the patch name, like
 this:
 
    Couldn't read patch Wed Jul ...
 
] 
[provide a clue with there is an error applying patch to recorded.
Mark Stosberg <mark@xxxxxxxxxxxxxxx>**20050604230334] 
[quit recommend 'get --verbose'
Mark Stosberg <mark@xxxxxxxxxxxxxxx>**20050605004133
 
 Get now gives nice feedback by default, a continually updating with feedback
 like:
   Copying patch 13 of 135
 
 --verbose additionally shows the patch IDS, which most people won't care 
about. 
 
 So the --verbose recommedation is no longer needed. 
] 
[Tidy up after tests
Ian Lynagh <igloo@xxxxxxxx>**20050604193114] 
[Fix test warnings
Ian Lynagh <igloo@xxxxxxxx>**20050604193054] 
[RT#413: add TODO test for bug: add should return an error when files can't be 
read.
Mark Stosberg <mark@xxxxxxxxxxxxxxx>**20050602161701] 
[RT#414: test case for 'record' failing when there are multiple files with 
permissions problems.
Mark Stosberg <mark@xxxxxxxxxxxxxxx>**20050602163139] 
[GNUmakefile: update predist to copy Context.hs instead of c_context.c
Tomasz Zielonka <tomasz.zielonka@xxxxxxxxx>**20050525093936] 
[move some of predist commands to GNUmakefile, to the predist target
Tomasz Zielonka <tomasz.zielonka@xxxxxxxxx>**20050525090659] 
[add sal_last
Tommy Pettersson <ptp@xxxxxxxxxxxxxx>**20050518194617] 
[TAG darcs unstable 2005-05-29
Ian Lynagh <igloo@xxxxxxxx>**20050529125403] 
Patch bundle hash:
b2bcad7019f097d74acafb0cb8e677daf99a6b42
_______________________________________________
darcs-devel mailing list
darcs-devel@xxxxxxxxx
http://www.abridgegame.org/cgi-bin/mailman/listinfo/darcs-devel
<Prev in Thread] Current Thread [Next in Thread>