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 241211
Collapse All | Expand All

(-)src/org/eclipse/team/internal/ui/mapping/ResourceDiffCompareInput.java (-7 / +14 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2006, 2007 IBM Corporation and others.
2
 * Copyright (c) 2006, 2008 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 297-308 Link Here
297
			FileRevisionTypedElement newContributor) {
297
			FileRevisionTypedElement newContributor) {
298
		if (oldContributor == null || newContributor == null)
298
		if (oldContributor == null || newContributor == null)
299
			return false;
299
			return false;
300
		String author = oldContributor.getAuthor();
300
		if (oldContributor.getContentIdentifier().equals(newContributor.getContentIdentifier())) {
301
		if (newContributor.getAuthor() == null 
301
			boolean propagate = false;
302
				&& author != null
302
			String author = oldContributor.getAuthor();
303
				&& oldContributor.getContentIdentifier().equals(newContributor.getContentIdentifier())) {
303
			if (newContributor.getAuthor() == null && author != null) {
304
			newContributor.setAuthor(author);
304
				newContributor.setAuthor(author);
305
			return true;
305
				propagate = true;
306
			}
307
			String comment = oldContributor.getComment();
308
			if (newContributor.getComment() == null && comment != null) {
309
				newContributor.setComment(comment);
310
				propagate= true;
311
			}
312
			return propagate;
306
		}
313
		}
307
		return false;
314
		return false;
308
	}
315
	}
(-)src/org/eclipse/team/internal/ui/history/FileRevisionTypedElement.java (-1 / +13 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2006 IBM Corporation and others.
2
 * Copyright (c) 2006, 2008 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 30-35 Link Here
30
30
31
	private IFileRevision fileRevision;
31
	private IFileRevision fileRevision;
32
	private String author;
32
	private String author;
33
	private String comment;
33
	
34
	
34
	/**
35
	/**
35
	 * Create a typed element that wraps the given file revision.
36
	 * Create a typed element that wraps the given file revision.
Lines 138-148 Link Here
138
	public void setAuthor(String author) {
139
	public void setAuthor(String author) {
139
		this.author = author;
140
		this.author = author;
140
	}
141
	}
142
	
143
	public String getComment() {
144
		if (comment == null)
145
			comment = fileRevision.getComment();
146
		return comment;
147
	}
148
	
149
	public void setComment(String comment) {
150
		this.comment= comment;
151
	}
141
152
142
	public void fetchAuthor(IProgressMonitor monitor) throws CoreException {
153
	public void fetchAuthor(IProgressMonitor monitor) throws CoreException {
143
		if (getAuthor() == null && fileRevision.isPropertyMissing()) {
154
		if (getAuthor() == null && fileRevision.isPropertyMissing()) {
144
			IFileRevision other = fileRevision.withAllProperties(monitor);
155
			IFileRevision other = fileRevision.withAllProperties(monitor);
145
			author = other.getAuthor();
156
			author = other.getAuthor();
157
			comment = other.getComment();
146
		}
158
		}
147
	}
159
	}
148
160

Return to bug 241211