Mercurial > hg4j
diff src/org/tmatesoft/hg/internal/GeneratePatchInspector.java @ 551:4ea0351ca878
Better (precise) name for diff facility, tests
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 20 Feb 2013 18:19:52 +0100 |
parents | 7f5998a9619d |
children | 7839ff0bfd78 |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/GeneratePatchInspector.java Tue Feb 19 21:35:09 2013 +0100 +++ b/src/org/tmatesoft/hg/internal/GeneratePatchInspector.java Wed Feb 20 18:19:52 2013 +0100 @@ -16,8 +16,8 @@ */ package org.tmatesoft.hg.internal; -import org.tmatesoft.hg.internal.PatchGenerator.DeltaInspector; -import org.tmatesoft.hg.internal.PatchGenerator.LineSequence; +import org.tmatesoft.hg.internal.DiffHelper.DeltaInspector; +import org.tmatesoft.hg.internal.DiffHelper.LineSequence; class GeneratePatchInspector extends DeltaInspector<LineSequence> { private final Patch deltaCollector; @@ -29,7 +29,7 @@ public static Patch delta(byte[] prev, byte[] content) { Patch rv = new Patch(); - PatchGenerator<LineSequence> pg = new PatchGenerator<LineSequence>(); + DiffHelper<LineSequence> pg = new DiffHelper<LineSequence>(); pg.init(new LineSequence(prev).splitByNewlines(), new LineSequence(content).splitByNewlines()); pg.findMatchingBlocks(new GeneratePatchInspector(rv)); return rv;