Mercurial > hg > RemoteEditor > REPSessionManager
diff rep/handler/Translator.java @ 447:dc9b2da06fa9
add README
author | one |
---|---|
date | Wed, 22 Sep 2010 17:14:35 +0900 |
parents | 6a7004071777 |
children | ed97273477a0 |
line wrap: on
line diff
--- a/rep/handler/Translator.java Wed Sep 22 15:04:33 2010 +0900 +++ b/rep/handler/Translator.java Wed Sep 22 17:14:35 2010 +0900 @@ -86,12 +86,14 @@ * Received all merge command ack */ public void endMerge() { + if (false) { LinkedList<REPCommand> n = new LinkedList<REPCommand>(); for(int i=0;i< sortedEditCmds.size()-1;i++) { n.addLast(unMergedCmds.get(i)); } sortedEditCmds = null; unMergedCmds = n; + } } /** * Sent optimized merged command list @@ -100,6 +102,9 @@ * @return if any sent commands output */ public boolean optimizedSend(REPNode editor, LinkedList<REPCommand> output) { + /* + * Optimized send の場合は、unMergedCommand のつじつまを合わせる必要がある。 + */ sentMergedList.clear(); List<REPCommand> output1 = optimizer.optimize(output); if (output1.size()==0) {