ACC SHELL

Path : /usr/share/YaST2/modules/
File Upload :
Current File : //usr/share/YaST2/modules/ConfigHistory.ybc

YaST bytecode 1.4.0
ConfigHistoryConfigHistory.ycphistory_location	changes_timestamp	log_directories	use_svnstore_whole_subtreenested_transactions
commit_neededUseSvn		Recursive
InitSvnRepositoryCheckSvnRepositoryCheckRepoLinked
InitDirectoriesCheckUncommitedChangesCreateTimeStamp$CheckChangedFilesOutOfVersionControl CheckAllFilesOutOfVersionControlRemoveDeletedFilesDoCommit	UpdateCheckoutInit
CommitChanges		InitFiles	umodule_name	files	3SCRReadExecute01config-history$6/var/lib/YaST2/config-history$;'/var/lib/YaST2/config-history-timestamp$@	/etc$E$J$O$T%Z([4[&\		SCR::Read+.sysconfig.yast2.STORE_CONFIG_IN_SUBVERSIONyes,]	
y2milestone	
%Using SVN for configuration files: %1-_%b	(c4c&d		SCR::Read..sysconfig.yast2.SUBVERSION_ADD_DIRS_RECURSIVEyes,e	
y2milestone	
%Automatically store whole subtree: %1-g%n
out,o	
y2milestone	
Initializing repo at %1$pSCR::Execute.target.bash_output		
sformat		
svnadmin create %1(rexit4r,s	
y2error	
'Failed to initialize SVN repository: %1	stderr-t&vSCR::Execute.target.bash_output		
sformat		
5chown -R root:root %1; chmod -R g= %1; chmod -R o= %1(xexit4x,y	
y2error	
&Failed to set svn repo permissions: %1	stderr-z,|	
y2milestone	
Repo initialized-}%outret,	
y2milestone	
Checking repo presence$SCR::Execute.target.bash_output		
sformat		

test -d %1$exit,	
y2milestone	
Repo found: %1-%outret,	
y2milestone	
1Checking whether repo is linked to root directory$SCR::Execute.target.bash_output		
sformat		

test -d %1/.svn$exit,	
y2milestone	
Repo linked: %1-%
	recursiveoutsuccess
,	
y2milestone	
1Linking system with the repository; recursive: %1$SCR::Execute.target.bash_output		
sformat		
svn co file://%1 /(exit4,	
y2error	
 svn check out to root failed: %1	stderr-$,		foreachdir	params	,	
y2milestone	
Initializing directory %1$-N&SCR::Execute.target.bash_output		
sformat		
cd / ; svn add %2 %1(exit4&,	
y2error	
Failed to add directory %1: %2	stderr(!-&SCR::Execute.target.bash_output#cd / ; svn ci -m 'Initial check-in'(exit4,	
y2error	
#Initial check-in to repo failed: %1	stderr-,	
y2milestone	
Initial check-in succeeded-%success$,		foreachdir	out,	
y2milestone	
&Checking for uncommitted changes in %1$SCR::Execute.target.bash_output		
sformat		
cd %1; svn st |grep '^M'(&&exit!4,	
y2milestone	
No uncommitted change detected4&SCR::Execute.target.bash_output		
sformat		
?cd %1; svn ci -m 'Commit remaining changes before running YaST'(exit4&,	
y2error	
"Failed to commit changes in %1: %2	stderr,	
y2milestone	
Commit successful: %1-%outret,	
y2milestone	
$Creating timestamp to detect changes$SCR::Execute.target.bash_output		
sformat		
touch %1$exit,	
y2milestone	
Success: %1-%success$,		foreachdir	outparam	files		,	
y2milestone	
Checking for new files in %1$SCR::Execute.target.bash_output		
sformat		
(find %1 -newer %2 -type f |grep -v '/\.'(exit4,	
y2milestone	
No changes found-$	stdout$			splitstring			
&			filterf	&			filterf	SCR::Execute.target.bash		
sformat		
svn st %1 | grep '^?'&||size(size4&			mergestring			 &SCR::Execute.target.bash_output		
sformat		
cd %1; svn add --parents %2(exit4	&
,	
y2error	
Failed to add changes: %1	stderr,SCR::Execute.target.bash_output		
sformat		
rm %1-%success$,	
y2milestone	
'Adding all files out of version control,		foreachdir	out$SCR::Execute.target.bash_output		
sformat		
2cd %1; svn add `svn st |grep '^?'|cut -d ' ' -f 7`(exit4, 	
y2error	
Failed to add files in %1: %2	stderr&!&$,%	
y2milestone	
Finished successfuly: %1-&%.success$/,0	
y2milestone	
Checking for removed files,1		foreachdir	outfilelist	files		$2SCR::Execute.target.bash_output		
sformat		
(cd %1; svn st |grep '^!'|cut -d ' ' -f 7(4exit45,6	
y2error	
+Failed to check for deleted files in %1: %2	stderr&7-8$:	stdout$;			splitstring			 &<			filterf	(=size->&?			mergestring			 &@SCR::Execute.target.bash_output		
sformat		
cd %1; svn rm %2(Bexit4C,D	
y2error	
 Failed to remove files in %1: %2	stderr&E&H,I	
y2milestone	
Finished successfuly: %1-J%Qmod	arg	log	outret,R	
y2milestone	
Committing changes$S			mergestring			 ,T	
y2debug	
Directories to commit: %1$U		
sformat		
Changes by YaST module %1$VSCR::Execute.target.bash_output		
sformat		
cd / ; svn ci -m '%1' %2$Xexit,Y	
y2milestone	
Success: %1-Z%asuccess$b,c		foreachdir	out,d	
y2milestone	
"Updating configuration files in %1$eSCR::Execute.target.bash_output		
sformat		

cd %1; svn up(gexit4h,i	
y2error	
 Failed to update %1 from SVN: %2	stderr&j-m%u(v!-w(x4y&z+,{	
y2milestone	
<Skiping SVN initialization, translaction already in progress-|(!4(!
-(!4(!
	-(	4,,(!4-(!-(!-&+-%success	(!-&-(4,	
y2milestone	
8Skipping commit, all nested transaction not yet finished-$(	&&&&&(!4&&&&-%filelist	outsuccess
(size-(!-(	-(4,	
y2error	
,InitFiles called before prior initialization-$			mergestring			 $SCR::Execute.target.bash_output		
sformat		

svn add %1(exit4,	
y2error	
,Failed to schedule files %1 for addition: %2	stderr-$,		foreachdir	&SCR::Execute.target.bash_output		
sformat		
:cd %1; svn ci -m 'Initial check-in of files to be changed'(exit4,	
y2error	
"Failed to commit changes to %1: %2	exit&-

ACC SHELL 2018