darcs

Patch 1367 removed firstMatch handling from dist co... (and 2 more)

Title removed firstMatch handling from dist co... (and 2 more)
Superseder Nosy List bfrk
Related Issues
Status accepted Assigned To
Milestone

Created on 2015-06-19.22:52:41 by bfrk, last changed 2015-06-25.05:55:22 by ganesh.

Files
File name Status Uploaded Type Edit Remove
patch-preview.txt bfrk, 2015-06-19.22:52:41 text/x-darcs-patch
removed-firstmatch-handling-from-dist-command.dpatch bfrk, 2015-06-19.22:52:41 application/x-darcs-patch
unnamed bfrk, 2015-06-19.22:52:41
See mailing list archives for discussion on individual patches.
Messages
msg18561 (view) Author: bfrk Date: 2015-06-19.22:52:41
These refactorings came up when studying issue2447 because they use the same
set of match options (matchUpToOne). But they are not directly related to
the problem.

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

patch 12cd5ca4f4f4c51199d963dd1177e08625e7a637
Author: Ben Franksen <benjamin.franksen@helmholtz-berlin.de>
Date:   Fri Jun 19 23:45:17 CEST 2015
  * removed firstMatch handling from dist command
  
  The dist command accepts only non-range matching options, so this extra case
  distinction is just dead code.

patch 3256da060baebf834b59cb9502be9cdb159f5b43
Author: Ben Franksen <benjamin.franksen@helmholtz-berlin.de>
Date:   Fri Jun 19 23:53:20 CEST 2015
  * refactored annotate command implementation
  
  This patch is supposed to be semantically transparent. It mainly consists of
  reducing the number of times the flag list is parsed to extract the
  matchFlags from three to one.

patch 28dfabd1b74b1f2c64859c509da9fd8a0c2ba80b
Author: Ben Franksen <benjamin.franksen@helmholtz-berlin.de>
Date:   Sat Jun 20 00:27:23 CEST 2015
  * refactored 'show files' command
  
  - avoid multiple parses of the flag list to extract the matchFlags
  - renaming of identifiers, in particular the word "revision" has been
    eliminated because it does not fit the Darcs patch model and leads
    to wrong assumptions.
  - avoid expanding a tree more than once and explain the tricky bit
Attachments
msg18622 (view) Author: ganesh Date: 2015-06-24.23:39:46
Looks fine to me. I have to admit I'm still a bit confused about matching 
options in general, but the statement that the firstMatch handling in 
dist is dead code seems reasonable.
History
Date User Action Args
2015-06-19 22:52:41bfrkcreate
2015-06-21 20:47:23bfrksetstatus: needs-screening -> needs-review
2015-06-24 23:39:46ganeshsetstatus: needs-review -> accepted-pending-tests
messages: + msg18622
2015-06-25 05:55:22ganeshsetstatus: accepted-pending-tests -> accepted