svn_wc_tree 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. data/ChangeLog +4 -0
  2. data/LICENSE +165 -0
  3. data/Manifest +57 -0
  4. data/README.rdoc +333 -0
  5. data/bin/svn_wc_tree +190 -0
  6. data/cgi/svn_wc_broker.cgi +38 -0
  7. data/lib/svn_wc_broker.rb +161 -0
  8. data/lib/svn_wc_client.rb +266 -0
  9. data/svn_conf.yaml +9 -0
  10. data/svn_wc_tree/css/swt.css +4 -0
  11. data/svn_wc_tree/img/swt_spinner.gif +0 -0
  12. data/svn_wc_tree/index.html +137 -0
  13. data/svn_wc_tree/index.php +29 -0
  14. data/svn_wc_tree/js/jquery-1.3.2.js +4376 -0
  15. data/svn_wc_tree/js/jquery.blockUI-2.31.js +477 -0
  16. data/svn_wc_tree/js/jquery.cookie.js +96 -0
  17. data/svn_wc_tree/js/jquery.tree.checkbox.js +75 -0
  18. data/svn_wc_tree/js/jquery.tree.js +2058 -0
  19. data/svn_wc_tree/js/source/jquery.tree.js +2058 -0
  20. data/svn_wc_tree/js/source/jquery.tree.min.js +1 -0
  21. data/svn_wc_tree/js/source/lib/jquery.cookie.js +96 -0
  22. data/svn_wc_tree/js/source/lib/jquery.hotkeys.js +244 -0
  23. data/svn_wc_tree/js/source/lib/jquery.js +19 -0
  24. data/svn_wc_tree/js/source/lib/jquery.metadata.js +122 -0
  25. data/svn_wc_tree/js/source/lib/sarissa.js +110 -0
  26. data/svn_wc_tree/js/source/plugins/_jquery.tree.rtl.js +32 -0
  27. data/svn_wc_tree/js/source/plugins/jquery.tree.checkbox.js +75 -0
  28. data/svn_wc_tree/js/source/plugins/jquery.tree.contextmenu.js +129 -0
  29. data/svn_wc_tree/js/source/plugins/jquery.tree.cookie.js +70 -0
  30. data/svn_wc_tree/js/source/plugins/jquery.tree.hotkeys.js +78 -0
  31. data/svn_wc_tree/js/source/plugins/jquery.tree.metadata.js +17 -0
  32. data/svn_wc_tree/js/source/plugins/jquery.tree.themeroller.js +33 -0
  33. data/svn_wc_tree/js/source/plugins/jquery.tree.xml_flat.js +123 -0
  34. data/svn_wc_tree/js/source/plugins/jquery.tree.xml_nested.js +124 -0
  35. data/svn_wc_tree/js/source/themes/apple/bg.jpg +0 -0
  36. data/svn_wc_tree/js/source/themes/apple/dot_for_ie.gif +0 -0
  37. data/svn_wc_tree/js/source/themes/apple/icons.png +0 -0
  38. data/svn_wc_tree/js/source/themes/apple/style.css +34 -0
  39. data/svn_wc_tree/js/source/themes/apple/throbber.gif +0 -0
  40. data/svn_wc_tree/js/source/themes/checkbox/dot_for_ie.gif +0 -0
  41. data/svn_wc_tree/js/source/themes/checkbox/icons.png +0 -0
  42. data/svn_wc_tree/js/source/themes/checkbox/style.css +38 -0
  43. data/svn_wc_tree/js/source/themes/checkbox/throbber.gif +0 -0
  44. data/svn_wc_tree/js/source/themes/classic/dot_for_ie.gif +0 -0
  45. data/svn_wc_tree/js/source/themes/classic/icons.png +0 -0
  46. data/svn_wc_tree/js/source/themes/classic/style.css +31 -0
  47. data/svn_wc_tree/js/source/themes/classic/throbber.gif +0 -0
  48. data/svn_wc_tree/js/source/themes/default/dot_for_ie.gif +0 -0
  49. data/svn_wc_tree/js/source/themes/default/icons.png +0 -0
  50. data/svn_wc_tree/js/source/themes/default/style.css +30 -0
  51. data/svn_wc_tree/js/source/themes/default/throbber.gif +0 -0
  52. data/svn_wc_tree/js/source/themes/themeroller/dot_for_ie.gif +0 -0
  53. data/svn_wc_tree/js/source/themes/themeroller/icons.png +0 -0
  54. data/svn_wc_tree/js/source/themes/themeroller/style.css +39 -0
  55. data/svn_wc_tree/js/source/themes/themeroller/throbber.gif +0 -0
  56. data/svn_wc_tree/js/swt.js +534 -0
  57. data/svn_wc_tree.conf +9 -0
  58. metadata +122 -0
