Author: jsrain Date: Wed Aug 27 10:04:21 2008 New Revision: 50393 URL: http://svn.opensuse.org/viewcvs/yast?rev=50393&view=rev Log: added configuration files changes tracking in SNV as preview Added: trunk/yast2/library/agents/cfg_yast2.scr trunk/yast2/library/modules/ConfigHistory.ycp (contents, props changed) - copied, changed from r50392, branches/tmp/jsrain/config-history/src/ConfigHistory.ycp Modified: trunk/yast2/data/sysconfig.yast2 trunk/yast2/package/yast2.changes Modified: trunk/yast2/data/sysconfig.yast2 URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/data/sysconfig.yast2?rev=50393&r1=50392&r2=50393&view=diff ============================================================================== --- trunk/yast2/data/sysconfig.yast2 (original) +++ trunk/yast2/data/sysconfig.yast2 Wed Aug 27 10:04:21 2008 @@ -31,3 +31,24 @@ # mono: white-black # braille: for visually impaired Y2NCURSES_COLOR_THEME="" + +## Type: list(yes,no) +## Default: "no" +# Enable tracking of configuraiton changes in subversion repository +# This is EXPERIMENTAL and not all YaST modules do support it. +# Use at your own risk +STORE_CONFIG_IN_SUBVERSION="no" + +## Type: list(yes,no) +## Default: "no" +# Track all changes in all files in configuration directory +# If set to "no", YaST adds to the repository only files it changes +# itself and the first change of a particular configuration file +# gets lost (it can only be manually compared to the one in +# configuration file). +# If set to "yes", all files in the configuration directory +# are tracked in the subversion repository. This has big impact +# on start-up and finish times of YaST modules +# This option is experimental and not all YaST modules do support +# configuration tracking via subversion +SUBVERSION_ADD_DIRS_RECURSIVE="no" Added: trunk/yast2/library/agents/cfg_yast2.scr URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/library/agents/cfg_yast2.scr?rev=50393&view=auto ============================================================================== --- trunk/yast2/library/agents/cfg_yast2.scr (added) +++ trunk/yast2/library/agents/cfg_yast2.scr Wed Aug 27 10:04:21 2008 @@ -0,0 +1,17 @@ +/** + * File: + * cfg_yast2.scr + * Summary: + * SCR Agent for reading/writing /etc/sysconfig/yast2 + * using the sysconfig-agent + * + * $Id: cfg_displaymanager.scr 12455 2003-10-22 12:24:49Z visnov $ + * + * Read/Sets the values defined in <tt>/etc/sysconfig/yast2</tt> + * in an easy manner. + */ +.sysconfig.yast2 + +`ag_ini( + `SysConfigFile("/etc/sysconfig/yast2") +) Copied: trunk/yast2/library/modules/ConfigHistory.ycp (from r50392, branches/tmp/jsrain/config-history/src/ConfigHistory.ycp) URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/library/modules/ConfigHistory.ycp?p2=trunk/yast2/library/modules/ConfigHistory.ycp&p1=branches/tmp/jsrain/config-history/src/ConfigHistory.ycp&r1=50392&r2=50393&rev=50393&view=diff ============================================================================== --- branches/tmp/jsrain/config-history/src/ConfigHistory.ycp (original) +++ trunk/yast2/library/modules/ConfigHistory.ycp Wed Aug 27 10:04:21 2008 @@ -1,5 +1,5 @@ /* ------------------------------------------------------------------------------ - * Copyright (c) 2006 Novell, Inc. All Rights Reserved. + * Copyright (c) 2008 Novell, Inc. All Rights Reserved. * * * This program is free software; you can redistribute it and/or modify it under @@ -26,8 +26,21 @@ * * $Id: ConfigHistory.ycp 41350 2007-10-10 16:59:00Z dfiser $ * - * Representation of the configuration of config-history. - * Input and output routines. + * Routines for tracking configuration files in a subversion repository + * + * Use: + * - at your module start, call ConfigHistory::Init(); which will initialize + * the repo if needed and also commits any uncommitted changes + * - at the module finish, call ConfigHistory::CommitChanges("module name"); + * which will commit the changes made to SVN with appropriate comment + * mentioning the module name in the log + * - to ensure all configuration files are in SVN after initialization, call + * ConfigHistory::InitFiles(["file1", "file2"]) immediatelly after calling + * Init(); which will ensure the changes made are tracked during the first + * run as well + * + * See also /etc/sysconfig/yast2, variables STORE_CONFIG_IN_SUBVERSION and + * SUBVERSION_ADD_DIRS_RECURSIVE */ { Modified: trunk/yast2/package/yast2.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/package/yast2.changes?rev=50393&r1=50392&r2=50393&view=diff ============================================================================== --- trunk/yast2/package/yast2.changes (original) +++ trunk/yast2/package/yast2.changes Wed Aug 27 10:04:21 2008 @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Wed Aug 27 10:03:54 CEST 2008 - jsrain@suse.cz + +- added configuration files changes tracking in SNV as preview + +------------------------------------------------------------------- Mon Aug 25 14:10:23 CEST 2008 - ug@suse.de - post-patterns for autoyast added -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org