NEW DATE! Bugzilla will undergo maintenance 2024-03-28 18h00 CET. Bugzilla will be placed in read-only mode at that time.

Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 21674 - -kkv default keyword substitution preference is not correctly exported
Summary: -kkv default keyword substitution preference is not correctly exported
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Team (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 2.0.1   Edit
Assignee: Kevin McGuire CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-17 17:08 EDT by Roberto Scaramuzzi CLA
Modified: 2002-08-12 14:18 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.