Alien-SVN
view release on metacpan or search on metacpan
src/subversion/subversion/bindings/javahl/tests/org/tigris/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
it = items.values().iterator();
while (it.hasNext())
{
Item item = (Item) it.next();
Assert.assertTrue("item 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
*/
int textStatus = Status.Kind.normal;
/**
* the property status of the item.
*/
int 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. -1 means do not check.
*/
int nodeKind = -1;
/**
* 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
*/
int 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.
*/
@SuppressWarnings("unchecked")
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
*/
@SuppressWarnings("unchecked")
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
( run in 0.560 second using v1.01-cache-2.11-cpan-39bf76dae61 )