AVMSyncService checkpoint. Compare() substantially works but is only

lightly tested.  This uncovered a bug in LayeredDirectoryNodeImpl of 
relatively ancient etiology. I thought I had a test that would have 
caught it. I was wrong.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3796 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2006-09-14 18:43:22 +00:00
parent bf1fdd9cd6
commit 1386cedef5
4 changed files with 380 additions and 8 deletions

View File

@@ -131,4 +131,43 @@ public class AVMDifference implements Serializable
{
return fSourcePath != null && fDestPath != null;
}
/**
* Get as String.
* @return A String representation of this.
*/
@Override
public String toString()
{
StringBuilder builder = new StringBuilder();
builder.append(fSourcePath);
builder.append("[");
builder.append(fSourceVersion);
builder.append("] ");
switch (fDiffCode)
{
case SAME :
builder.append("= ");
break;
case NEWER :
builder.append("> ");
break;
case OLDER :
builder.append("< ");
break;
case CONFLICT :
builder.append("<> ");
break;
case DIRECTORY :
builder.append("| ");
break;
default :
builder.append("? ");
}
builder.append(fDestPath);
builder.append("[");
builder.append(fDestVersion);
builder.append("]");
return builder.toString();
}
}