~svn/ubuntu/raring/subversion/ppa

« back to all changes in this revision

Viewing changes to subversion/bindings/swig/perl/native/Wc.pm

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-12-05 01:26:14 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051205012614-qom4xfypgtsqc2xq
Tags: 1.2.3dfsg1-3ubuntu1
Merge with the final Debian release of 1.2.3dfsg1-3, bringing in
fixes to the clean target, better documentation of the libdb4.3
upgrade and build fixes to work with swig1.3_1.3.27.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
use strict;
 
2
use warnings;
 
3
 
 
4
package SVN::Wc;
 
5
use SVN::Base qw(Wc svn_wc_);
 
6
 
 
7
=head1 NAME
 
8
 
 
9
SVN::Wc - Subversion working copy functions
 
10
 
 
11
=head1 SYNOPSIS
 
12
 
 
13
Incomplete
 
14
 
 
15
=head1 OBJECTS
 
16
 
 
17
=cut 
 
18
 
 
19
package _p_svn_wc_t;
 
20
 
 
21
=head2 svn_wc_status_t
 
22
 
 
23
=over 4
 
24
 
 
25
=item $wcstat-E<gt>entry()
 
26
 
 
27
A svn_wc_entry_t object for the item.  Can be undef if not under version
 
28
control.
 
29
 
 
30
=item $wcstat-E<gt>text_status()
 
31
 
 
32
An integer representing the status of the item's text.  Can be one of the
 
33
$SVN::Wc::Status::* constants.
 
34
 
 
35
=item $wcstat-E<gt>prop_status()
 
36
 
 
37
An integer representing the status of the item's properties.  Can be one of the
 
38
$SVN::Wc::Status::* constants.
 
39
 
 
40
=item $wcstat-E<gt>locked()
 
41
 
 
42
A boolean telling if the item is locked.  A directory can be locked if a
 
43
working copy update was interrupted.
 
44
 
 
45
=item $wcstat-E<gt>copied()
 
46
 
 
47
A boolean telling if the item was copied.  A file or directory can be copied if
 
48
it's scheduled for addition-with-history (or part of a subtree that is
 
49
scheduled as such).
 
50
 
 
51
=item $wcstat-E<gt>switched()
 
52
 
 
53
A boolean telling if the item was switched.  A file or directory can be
 
54
switched if the switch command has been used.
 
55
 
 
56
=item $wcstat-E<gt>repos_text_status()
 
57
 
 
58
An integer representing the status of the item's text in the repository.  Can
 
59
be one of the $SVN::Wc::Status::* constants.
 
60
 
 
61
 
 
62
=item $wcstat-E<gt>repos_prop_status()
 
63
 
 
64
An integer representing the status of the item's properties in the repository.
 
65
Can be one of the $SVN::Wc::Status::* constants.
 
66
 
 
67
=back
 
68
 
 
69
=cut
 
70
 
 
71
package _p_svn_wc_status_t;
 
72
use SVN::Base qw(Wc svn_wc_status_t_);
 
73
 
 
74
=head2 svn_wc_entry_t
 
75
 
 
76
=over 4
 
77
 
 
78
=item $wcent-E<gt>name()
 
79
 
 
80
Entry's name.
 
81
 
 
82
=item $wcent-E<gt>revision()
 
83
 
 
84
Base revision.
 
85
 
 
86
=item $wcent-E<gt>url()
 
87
 
 
88
URL in repository.
 
89
 
 
90
=item $wcent-E<gt>repos()
 
91
 
 
92
Canonical repository URL.
 
93
 
 
94
=item $wcent-E<gt>uuid()
 
95
 
 
96
Repository uuid.
 
97
 
 
98
=item $wcent-E<gt>kind()
 
99
 
 
100
The kind of node.  One of the following constants:
 
101
$SVN::Node::none, $SVN::Node::file,
 
102
$SVN::Node::dir, $SVN::Node::unknown.
 
103
 
 
104
=item $wcent-E<gt>schedule()
 
105
 
 
106
Scheduling.  One of the SVN::Wc::Schedule::* constants.
 
107
 
 
108
=item $wcent-E<gt>copied()
 
109
 
 
110
In a copied state.
 
111
 
 
112
=item $wcent-E<gt>deleted()
 
113
 
 
114
Deleted, but parent rev lags behind.
 
115
 
 
116
=item $wcent-E<gt>absent()
 
117
 
 
118
Absent -- we know an entry of this name exists, but that's all (usually this
 
119
happens because of authz restrictions) 
 
120
 
 
121
=item $wcent-E<gt>incomplete()
 
122
 
 
123
For THIS_DIR entry, implies whole entries file is incomplete.
 
124
 
 
125
=item $wcent-E<gt>copyfrom_url()
 
126
 
 
127
Copyfrom location.
 
128
 
 
129
=item $wcent-E<gt>copyfrom_rev()
 
130
 
 
131
Copyfrom revision.
 
132
 
 
133
=item $wcent-E<gt>conflict_old()
 
134
 
 
135
Old version of conflicted file.
 
136
 
 
137
=item $wcent-E<gt>conflict_new()
 
