Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 44438 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/team/internal/ccvs/core/syncinfo/ResourceSyncInfo.java (-9 / +13 lines)
Lines 345-362 Link Here
345
	 * 
345
	 * 
346
	 * @param version the version to set
346
	 * @param version the version to set
347
	 */
347
	 */
348
	protected void setRevision(String revision) {
348
	protected void setRevision(String r) {
349
		if(revision==null || revision.equals(ADDED_REVISION)) {
349
		isDeleted = false;
350
			this.revision = ADDED_REVISION;
350
		if(r==null || r.equals(ADDED_REVISION)) {
351
			revision = ADDED_REVISION;
351
			timeStamp = null;
352
			timeStamp = null;
352
			syncType = TYPE_REGULAR;
353
			syncType = TYPE_REGULAR;
353
			isDeleted = false;
354
			return;
354
		} else if(revision.startsWith(DELETED_PREFIX)) {
355
		}
355
			this.revision = revision.substring(DELETED_PREFIX.length());
356
		revision = r;
357
		if(revision.startsWith(DELETED_PREFIX)) {
358
			revision = revision.substring(DELETED_PREFIX.length());
356
			isDeleted = true;
359
			isDeleted = true;
357
		} else {
360
		}
358
			this.revision = revision;
361
		int lockedIdx = revision.indexOf(LOCKEDBY_SUFFIX);
359
			isDeleted = false;
362
		if (lockedIdx >= 0) {
363
			revision = revision.substring(0, lockedIdx);
360
		}
364
		}
361
	}
365
	}
362
	
366
	

Return to bug 44438