mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user