138
 
 
139
New version of conflicted file.
 
140
 
 
141
=item $wcent-E<gt>conflict_wrk()
 
142
 
 
143
Working version of conflicted file.
 
144
 
 
145
=item $wcent-E<gt>prejfile()
 
146
 
 
147
Property reject file.
 
148
 
 
149
=item $wcent-E<gt>text_time()
 
150
 
 
151
Last up-to-date time for text contents (0 means no information available).
 
152
 
 
153
=item $wcent-E<gt>prop_time()
 
154
 
 
155
Last up-to-date time for properties (0 means no information available).
 
156
 
 
157
=item $wcent-E<gt>checksum()
 
158
 
 
159
Base-64 encoded checksum for the untranslated text base file, can be undef for
 
160
backwards compatibility.
 
161
 
 
162
=item $wcent-E<gt>cmt_rev()
 
163
 
 
164
Last revision this was changed.
 
165
 
 
166
=item $wcent-E<gt>cmt_date()
 
167
 
 
168
Last date this was changed.
 
169
 
 
170
=item $wcent-E<gt>cmt_author()
 
171
 
 
172
Last commit author of this item.
 
173
 
 
174
=back
 
175
 
 
176
=cut
 
177
 
 
178
package _p_svn_wc_entry_t;
 
179
# still need to check if the function prototype allows it to be called
 
180
# as method.
 
181
use SVN::Base qw(Wc svn_wc_entry_t_);
 
182
 
 
183
=head1 CONSTANTS
 
184
 
 
185
=head2 SVN::Wc::Notify::Action
 
186
 
 
187
=over 4
 
188
 
 
189
=item $SVN::Wc::Notify::Action::add
 
190
 
 
191
Adding a path to revision control.
 
192
 
 
193
=item $SVN::Wc::Notify::Action::copy
 
194
 
 
195
Copying a versioned path.
 
196
 
 
197
=item $SVN::Wc::Notify::Action::delete
 
198
 
 
199
Deleting a versioned path.
 
200
 
 
201
=item $SVN::Wc::Notify::Action::restore
 
202
 
 
203
Restoring a missing path from the pristine text-base.
 
204
 
 
205
=item $SVN::Wc::Notify::Action::revert
 
206
 
 
207
Reverting a modified path.
 
208
 
 
209
=item $SVN::Wc::Notify::Action::failed_revert
 
210
 
 
211
A revert operation has failed.
 
212
 
 
213
=item $SVN::Wc::Notify::Action::resolved
 
214
 
 
215
Resolving a conflict.
 
216
 
 
217
=item $SVN::Wc::Notify::Action::skip
 
218
 
 
219
Skipping a path.
 
220
 
 
221
=item $SVN::Wc::Notify::Action::update_delete
 
222
 
 
223
Got a delete in an update.
 
224
 
 
225
=item $SVN::Wc::Notify::Action::update_add
 
226
 
 
227
Got an add in an update.
 
228
 
 
229
=item $SVN::Wc::Notify::Action::update_update
 
230
 
 
231
Got any other action in an update.
 
232
 
 
233
=item $SVN::Wc::Notify::Action::update_completed
 
234
 
 
235
The last notification in an update (including updates of externals).
 
236
 
 
237
=item $SVN::Wc::Notify::Action::update_external
 
238
 
 
239
Updating an external module.
 
240
 
 
241
=item $SVN::Wc::Notify::Action::status_completed
 
242
 
 
243
The last notification in a status (including status on externals).
 
244
 
 
245
=item $SVN::Wc::Notify::Action::status_external
 
246
 
 
247
Running status on an external module.
 
248
 
 
249
=item $SVN::Wc::Notify::Action::commit_modified
 
250
 
 
251
Committing a modification.
 
252
 
 
253
=item $SVN::Wc::Notify::Action::commit_added
 
254
 
 
255
Committing an addition.
 
256
 
 
257
=item $SVN::Wc::Notify::Action::commit_deleted
 
258
 
 
259
Committing a deletion.
 
260
 
 
261
=item $SVN::Wc::Notify::Action::commit_replaced
 
262
 
 
263
Committing a replacement.
 
264
 
 
265
=item $SVN::Wc::Notify::Action::commit_postfix_txdelta
 
266
 
 
267
Transmitting post-fix text-delta data for a file.
 
268
 
 
269
=item $SVN::Wc::Notify::Action::blame_revision
 
270
 
 
271
Processed a single revision's blame.
 
272
 
 
273
=back
 
274
 
 
275
=cut
 
276
 
 
277
# no reasonable prefix for these enums 
 
278
# so we have to do them one by one to import.
 
279
package SVN::Wc::Notify::Action;
 
280
our $add = $SVN::Wc::notify_add;
 
281
our $copy = $SVN::Wc::notify_copy;
 
282
our $delete = $SVN::Wc::notify_delete;
 
283
our $restore = $SVN::Wc::notify_restore;
 
284
our $revert = $SVN::Wc::notify_revert;
 
285
our $failed_revert = $SVN::Wc::notify_failed_revert;
 
286
our $resolved = $SVN::Wc::notify_resolved;
 
287
our $skip = $SVN::Wc::notify_skip;
 
