Mercurial > hg4j
diff src/org/tmatesoft/hg/internal/RevlogStreamWriter.java @ 544:7f5998a9619d
Refactor PatchGenerator to be generic and welcome sequence of any nature
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Fri, 15 Feb 2013 16:48:54 +0100 |
parents | 9edfd5a223b8 |
children | e447384f3771 |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/RevlogStreamWriter.java Fri Feb 15 15:52:03 2013 +0100 +++ b/src/org/tmatesoft/hg/internal/RevlogStreamWriter.java Fri Feb 15 16:48:54 2013 +0100 @@ -61,8 +61,7 @@ lastEntryIndex = revCount == 0 ? NO_REVISION : revCount - 1; populateLastEntry(); // - PatchGenerator pg = new PatchGenerator(); - Patch patch = pg.delta(lastEntryContent, content); + Patch patch = GeneratePatchInspector.delta(lastEntryContent, content); int patchSerializedLength = patch.serializedLength(); final boolean writeComplete = preferCompleteOverPatch(patchSerializedLength, content.length);