> Tue Jan 24 00:09:08 GMT 2012 Owen Stephens <darcs@owenstephens.co.uk>
> * Refactor movedirfilename to use stripPrefix lib function, rather than equivalent hand-rolled code.
Ok.
> Tue Jan 24 00:15:06 GMT 2012 Owen Stephens <darcs@owenstephens.co.uk>
> * Use <$> instead of fmap in Patch/Apply.hs
Doesn't hurt, I prefer <$> over fmap too.
> Tue Jan 24 00:23:08 GMT 2012 Owen Stephens <darcs@owenstephens.co.uk>
> * Add new helper function to determine if a given filename is the parentOrEqual of another.
Ok.
> Tue Jan 24 00:51:08 GMT 2012 Owen Stephens <darcs@owenstephens.co.uk>
> * Replace applyToFilepaths with applyToFilePaths to match casing of FilePath
Style patch.
> Tue Jan 24 00:57:41 GMT 2012 Owen Stephens <darcs@owenstephens.co.uk>
> * Rename withFilePaths -> withFileNames, since it operates on FileNames not FilePaths.
I agree.
> Tue Jan 24 01:37:28 GMT 2012 Owen Stephens <darcs@owenstephens.co.uk>
> * Resolve Issue2136: Correctly track renames of multiple files in Changes --xml.
> For each file passed to Changes, track its original name, and show the first
> patch that created it. Update lookTouch to track exactly which files are
> touched, and renames. Create utility function to provide old behaviour of just
> obtaining the effect of the patch on a filepath list.
The main logic of this patch belongs in
Darcs.Commands.Changes.(filterPatchesByNames|changeLog) and
Darcs.Patch.ApplyMonad (trackOrigRename)
At first I thought trackOrigRename would fail to track a renaming of
an intermediate directory, say, d2 -> d3 in ./d1/d2/f, but in fact
the renaming would be ./d1/d2 -> ./d1/d3 hene the prefix comparison
done by isParentOrEqOf is right.
The included shell test looks good.
Apart from the code changes, the patch introduces comments in
Darcs.Patch.ApplyMonad, so that's nice.
I would have liked to have haddocks in Darcs.Patch.Apply (to
understand the changes to applyToFilePaths/effectOnFilePaths), and
Darcs.Commands.Changes (getChangesInfo), thought!
> Tue Jan 24 01:57:21 GMT 2012 Owen Stephens <darcs@owenstephens.co.uk>
> * Add current_name attribute to created_as in changes --xml on multiple files.
> Without this attribute it wasn't necessarily clear which original name
> corresponded to which input filename.
Good idea.
> Tue Jan 31 00:36:10 GMT 2012 Owen Stephens <darcs@owenstephens.co.uk>
> * Fix improper handling of FileNames that are prefixes-of, but not parents-of a target FileName.
Indeed, before that, ./filex would have been considered a parent of
./filexxx for instance.
|