Author: jsuchome Date: Wed May 11 11:26:28 2011 New Revision: 63943 URL: http://svn.opensuse.org/viewcvs/yast?rev=63943&view=rev Log: - added initialization code to agent, check for exceptions - updated agent documentation - 2.21.5 Modified: trunk/snapper/VERSION trunk/snapper/agent-snapper/doc/snapper.html trunk/snapper/package/yast2-snapper.changes Modified: trunk/snapper/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/snapper/VERSION?rev=63943&r1=63942&r2=63943&view=diff ============================================================================== --- trunk/snapper/VERSION (original) +++ trunk/snapper/VERSION Wed May 11 11:26:28 2011 @@ -1 +1 @@ -2.21.4 +2.21.5 Modified: trunk/snapper/agent-snapper/doc/snapper.html URL: http://svn.opensuse.org/viewcvs/yast/trunk/snapper/agent-snapper/doc/snapper.html?rev=63943&r1=63942&r2=63943&view=diff ============================================================================== --- trunk/snapper/agent-snapper/doc/snapper.html (original) +++ trunk/snapper/agent-snapper/doc/snapper.html Wed May 11 11:26:28 2011 @@ -32,6 +32,8 @@ <ul><tt>.snapper</tt></ul> +The initialization call of Execute (.snapper) must be done before any other calls. + <P> <h2>Complete Read paths table</h2> @@ -43,7 +45,18 @@ <th align="left">Result</th> </tr> - <tr><td><tt>.snapper.snapshots</td><td></td><td align="left">YCPList</td> + <tr><td><tt>.snapper.error</td><td>(none)</td><td align="left">YCPMap</td> + <td>Return information about last error.<br> + <b>Example of result</b>: + <pre> + $[ + "type" : "config_not_found" + ] + </pre> + </td> + </tr> + + <tr><td><tt>.snapper.snapshots</td><td>(none)</td><td align="left">YCPList</td> <td>Return list of current snapshot maps.<br> <b>Example of result</b>: <pre> @@ -75,7 +88,7 @@ </td> </tr> - <tr><td><tt>.snapper.diff</td><td>YCPMap</td><td align="left">YCPList</td> + <tr><td><tt>.snapper.diff_list</td><td>YCPMap</td><td align="left">YCPList</td> <td>Returns the list of files modified between given snapshots. Each file is described by YCPMap which contains file path and type of the change. Argument map contains 2 integers, identifying the snapshots.<br> @@ -100,6 +113,93 @@ ] </pre> </td></tr> + + <tr><td><tt>.snapper.diff_index</td><td>YCPMap</td><td align="left">YCPMap</td> + <td>Returns the differences between snapnots num1 and num2 as one-level map + (mapping each file to its changes).<br> + <b>Example of argument map</b>: + <pre> + $[ + "from" : 1, + "to" : 2 + $] + </pre> + <b>Example of result</b>: + <pre> + $[ + "/etc/group" : "c...", + "/etc/group.YaST2save" : "c..." + ] + </pre> + </td></tr> + + <tr><td><tt>.snapper.diff_tree</td><td>YCPMap</td><td align="left">YCPMap</td> + <td>Returns the differences between snapnots num1 and num2 as a tree. + Map is recursively describing the filesystem structure; it is used to build Tree widget contents + in yast2-snapper UI. + <br> + <b>Example of argument map</b>: + <pre> + $[ + "from" : 1, + "to" : 2 + $] + </pre> + <b>Example of result</b>: + <pre> + $[ + "etc" : $[ + "group" : $[], + "group.YaST2save" : $[], + "passwd" : $[], + "passwd.YaST2save" : $[] + ], + "var" : $[ + "log" : $[ + "YaST2" : $[ + "y2changes" : $[], + "y2log" : $[] + ], + "messages" : $[], + "snapper.log" : $[] + ] + ] + ] + </pre> + </td></tr> +</table> + +<P> +<h2>Complete Execute paths table</h2> + +<table border=3> + <tr> + <th width="20%" align="left">Path</th> + <th width="10%" align="left">Argument</th> + <th width="10%" align="left">Type of Result</th> + <th align="left">Result</th> + </tr> + + <tr><td><tt>.snapper</td><td>(none)</td><td align="left">YCPBoolean</td> + <td>Initializes snapper object. In case of init failure, sets the internal error ID. + Use Read (.snapper.error) to get the error info. + </td> + </tr> + + <tr><td><tt>.snapper.rollback</td><td>YCPMap</td><td align="left">YCPBoolean</td> + <td>Rollback the list of given files from snapshot num1 to num2. If num2 is not present, + current system is used as a default. + <b>Example of argument map</b>: + <pre> + $[ + "files" : [ + "/etc/passwd", + "/etc/group" + ] + "from" : 1, + $] + </pre> + </td></tr> </table> <P> Modified: trunk/snapper/package/yast2-snapper.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/snapper/package/yast2-snapper.changes?rev=63943&r1=63942&r2=63943&view=diff ============================================================================== --- trunk/snapper/package/yast2-snapper.changes (original) +++ trunk/snapper/package/yast2-snapper.changes Wed May 11 11:26:28 2011 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Wed May 11 10:41:42 CEST 2011 - jsuchome@suse.cz + +- added initialization code to agent, check for exceptions +- updated agent documentation +- 2.21.5 + +------------------------------------------------------------------- Mon Apr 18 09:16:36 CEST 2011 - jsuchome@suse.cz - removed YCP code for Tree recursive selection, widget can do it -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org