Bug 21674

Summary: -kkv default keyword substitution preference is not correctly exported
Product: [Eclipse Project] Platform Reporter: Roberto Scaramuzzi <birdo>
Component: TeamAssignee: Kevin McGuire <Kevin_McGuire>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0.1   
Hardware: All   
OS: All   
Whiteboard:

Description Roberto Scaramuzzi CLA 2002-07-17 17:08:35 EDT
From the CVS preference page, do the following: 

1) set the default keyword substitution to -kkv
2) Press the export button to export preferences
3) reopen CVS preferences
4) import preferences from the same file

The default keyword substitution field is now set to the default (-ko)

The problem here is that the -kkv option is saved in
.metadata/.plugins/org.eclipse.team.cvs.ui/pref_store.ini as an empty string;

(see the first line of the following method in
org/eclipse/team/internal/ccvs/core/client/Command.java)

public String toMode() {
    if (KSUBST_TEXT_EXPAND.equals(this)) return ""; //$NON-NLS-1$
    return getOption();
}

 The export function apparently does not export empty strings, so the value of
the property is reset to the default on import.
Comment 1 Kevin McGuire CLA 2002-07-18 11:56:47 EDT
Thanks for hunting this down.
Comment 2 James Moody CLA 2002-08-01 11:45:35 EDT
Fixed in R2_0_1. Should release to HEAD as well.
Comment 3 James Moody CLA 2002-08-12 14:18:03 EDT
Released to HEAD.