Java Code Examples for org.tigris.subversion.svnclientadapter.ISVNStatus#isCopied()

The following examples show how to use org.tigris.subversion.svnclientadapter.ISVNStatus#isCopied() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FileStatusCache.java    From netbeans with Apache License 2.0 4 votes vote down vote up
static String statusText(ISVNStatus status) {
    return "file: " + status.getTextStatus().toString() + " copied: " + status.isCopied() + " prop: " + status.getPropStatus().toString(); // NOI18N
}
 
Example 2
Source File: LocalResourceStatus.java    From APICloud-Studio with GNU General Public License v3.0 4 votes vote down vote up
/**
* @param status
* @param url - Only needed when status.getUrl is Null, such as
*  for an svn:externals folder
*/
  public LocalResourceStatus(ISVNStatus status, String url, boolean checkForReadOnly) {
  	super(status, url, false);
  	
  	/** a temporary variable serving as immediate cache for various status values */
  	Object aValue = null;

  	if (checkForReadOnly) {
  		 this.readOnly = !getFile().canWrite();
  	}

      aValue = status.getConflictNew();
      if (aValue == null) {
          this.pathConflictNew = null;
      } else {
          this.pathConflictNew = ((File) aValue).getAbsolutePath();
      }

      aValue = status.getConflictOld();
      if (aValue == null) {
          this.pathConflictOld = null;
      } else {
          this.pathConflictOld = ((File) aValue).getAbsolutePath();
      }

      aValue = status.getConflictWorking();
      if (aValue == null) {
          this.pathConflictWorking = null;
      } else {
          this.pathConflictWorking = ((File) aValue).getAbsolutePath();
      }
      
      this.lockOwner = status.getLockOwner();
      this.lockComment = status.getLockComment();
      
      aValue = status.getLockCreationDate();
      if (aValue == null) 
          this.lockCreationDate = -1;
      else
          this.lockCreationDate = ((Date) aValue).getTime();
      
      this.isCopied = status.isCopied();
      this.isWcLocked = status.isWcLocked();
      this.isSwitched = status.isSwitched();
      
      movedFromAbspath = status.getMovedFromAbspath();
      movedToAbspath = status.getMovedToAbspath();
  }
 
Example 3
Source File: SVNStatusUtils.java    From APICloud-Studio with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Returns if the resource has a remote counter-part
 * @param status
 * 
 * @return has version in repository
 */
public static boolean hasRemote(ISVNStatus status) {
	SVNStatusKind textStatus = status.getTextStatus();
    return ((isManaged(textStatus)) && (!textStatus.equals(SVNStatusKind.ADDED) || status.isCopied()));
}