darcs

Patch 2049 simplify the execution of the external d... (and 4 more)

Title simplify the execution of the external d... (and 4 more)
Superseder Nosy List bfrk
Related Issues
Status accepted Assigned To
Milestone

Created on 2020-07-14.18:43:44 by bfrk, last changed 2020-07-22.06:09:03 by ganesh.

Files
File name Status Uploaded Type Edit Remove
patch-preview.txt bfrk, 2020-07-14.18:43:43 text/x-darcs-patch
simplify-the-execution-of-the-external-diff-command.dpatch bfrk, 2020-07-14.18:43:43 application/x-darcs-patch
unnamed bfrk, 2020-07-14.18:43:43 text/plain
See mailing list archives for discussion on individual patches.
Messages
msg22159 (view) Author: bfrk Date: 2020-07-14.18:43:43
A series of refactors for the diff command implementation.

5 patches for repository http://darcs.net/screened:

patch 8811261eea61ff35093249b97132e5eb7f59b464
Author: Ben Franksen <ben.franksen@online.de>
Date:   Sat Jul  4 22:42:59 CEST 2020
  * simplify the execution of the external diff command

patch f2d9acf4cafc665dfd8a15b1048e03eb408dec62
Author: Ben Franksen <ben.franksen@online.de>
Date:   Fri Jul 10 14:10:17 CEST 2020
  * diff command: inline rundiff, cleanup, add a debug message and comments

patch 2570ddd5b8fbbe73201e3002b949acb143f00a32
Author: Ben Franksen <ben.franksen@online.de>
Date:   Fri Jul 10 14:14:08 CEST 2020
  * diff command: cleanup imports

patch 0b73c2ad6882bfc02df0584e4d17e0bbd0c0449d
Author: Ben Franksen <ben.franksen@online.de>
Date:   Fri Jul 10 14:16:57 CEST 2020
  * diff command: move helper functions to the end 

patch 3ba9751dbc10aa14b320971270fc2ad04db87383
Author: Ben Franksen <ben.franksen@online.de>
Date:   Fri Jul 10 14:24:53 CEST 2020
  * diff command: pull check for correct %1/%2 usage into getDiffCmdAndArgs
Attachments
msg22236 (view) Author: ganesh Date: 2020-07-21.21:49:08
>   * simplify the execution of the external diff command

> -        withCurrentDirectory (toFilePath odir ++ "/..") $
> -            rundiff (takeFileName $ toFilePath odir) (takeFileName $ toFilePath ndir)
> +      rundiff (takeFileName $ toFilePath odir) (takeFileName $ toFilePath ndir)


OK - it took me a while to realise this is the same because the new code
is jumping out a nesting level...

>   * diff command: inline rundiff, cleanup, add a debug message and comments

...which you then explain in this patch :-)

>   * diff command: cleanup imports
>   * diff command: move helper functions to the end 
>   * diff command: pull check for correct %1/%2 usage into getDiffCmdAndArgs

All fine.
History
Date User Action Args
2020-07-14 18:43:44bfrkcreate
2020-07-16 07:42:18bfrksetstatus: needs-screening -> needs-review
2020-07-21 21:49:09ganeshsetmessages: + msg22236
2020-07-21 21:49:18ganeshsetstatus: needs-review -> accepted-pending-tests
2020-07-22 06:09:03ganeshsetstatus: accepted-pending-tests -> accepted