Alien-SVN
view release on metacpan or search on metacpan
src/subversion/subversion/bindings/javahl/tests/org/apache/subversion/javahl/WC.java view on Meta::CPAN
}
item.touched = true;
}
// all items which have the touched flag not set, are missing in the
// result array
for (Item item : items.values())
{
Assert.assertTrue("item '" + item.myPath +
"' in working copy not found in status",
item.touched);
}
}
/**
* internal class to discribe a single working copy item
*/
public class Item
{
/**
* the content of a file. A directory has a null content
*/
String myContent;
/**
* the relative path of the item
*/
String myPath;
/**
* the text (content) status of the item
*/
Status.Kind textStatus = Status.Kind.normal;
/**
* the property status of the item.
*/
Status.Kind propStatus = Status.Kind.none;
/**
* the expected revision number. -1 means do not check.
*/
long workingCopyRev = -1;
/**
* flag if item has been touched. To detect missing items.
*/
boolean touched;
/**
* flag if the content will be checked
*/
boolean checkContent;
/**
* expected node kind. null means do not check.
*/
NodeKind nodeKind = null;
/**
* expected locked status
*/
boolean isLocked;
/**
* expected switched status
*/
boolean isSwitched;
/**
* youngest committed revision on repos if out of date
*/
long reposLastCmtRevision = Revision.SVN_INVALID_REVNUM;
/**
* most recent commit date on repos if out of date
*/
long reposLastCmtDate = 0;
/**
* node kind of the youngest commit if out of date
*/
NodeKind reposKind = NodeKind.none;
/**
* author of the youngest commit if out of date.
*/
String reposLastCmtAuthor;
/**
* create a new item
* @param path the path of the item.
* @param content the content of the item. A null signals a directory.
*/
private Item(String path, String content)
{
myPath = path;
myContent = content;
items.put(path, this);
}
/**
* copy constructor
* @param source the copy source.
* @param owner the WC of the copy
*/
private Item(Item source, WC owner)
{
myPath = source.myPath;
myContent = source.myContent;
textStatus = source.textStatus;
propStatus = source.propStatus;
owner.items.put(myPath, this);
}
/**
* copy this item
* @param owner the new WC
* @return the copied item
*/
private Item copy(WC owner)
( run in 0.784 second using v1.01-cache-2.11-cpan-39bf76dae61 )