I have a Working Copy and added new files FOUR.txt and more/FIVE.txt using svn add
command.
svn add FOUR.txt
svn add more/FIVE.txt
On executing svn status on working copy I get following output
A FOUR.txt
A more/FIVE.txt
Now I want to get same info with SVNKit API. So, I written code like this
SVNClientManager.newInstance().getStatusClient().doStatus(tempRepoWorkingCopy, SVNRevision.WORKING, SVNDepth.INFINITY, false, true, true, true, new ISVNStatusHandler() {
@Override
public void handleStatus(SVNStatus status) throws SVNException {
System.out.println(status.getContentsStatus());
System.out.println(status.getFile());
}
}, null);
It is giving getContentStatus()
as Modified instead of Added. How to get Added information using SVNStatusClient
. Am I missing something here?
SVNStatus.getNodeStatus()
完成了任务!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.