darcs

Patch 748 Resolve issue1228: Add --pause-for-gui to diff, pull and apply

Title Resolve issue1228: Add --pause-for-gui to diff, pull and apply
Superseder Nosy List mndrix
Related Issues
Status accepted Assigned To
Milestone

Created on 2012-03-09.21:38:13 by mndrix, last changed 2012-03-24.16:52:57 by gh.

Files
File name Status Uploaded Type Edit Remove
function-for-asking-the-user-to-press-enter.dpatch mndrix, 2012-03-15.22:00:43 application/x-darcs-patch
patch-preview.txt mndrix, 2012-03-09.21:38:12 text/x-darcs-patch
patch-preview.txt mndrix, 2012-03-15.22:00:43 text/x-darcs-patch
style-updates-for-darcs_commands__apply_diff_pull_.dpatch mndrix, 2012-03-09.21:38:12 application/x-darcs-patch
unnamed mndrix, 2012-03-09.21:38:12
unnamed mndrix, 2012-03-15.22:00:43
See mailing list archives for discussion on individual patches.
Messages
msg15246 (view) Author: mndrix Date: 2012-03-09.21:38:12
3 patches for repository http://darcs.net/screened:

Fri Mar  9 13:16:20 MST 2012  Michael Hendricks <michael@ndrix.org>
  * Style updates for Darcs.Commands.{Apply,Diff,Pull}
  
  The style guide offers no guidelines for long import lists, so I
  decided to follow the export list style.  I added Haddock where
  it seemed to make sense.
  
  I only organized the parts that I plan to touch with a later
  patch.  This keeps the style changes small while still improving
  the code that I was going to change anyway.
  
  I'm keeping this patch separate from the implementation changes
  so that a future 'trackdown' doesn't have to wade through style
  changes that should have no effect on behavior.
  

Sat Mar  3 08:12:30 MST 2012  Michael Hendricks <michael@ndrix.org>
  * Function for asking the user to press Enter
  
  This is just a cleaner replacement for
  
      _ <- askUser "..."
      return ()

Fri Mar  9 14:25:03 MST 2012  Michael Hendricks <michael@ndrix.org>
  * Resolve issue1228: Add --pause-for-gui to diff, pull and apply
  
  When using an external diff tool via '--diff-command' or an
  external merge tool via '--external-merge', the current behavior
  assumes the tool is a GUI which requires darcs to pause (asking
  the user to press Enter) before deleting any temporary files.
  
  This patch leaves the default behavior as described above, but
  provides an option --no-pause-for-gui which skips the "Press
  Enter" prompt.  This option is particularly helpful for external
  diff tools (such as colordiff or wdiff) which produce output
  before exiting.
  
  Because the desired pause behavior is a function of the
  diff/merge tool, this is implemented as a command line option
  (like --diff-command and --external-merge) instead of an
  environment variable. This lets one specify the pause behavior in
  the same way as one specifies the tool.
Attachments
msg15334 (view) Author: gh Date: 2012-03-15.16:09:36
Michael, looks like your bundle now conflicts with other changes in the
module Darcs.Utils that have been pushed into screened.
Could you submit a new version of the bundle?
msg15342 (view) Author: mndrix Date: 2012-03-15.22:00:43
3 patches for repository http://darcs.net/screened:

A rebased version of the previous bundle to avoid conflicts
with recent changes to Darcs.Utils

Sat Mar  3 08:12:30 MST 2012  Michael Hendricks <michael@ndrix.org>
  * Function for asking the user to press Enter
  
  This is just a cleaner replacement for
  
      _ <- askUser "..."
      return ()

Fri Mar  9 13:16:20 MST 2012  Michael Hendricks <michael@ndrix.org>
  * Style updates for Darcs.Commands.{Apply,Diff,Pull}
  
  The style guide offers no guidelines for long import lists, so I
  decided to follow the export list style.  I added Haddock where
  it seemed to make sense.
  
  I only organized the parts that I plan to touch with a later
  patch.  This keeps the style changes small while still improving
  the code that I was going to change anyway.
  
  I'm keeping this patch separate from the implementation changes
  so that a future 'trackdown' doesn't have to wade through style
  changes that should have no effect on behavior.
  

Thu Mar 15 12:19:59 MDT 2012  Michael Hendricks <michael@ndrix.org>
  * Resolve issue1228: Add --pause-for-gui to diff, pull and apply
  
  When using an external diff tool via '--diff-command' or an
  external merge tool via '--external-merge', the current behavior
  assumes the tool is a GUI which requires darcs to pause (asking
  the user to press Enter) before deleting any temporary files.
  
  This patch leaves the default behavior as described above, but
  provides an option --no-pause-for-gui which skips the "Press
  Enter" prompt.  This option is particularly helpful for external
  diff tools (such as colordiff or wdiff) which produce output
  before exiting.
  
  Because the desired pause behavior is a function of the
  diff/merge tool, this is implemented as a command line option
  (like --diff-command and --external-merge) instead of an
  environment variable. This lets one specify the pause behavior in
  the same way as one specifies the tool.
Attachments
msg15399 (view) Author: gh Date: 2012-03-24.16:52:57
The cleanup patches are welcome and --no-pause-for-gui is convenient (I
only tested it with darcs diff, and the code looks good).

Next time, try to put less text into the long description of patches.
These descriptions should rather belong to the message attached with the
bundle you send.
History
Date User Action Args
2012-03-09 21:38:13mndrixcreate
2012-03-15 16:09:36ghsetmessages: + msg15334
2012-03-15 21:56:20mndrixsettitle: Style updates for Darcs.Commands.{Apply, ... (and 2 more) -> Resolve issue1228: Add --pause-for-gui to diff, pull and apply
2012-03-15 22:00:43mndrixsetfiles: + patch-preview.txt, function-for-asking-the-user-to-press-enter.dpatch, unnamed
messages: + msg15342
2012-03-16 23:02:28ghsetstatus: needs-screening -> needs-review
2012-03-24 16:52:57ghsetstatus: needs-review -> accepted
messages: + msg15399