darcs

Patch 1343 remove the "diff algorithm" choice from the NameHack c...

Title remove the "diff algorithm" choice from the NameHack c...
Superseder Nosy List ganesh
Related Issues
Status accepted Assigned To
Milestone

Created on 2015-05-31.11:39:25 by ganesh, last changed 2015-06-17.18:32:01 by bfrk.

Files
File name Status Uploaded Type Edit Remove
fix-warnings.dpatch ganesh, 2015-05-31.14:31:35 application/x-darcs-patch
patch-preview.txt ganesh, 2015-05-31.11:39:24 text/x-darcs-patch
patch-preview.txt ganesh, 2015-05-31.14:31:35 text/x-darcs-patch
remove-the-_diff-algorithm_-choice-from-the-namehack-class.dpatch ganesh, 2015-05-31.11:39:24 application/x-darcs-patch
unnamed ganesh, 2015-05-31.11:39:24
unnamed ganesh, 2015-05-31.14:31:35
See mailing list archives for discussion on individual patches.
Messages
msg18418 (view) Author: ganesh Date: 2015-05-31.11:39:24
1 patch for repository darcs-unstable@darcs.net:screened:

Sun May 31 12:27:31 BST 2015  Ganesh Sittampalam <ganesh@earth.li>
  * remove the "diff algorithm" choice from the NameHack class
Attachments
msg18419 (view) Author: ganesh Date: 2015-05-31.14:31:35
1 patch for repository darcs-unstable@darcs.net:screened:

Sun May 31 13:12:54 BST 2015  Ganesh Sittampalam <ganesh@earth.li>
  * fix warnings
Attachments
msg18530 (view) Author: bfrk Date: 2015-06-16.22:53:09
Hm, it looks to me as if this does not change behaviour, just refactors
code, right?

I guess the original idea was to make the choice of diff algorithm used
for the rebase patch configurable but that was never implemented?
msg18532 (view) Author: ganesh Date: 2015-06-17.05:49:02
Yes, this is just a refactoring.

The original introduction of the "diff algorithm" choice was done by 
a Summer of Code student who just ended up adding the parameter 
everywhere it was needed. This is just about taking a slightly more 
considered view of the right place to make the choice.

Rebase depends on the diff algorithm for a slightly silly reason - 
the "fixup" patches get coalesced to keep them as simple as 
possible, and that sometimes involves rerunning file changes through 
the diff algorithm.

I was originally planning on hard coding one option for everything 
in rebase, but it turned out that there are some commands that end 
up invoking rebase that select a value for the diff algorithm based 
on a command-line flag, so I decided to hold off from making a 
behaviour change for now.
msg18536 (view) Author: bfrk Date: 2015-06-17.18:31:59
Makes sense.
History
Date User Action Args
2015-05-31 11:39:25ganeshcreate
2015-05-31 14:31:35ganeshsetfiles: + patch-preview.txt, fix-warnings.dpatch, unnamed
messages: + msg18419
2015-06-07 19:21:27ganeshsetstatus: needs-screening -> needs-review
2015-06-16 22:53:09bfrksetstatus: needs-review -> review-in-progress
messages: + msg18530
2015-06-17 05:49:03ganeshsetmessages: + msg18532
2015-06-17 18:32:01bfrksetstatus: review-in-progress -> accepted
messages: + msg18536