288
our $update_delete = $SVN::Wc::notify_update_delete;
 
289
our $update_add = $SVN::Wc::notify_update_add;
 
290
our $update_update = $SVN::Wc::notify_update_update;
 
291
our $update_completed = $SVN::Wc::notify_update_completed;
 
292
our $update_external = $SVN::Wc::notify_update_external;
 
293
our $status_completed = $SVN::Wc::notify_status_completed;
 
294
our $status_external = $SVN::Wc::notify_status_external;
 
295
our $commit_modified = $SVN::Wc::notify_commit_modified;
 
296
our $commit_added = $SVN::Wc::notify_commit_added;
 
297
our $commit_deleted = $SVN::Wc::notify_commit_deleted;
 
298
our $commit_replaced = $SVN::Wc::notify_commit_replaced;
 
299
our $commit_postfix_txdelta = $SVN::Wc::notify_commit_postfix_txdelta;
 
300
our $blame_revision = $SVN::Wc::notify_blame_revision;
 
301
 
 
302
=head2 SVN::Wc::Notify::State
 
303
 
 
304
=over 4
 
305
 
 
306
=item $SVN::Wc::Notify::State::unknown
 
307
 
 
308
Notifier doesn't know or isn't saying.
 
309
 
 
310
=item $SVN::Wc::Notify::State::unchanged
 
311
 
 
312
The state did not change.
 
313
 
 
314
=item $SVN::Wc::Notify::State::missing
 
315
 
 
316
The item wasn't present.
 
317
 
 
318
=item $SVN::Wc::Notify::State::obstructed
 
319
 
 
320
An unversioned item obstructed work.
 
321
 
 
322
=item $SVN::Wc::Notify::State::changed
 
323
 
 
324
Pristine state was modified.
 
325
 
 
326
=item $SVN::Wc::Notify::State::merged
 
327
 
 
328
Modified state had mods merged in.
 
329
 
 
330
=item $SVN::Wc::Notify::State::conflicted
 
331
 
 
332
Modified state got conflicting mods.
 
333
 
 
334
=back
 
335
 
 
336
=cut
 
337
 
 
338
package SVN::Wc::Notify::State;
 
339
use SVN::Base qw(Wc svn_wc_notify_state_);
 
340
 
 
341
=head2 SVN::Wc::Schedule
 
342
 
 
343
=over 4
 
344
 
 
345
=item $SVN::Wc::Schedule::normal
 
346
 
 
347
Nothing special here.
 
348
 
 
349
=item $SVN::Wc::Schedule::add
 
350
 
 
351
Slated for addition.
 
352
 
 
353
=item $SVN::Wc::Schedule::delete
 
354
 
 
355
Slated for deletion.
 
356
 
 
357
=item $SVN::Wc::Schedule::replace
 
358
 
 
359
Slated for replacement (delete + add)
 
360
 
 
361
=back
 
362
 
 
363
=cut
 
364
 
 
365
package SVN::Wc::Schedule;
 
366
use SVN::Base qw(Wc svn_wc_schedule_);
 
367
 
 
368
=head2 SVN::Wc::Status
 
369
 
 
370
=over 4
 
371
 
 
372
=item $SVN::Wc::Status::none
 
373
 
 
374
Does not exist.
 
375
 
 
376
=item $SVN::Wc::Status::unversioned
 
377
 
 
378
Is not a versioned node in this working copy.
 
379
 
 
380
=item $SVN::Wc::Status::normal
 
381
 
 
382
Exists, but uninteresting.
 
383
 
 
384
=item $SVN::Wc::Status::added
 
385
 
 
386
Is scheduled for addition.
 
387
 
 
388
=item $SVN::Wc::Status::missing
 
389
 
 
390
Under version control but missing.
 
391
 
 
392
=item $SVN::Wc::Status::deleted
 
393
 
 
394
Scheduled for deletion.
 
395
 
 
396
=item $SVN::Wc::Status::replaced
 
397
 
 
398
Was deleted and then re-added.
 
399
 
 
400
=item $SVN::Wc::Status::modified
 
401
 
 
402
Text or props have been modified.
 
403
 
 
404
=item $SVN::Wc::Status::merged
 
405
 
 
406
Local mods received repos mods.
 
407
 
 
408
=item $SVN::Wc::Status::conflicted
 
409
 
 
410
Local mods received conflicting mods.
 
411
 
 
412
=item $SVN::Wc::Status::ignored
 
413
 
 
414
A node marked as ignored.
 
415
 
 
416
=item $SVN::Wc::Status::obstructed
 
417
 
 
418
An unversioned resource is in the way of the versioned resource.
 
419
 
 
420
=item $SVN::Wc::Status::external
 
421
 
 
422
An unversioned path populated by an svn:external property.
 
423
 
 
424
=item $SVN::Wc::Status::incomplete
 
425
 
 
426
A directory doesn't contain a complete entries list.
 
427
 
 
428
=back
 
429
 
 
430
=cut
 
431
 
 
432
package SVN::Wc::Status;
 
433
use SVN::Base qw(Wc svn_wc_status_);
 
434
 
 
435
1;