@@ -0,0 +1,137 @@
1
+ <!--
2
+ # Copyright (c) 2009 David Wright
3
+ #
4
+ # You are free to modify and use this file under the terms of the GNU LGPL.
5
+ # You should have received a copy of the LGPL along with this file.
6
+ #
7
+ # Alternatively, you can find the latest version of the LGPL here:
8
+ #
9
+ # http://www.gnu.org/licenses/lgpl.txt
10
+ #
11
+ # This library is distributed in the hope that it will be useful,
12
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ # Lesser General Public License for more details.
15
+ -->
16
+
17
+ <html>
18
+ <head>
19
+ <meta http-equiv="cache-control" content="no-cache">
20
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8">
21
+ <meta http-equiv="expires" content="Mon, 22 Jul 2002 11:12:01 GMT">
22
+ <meta http-equiv="pragma" content="no-cache">
23
+ <script type="text/javascript" src="js/jquery-1.3.2.js"></script>
24
+ <script type="text/javascript" src="js/jquery.cookie.js"></script>
25
+ <script type="text/javascript" src="js/jquery.blockUI-2.31.js"></script>
26
+ <script type="text/javascript" src="js/source/jquery.tree.js"></script>
27
+ <script type="text/javascript" src="js/source/plugins/jquery.tree.checkbox.js"></script>
28
+ <script type="text/javascript" src="js/source/plugins/jquery.tree.contextmenu.js"></script>
29
+ <script type="text/javascript" src="js/swt.js"></script>
30
+ <link type="text/css" rel="stylesheet" href="css/swt.css" />
31
+
32
+ <script type="text/javascript">
33
+ //values = cgi.cookies['svn_wc_tree_conf']
34
+ //$.cookie("example", "foo", { path: '/admin', expires: 7 });
35
+ //$.cookie("svn_wc_tree_conf", "foo", { path: '/admin', expires: 7 });
36
+ //$.cookie("swt_cgi", "foo", { path: '/admin', expires: 7 });
37
+ </script>
38
+
39
+ </head>
40
+ <body>
41
+
42
+ <!--
43
+ <form action='cgi/svn_repo_broker.cgi' method='post'>
44
+ <fieldset style='width:90%' id="svn_form">
45
+ <legend style='width:90%'>Svn Actions:</legend>
46
+
47
+ <label for="update">Update</label>
48
+ <input type="radio" name="svn_action" value="Update"
49
+ id="update" class="ui-state-default ui-corner-all">
50
+ <span>|</span>
51
+
52
+ <label for="commit">Commit</label>
53
+ <input type="radio" name="svn_action" value="Commit"
54
+ id="commit" class="ui-state-default ui-corner-all">
55
+ <span>|</span>
56
+ -->
57
+
58
+ <!-- XXX: not yet supported
59
+ <label for="add">Add</label>
60
+ <input type="radio" name="svn_action" value="Add"
61
+ id="add" class="ui-state-default ui-corner-all">
62
+ <span>|</span>
63
+ -->
64
+
65
+ <!-- XXX: not yet supported
66
+ <label for="delete">Delete</label>
67
+ <input type="radio" name="svn_action" value="Delete"
68
+ id="delete" class="ui-state-default ui-corner-all">
69
+ <span>|</span>
70
+ -->
71
+
72
+ <!-- not needed
73
+ <input name="save_all" value="All" type="button"
74
+ class="bttn-edit ui-state-default ui-corner-all"
75
+ onclick="check(document.forms[0].state)">
76
+
77
+ <span>|</span>
78
+ -->
79
+
80
+ <!--
81
+ <label for="diff">Diff</label>
82
+ <input type="radio" name="svn_action" value="Diff"
83
+ id="diff" class="ui-state-default ui-corner-all">
84
+ <span>|</span>
85
+
86
+ <input name="do_svn_action" value="Do Svn Action" type="button"
87
+ id="click_svn_action"
88
+ class="bttn-edit ui-state-default ui-corner-all">
89
+
90
+ <input id="refresh_list" type='button' value="Refresh List" >
91
+ -->
92
+
93
+ <!--
94
+ <div style="text-align:right">
95
+ <label for="show_repo">[Show Repository Tree</label>
96
+ <input type="checkbox" name="show_repo" value="Show Repository Tree"
97
+ id="show_repo" class="ui-state-default ui-corner-all">]
98
+ </div>
99
+ -->
100
+
101
+ <!--
102
+ </fieldset>
103
+ </form>
104
+ -->
105
+
106
+ <script type="text/javascript">
107
+ ////values = cgi.cookies['svn_wc_tree_conf']
108
+ ////$.cookie("example", "foo", { path: '/admin', expires: 7 });
109
+ ////$.cookie("svn_wc_tree_conf", "foo", { path: '/admin', expires: 7 });
110
+ ////$.cookie("swt_cgi", "foo", { path: '/admin', expires: 7 });
111
+ //console.log($.cookie("svn_wc_tree_conf"));
112
+ //if (! $.cookie("svn_wc_tree_conf")){
113
+ // var config = prompt('Please provide path to config file: ', '');
114
+ // if (config) $.cookie("svn_wc_tree_conf", config);
115
+ // else document.write('SVN config file required');
116
+ //}
117
+ //console.log($.cookie("svn_wc_tree_conf"));
118
+
119
+ //// delete cookie
120
+ //// $.cookie("example", null);
121
+
122
+ </script>
123
+
124
+ <input type='hidden' id="svn_local_repo_root" value='' />
125
+
126
+ <a id='disp_repo_info'>~</a><div id="display_repo_info" class="disp_no"></div>
127
+
128
+ <!-- start: show results from svn actions -->
129
+ <div id="show_hide_container" class="disp_no">
130
+ <a id="hide_n_show">[-]</a>
131
+ </div>
132
+ <div id="svn_action_results"></div>
133
+ <!-- end: show results from svn actions -->
134
+
135
+ <div class="demo" id="svn_repo_entries_tree" style="height:100%"></div>
136
+ </body>
137
+ </html>
@@ -0,0 +1,29 @@
1
+ <?php
2
+
3
+ $cgi_script = dirname(__FILE__) . '/svn_wc_broker.cgi';
4
+ $args = $_REQUEST;
5
+ //__debug_args__($args);
6
+
7
+ header('Content-Type: application/x-javascript; charset=UTF-8');
8
+ $a1 = 'do_svn_action='.urlencode($args['do_svn_action']);
9
+ $a2 = 'svn_action='.urlencode($args['svn_action']);
10
+ $a3 = 'svn_files='.urlencode($args['svn_files']);
11
+ //passthru("$cgi_script $a1 $a2 $a3");
12
+
13
+ $a1 = escapeshellarg($a1);
14
+ $a2 = escapeshellarg($a2);
15
+ $a3 = escapeshellarg($a3);
16
+
17
+ passthru("$cgi_script $a1 $a2 $a3");
18
+
19
+
20
+ //emergency use only!
21
+ function __debug_args__($args){
22
+ $debug = "/tmp/DEBUG";
23
+ $fh = fopen($debug, 'w') or die("can't open file");
24
+ fwrite($fh, print_r($args, true));
25
+ //fwrite($fh, $args['do_svn_action']);
26
+ fclose($fh);
27
+ }
28
+
29
+ ?>