hgtk 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d7008ee935144bd4e10432703e75e5db24bdbc71
4
+ data.tar.gz: edbfe65cdab05d7f5e24d3821ec1fdc892f4e97d
5
+ SHA512:
6
+ metadata.gz: fb8659711179017e700d502a8f53de1d8d85cf480e8e50f49611d1d65c25c81356d068e7c8fd4fb96f4c9cbc1b4da08353da138a530beb06b6abc2178f22cfd6
7
+ data.tar.gz: 3b54ef42587020a9207d206888b7541571c7236f49633d7eaad5301eb3da367a201f2d55986e60dfde7d365618594225708f7ac055f9eb04fe060e4df4fc11e2
@@ -0,0 +1 @@
1
+ # Mercurial (Hg) Toolkit
@@ -0,0 +1,15 @@
1
+ #! /usr/bin/env ruby
2
+
3
+ # p ARGV
4
+ # p Dir['*/.hg'].map { |path| File.absolute_path File.dirname path }
5
+
6
+ parent_dir = Dir.pwd
7
+
8
+ Dir['*/.hg'].map { |path| File.absolute_path File.dirname path }.each do |path|
9
+ Dir.chdir path
10
+ puts path
11
+ system "hg #{ARGV.join ' '}"
12
+ puts ''
13
+ end
14
+
15
+ Dir.chdir parent_dir
@@ -0,0 +1,117 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Module: HGTK
8
+
9
+ &mdash; Documentation by YARD 0.8.7.6
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '';
20
+ framesUrl = "frames.html#!HGTK.html";
21
+ </script>
22
+
23
+
24
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+ <a href="_index.html">Index (H)</a> &raquo;
35
+
36
+
37
+ <span class="title">HGTK</span>
38
+
39
+
40
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
+ </div>
42
+
43
+ <div id="search">
44
+
45
+ <a class="full_list_link" id="class_list_link"
46
+ href="class_list.html">
47
+ Class List
48
+ </a>
49
+
50
+ <a class="full_list_link" id="method_list_link"
51
+ href="method_list.html">
52
+ Method List
53
+ </a>
54
+
55
+ <a class="full_list_link" id="file_list_link"
56
+ href="file_list.html">
57
+ File List
58
+ </a>
59
+
60
+ </div>
61
+ <div class="clear"></div>
62
+ </div>
63
+
64
+ <iframe id="search_frame"></iframe>
65
+
66
+ <div id="content"><h1>Module: HGTK
67
+
68
+
69
+
70
+ </h1>
71
+
72
+ <dl class="box">
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+ <dt class="r1 last">Defined in:</dt>
82
+ <dd class="r1 last">lib/hgtk/hg.rb<span class="defines">,<br />
83
+ lib/hgtk/repo.rb,<br /> lib/hgtk/parser.rb</span>
84
+ </dd>
85
+
86
+ </dl>
87
+ <div class="clear"></div>
88
+
89
+ <h2>Defined Under Namespace</h2>
90
+ <p class="children">
91
+
92
+
93
+
94
+
95
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="HGTK/Hg.html" title="HGTK::Hg (class)">Hg</a></span>, <span class='object_link'><a href="HGTK/Parser.html" title="HGTK::Parser (class)">Parser</a></span>, <span class='object_link'><a href="HGTK/Repo.html" title="HGTK::Repo (class)">Repo</a></span>
96
+
97
+
98
+ </p>
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+ </div>
109
+
110
+ <div id="footer">
111
+ Generated on Thu Jan 1 14:24:37 2015 by
112
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
113
+ 0.8.7.6 (ruby-2.1.5).
114
+ </div>
115
+
116
+ </body>
117
+ </html>
@@ -0,0 +1,589 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Class: HGTK::Hg
8
+
9
+ &mdash; Documentation by YARD 0.8.7.6
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '../';
20
+ framesUrl = "../frames.html#!HGTK/Hg.html";
21
+ </script>
22
+
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+ <a href="../_index.html">Index (H)</a> &raquo;
35
+ <span class='title'><span class='object_link'><a href="../HGTK.html" title="HGTK (module)">HGTK</a></span></span>
36
+ &raquo;
37
+ <span class="title">Hg</span>
38
+
39
+
40
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
+ </div>
42
+
43
+ <div id="search">
44
+
45
+ <a class="full_list_link" id="class_list_link"
46
+ href="../class_list.html">
47
+ Class List
48
+ </a>
49
+
50
+ <a class="full_list_link" id="method_list_link"
51
+ href="../method_list.html">
52
+ Method List
53
+ </a>
54
+
55
+ <a class="full_list_link" id="file_list_link"
56
+ href="../file_list.html">
57
+ File List
58
+ </a>
59
+
60
+ </div>
61
+ <div class="clear"></div>
62
+ </div>
63
+
64
+ <iframe id="search_frame"></iframe>
65
+
66
+ <div id="content"><h1>Class: HGTK::Hg
67
+
68
+
69
+
70
+ </h1>
71
+
72
+ <dl class="box">
73
+
74
+ <dt class="r1">Inherits:</dt>
75
+ <dd class="r1">
76
+ <span class="inheritName">Object</span>
77
+
78
+ <ul class="fullTree">
79
+ <li>Object</li>
80
+
81
+ <li class="next">HGTK::Hg</li>
82
+
83
+ </ul>
84
+ <a href="#" class="inheritanceTree">show all</a>
85
+
86
+ </dd>
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+ <dt class="r2 last">Defined in:</dt>
97
+ <dd class="r2 last">lib/hgtk/hg.rb</dd>
98
+
99
+ </dl>
100
+ <div class="clear"></div>
101
+
102
+
103
+
104
+
105
+
106
+ <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
107
+ <ul class="summary">
108
+
109
+ <li class="public ">
110
+ <span class="summary_signature">
111
+
112
+ <a href="#dir-instance_method" title="#dir (instance method)">- (Object) <strong>dir</strong> </a>
113
+
114
+
115
+
116
+ </span>
117
+
118
+
119
+
120
+
121
+ <span class="note title readonly">readonly</span>
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+ <span class="summary_desc"><div class='inline'>
132
+ <p>Returns the value of attribute dir.</p>
133
+ </div></span>
134
+
135
+ </li>
136
+
137
+
138
+ </ul>
139
+
140
+
141
+
142
+
143
+
144
+ <h2>
145
+ Instance Method Summary
146
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
147
+ </h2>
148
+
149
+ <ul class="summary">
150
+
151
+ <li class="public ">
152
+ <span class="summary_signature">
153
+
154
+ <a href="#incoming-instance_method" title="#incoming (instance method)">- (Object) <strong>incoming</strong> </a>
155
+
156
+
157
+
158
+ </span>
159
+
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+ <span class="summary_desc"><div class='inline'>
169
+ <p>Check for incoming changesets.</p>
170
+ </div></span>
171
+
172
+ </li>
173
+
174
+
175
+ <li class="public ">
176
+ <span class="summary_signature">
177
+
178
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (Hg) <strong>initialize</strong>(**kwargs) </a>
179
+
180
+
181
+
182
+ </span>
183
+
184
+
185
+ <span class="note title constructor">constructor</span>
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+
194
+ <span class="summary_desc"><div class='inline'>
195
+ <p>A new instance of Hg.</p>
196
+ </div></span>
197
+
198
+ </li>
199
+
200
+
201
+ <li class="public ">
202
+ <span class="summary_signature">
203
+
204
+ <a href="#outgoing-instance_method" title="#outgoing (instance method)">- (Object) <strong>outgoing</strong> </a>
205
+
206
+
207
+
208
+ </span>
209
+
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+ <span class="summary_desc"><div class='inline'>
219
+ <p>Check for outgoing changesets.</p>
220
+ </div></span>
221
+
222
+ </li>
223
+
224
+
225
+ <li class="public ">
226
+ <span class="summary_signature">
227
+
228
+ <a href="#status-instance_method" title="#status (instance method)">- (Object) <strong>status</strong> </a>
229
+
230
+
231
+
232
+ </span>
233
+
234
+
235
+
236
+
237
+
238
+
239
+
240
+
241
+
242
+ <span class="summary_desc"><div class='inline'>
243
+ <p>Check repo status (uncommitted changes).</p>
244
+ </div></span>
245
+
246
+ </li>
247
+
248
+
249
+ <li class="public ">
250
+ <span class="summary_signature">
251
+
252
+ <a href="#sync-instance_method" title="#sync (instance method)">- (Object) <strong>sync</strong> </a>
253
+
254
+
255
+
256
+ </span>
257
+
258
+
259
+
260
+
261
+
262
+
263
+
264
+
265
+
266
+ <span class="summary_desc"><div class='inline'>
267
+ <p>Synchronize repository by pulling, then pushing.</p>
268
+ </div></span>
269
+
270
+ </li>
271
+
272
+
273
+ </ul>
274
+
275
+
276
+ <div id="constructor_details" class="method_details_list">
277
+ <h2>Constructor Details</h2>
278
+
279
+ <div class="method_details first">
280
+ <h3 class="signature first" id="initialize-instance_method">
281
+
282
+ - (<tt><span class='object_link'><a href="" title="HGTK::Hg (class)">Hg</a></span></tt>) <strong>initialize</strong>(**kwargs)
283
+
284
+
285
+
286
+
287
+
288
+ </h3><div class="docstring">
289
+ <div class="discussion">
290
+
291
+ <p>Returns a new instance of Hg</p>
292
+
293
+
294
+ </div>
295
+ </div>
296
+ <div class="tags">
297
+ <p class="tag_title">Parameters:</p>
298
+ <ul class="param">
299
+
300
+ <li>
301
+
302
+ <span class='name'>kwargs</span>
303
+
304
+
305
+ <span class='type'>(<tt>Hash</tt>)</span>
306
+
307
+
308
+
309
+ </li>
310
+
311
+ </ul>
312
+
313
+
314
+
315
+
316
+ <p class="tag_title">Options Hash (<tt>**kwargs</tt>):</p>
317
+ <ul class="option">
318
+
319
+ <li>
320
+ <span class="name">:dir</span>
321
+ <span class="type">(<tt>String?</tt>)</span>
322
+ <span class="default">
323
+
324
+ </span>
325
+
326
+ &mdash; <div class='inline'>
327
+ <p>Path to the hgtk command. Current working directory by default.</p>
328
+ </div>
329
+
330
+ </li>
331
+
332
+ </ul>
333
+
334
+
335
+
336
+ </div><table class="source_code">
337
+ <tr>
338
+ <td>
339
+ <pre class="lines">
340
+
341
+
342
+ 14
343
+ 15
344
+ 16</pre>
345
+ </td>
346
+ <td>
347
+ <pre class="code"><span class="info file"># File 'lib/hgtk/hg.rb', line 14</span>
348
+
349
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span> <span class='op'>**</span><span class='id identifier rubyid_kwargs'>kwargs</span>
350
+ <span class='ivar'>@dir</span> <span class='op'>=</span> <span class='id identifier rubyid_kwargs'>kwargs</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span> <span class='symbol'>:dir</span><span class='comma'>,</span> <span class='const'>Dir</span><span class='period'>.</span><span class='id identifier rubyid_pwd'>pwd</span>
351
+ <span class='kw'>end</span></pre>
352
+ </td>
353
+ </tr>
354
+ </table>
355
+ </div>
356
+
357
+ </div>
358
+
359
+ <div id="instance_attr_details" class="attr_details">
360
+ <h2>Instance Attribute Details</h2>
361
+
362
+
363
+ <span id=""></span>
364
+ <div class="method_details first">
365
+ <h3 class="signature first" id="dir-instance_method">
366
+
367
+ - (<tt>Object</tt>) <strong>dir</strong> <span class="extras">(readonly)</span>
368
+
369
+
370
+
371
+
372
+
373
+ </h3><div class="docstring">
374
+ <div class="discussion">
375
+
376
+ <p>Returns the value of attribute dir</p>
377
+
378
+
379
+ </div>
380
+ </div>
381
+ <div class="tags">
382
+
383
+
384
+ </div><table class="source_code">
385
+ <tr>
386
+ <td>
387
+ <pre class="lines">
388
+
389
+
390
+ 9
391
+ 10
392
+ 11</pre>
393
+ </td>
394
+ <td>
395
+ <pre class="code"><span class="info file"># File 'lib/hgtk/hg.rb', line 9</span>
396
+
397
+ <span class='kw'>def</span> <span class='id identifier rubyid_dir'>dir</span>
398
+ <span class='ivar'>@dir</span>
399
+ <span class='kw'>end</span></pre>
400
+ </td>
401
+ </tr>
402
+ </table>
403
+ </div>
404
+
405
+ </div>
406
+
407
+
408
+ <div id="instance_method_details" class="method_details_list">
409
+ <h2>Instance Method Details</h2>
410
+
411
+
412
+ <div class="method_details first">
413
+ <h3 class="signature first" id="incoming-instance_method">
414
+
415
+ - (<tt>Object</tt>) <strong>incoming</strong>
416
+
417
+
418
+
419
+
420
+
421
+ </h3><div class="docstring">
422
+ <div class="discussion">
423
+
424
+ <p>Check for incoming changesets.</p>
425
+
426
+
427
+ </div>
428
+ </div>
429
+ <div class="tags">
430
+
431
+
432
+ </div><table class="source_code">
433
+ <tr>
434
+ <td>
435
+ <pre class="lines">
436
+
437
+
438
+ 28
439
+ 29</pre>
440
+ </td>
441
+ <td>
442
+ <pre class="code"><span class="info file"># File 'lib/hgtk/hg.rb', line 28</span>
443
+
444
+ <span class='kw'>def</span> <span class='id identifier rubyid_incoming'>incoming</span>
445
+ <span class='kw'>end</span></pre>
446
+ </td>
447
+ </tr>
448
+ </table>
449
+ </div>
450
+
451
+ <div class="method_details ">
452
+ <h3 class="signature " id="outgoing-instance_method">
453
+
454
+ - (<tt>Object</tt>) <strong>outgoing</strong>
455
+
456
+
457
+
458
+
459
+
460
+ </h3><div class="docstring">
461
+ <div class="discussion">
462
+
463
+ <p>Check for outgoing changesets.</p>
464
+
465
+
466
+ </div>
467
+ </div>
468
+ <div class="tags">
469
+
470
+
471
+ </div><table class="source_code">
472
+ <tr>
473
+ <td>
474
+ <pre class="lines">
475
+
476
+
477
+ 32
478
+ 33</pre>
479
+ </td>
480
+ <td>
481
+ <pre class="code"><span class="info file"># File 'lib/hgtk/hg.rb', line 32</span>
482
+
483
+ <span class='kw'>def</span> <span class='id identifier rubyid_outgoing'>outgoing</span>
484
+ <span class='kw'>end</span></pre>
485
+ </td>
486
+ </tr>
487
+ </table>
488
+ </div>
489
+
490
+ <div class="method_details ">
491
+ <h3 class="signature " id="status-instance_method">
492
+
493
+ - (<tt>Object</tt>) <strong>status</strong>
494
+
495
+
496
+
497
+
498
+
499
+ </h3><div class="docstring">
500
+ <div class="discussion">
501
+
502
+ <p>Check repo status (uncommitted changes).</p>
503
+
504
+
505
+ </div>
506
+ </div>
507
+ <div class="tags">
508
+
509
+
510
+ </div><table class="source_code">
511
+ <tr>
512
+ <td>
513
+ <pre class="lines">
514
+
515
+
516
+ 19
517
+ 20
518
+ 21
519
+ 22
520
+ 23
521
+ 24
522
+ 25</pre>
523
+ </td>
524
+ <td>
525
+ <pre class="code"><span class="info file"># File 'lib/hgtk/hg.rb', line 19</span>
526
+
527
+ <span class='kw'>def</span> <span class='id identifier rubyid_status'>status</span>
528
+ <span class='const'>Dir</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='ivar'>@dir</span><span class='embexpr_end'>}</span><span class='tstring_content'>/*/.hg</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span><span class='period'>
529
+ </span><span class='id identifier rubyid_ .map'> .map</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_path'>path</span><span class='op'>|</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_absolute_path'>absolute_path</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span> <span class='id identifier rubyid_path'>path</span> <span class='rbrace'>}</span><span class='period'>
530
+ </span><span class='id identifier rubyid_ .each'> .each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_path'>path</span><span class='op'>|</span>
531
+ <span class='id identifier rubyid_repo'>repo</span> <span class='op'>=</span> <span class='const'>HGTK</span><span class='op'>::</span><span class='const'>Repo</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='id identifier rubyid_path'>path</span>
532
+ <span class='kw'>end</span>
533
+ <span class='kw'>end</span></pre>
534
+ </td>
535
+ </tr>
536
+ </table>
537
+ </div>
538
+
539
+ <div class="method_details ">
540
+ <h3 class="signature " id="sync-instance_method">
541
+
542
+ - (<tt>Object</tt>) <strong>sync</strong>
543
+
544
+
545
+
546
+
547
+
548
+ </h3><div class="docstring">
549
+ <div class="discussion">
550
+
551
+ <p>Synchronize repository by pulling, then pushing.</p>
552
+
553
+
554
+ </div>
555
+ </div>
556
+ <div class="tags">
557
+
558
+
559
+ </div><table class="source_code">
560
+ <tr>
561
+ <td>
562
+ <pre class="lines">
563
+
564
+
565
+ 36
566
+ 37</pre>
567
+ </td>
568
+ <td>
569
+ <pre class="code"><span class="info file"># File 'lib/hgtk/hg.rb', line 36</span>
570
+
571
+ <span class='kw'>def</span> <span class='id identifier rubyid_sync'>sync</span>
572
+ <span class='kw'>end</span></pre>
573
+ </td>
574
+ </tr>
575
+ </table>
576
+ </div>
577
+
578
+ </div>
579
+
580
+ </div>
581
+
582
+ <div id="footer">
583
+ Generated on Thu Jan 1 14:24:37 2015 by
584
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
585
+ 0.8.7.6 (ruby-2.1.5).
586
+ </div>
587
+
588
+ </body>
589
+ </html>