~ubuntu-branches/ubuntu/raring/libcvs-perl/raring

« back to all changes in this revision

Viewing changes to Cvs

  • Committer: Package Import Robot
  • Author(s): gregor herrmann, gregor herrmann, Nathan Handler, Ansgar Burchardt
  • Date: 2012-03-27 23:48:06 UTC
  • Revision ID: package-import@ubuntu.com-20120327234806-a24e9ed514fn7k3v
Tags: 0.07-4
[ gregor herrmann ]
* Remove file ./Cvs (output of pod2man) from source package.
* Remove unused lintian override.
* Revert changes to upstream files under ./cvs/.
* Split out changes to Makefile.PL into a patch.
* debian/watch: use dist-based URL.
* debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser
  field (source stanza).
* debian/control: Added: ${misc:Depends} to Depends: field.

[ Nathan Handler ]
* debian/watch: Update to ignore development releases.

[ gregor herrmann ]
* debian/control: Added: Homepage field (source stanza).

[ Ansgar Burchardt ]
* debian/control: Convert Vcs-* fields to Git.

[ gregor herrmann ]
* Add patch to properly handle incomplete lines when looking for a
  linefeed. Thanks to Niko Tyni for the analysis and the patch.
  (Closes: #661799)
* Switch to "3.0 (quilt)" source format.
* Use debhelper 8 and tiny debian/rules files.
* debian/copyright: update to Copyright-Format 1.0.
  Update copyright license, and years of packaging copyright.
* Set Standards-Version to 3.9.3, remove version from perl (build)
  dependency. Add ${perl:Depends}.
* Improve short/long description.
* Add /me to Uploaders.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
.\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.3
2
 
.\"
3
 
.\" Standard preamble:
4
 
.\" ========================================================================
5
 
.de Sh \" Subsection heading
6
 
.br
7
 
.if t .Sp
8
 
.ne 5
9
 
.PP
10
 
\fB\\$1\fR
11
 
.PP
12
 
..
13
 
.de Sp \" Vertical space (when we can't use .PP)
14
 
.if t .sp .5v
15
 
.if n .sp
16
 
..
17
 
.de Vb \" Begin verbatim text
18
 
.ft CW
19
 
.nf
20
 
.ne \\$1
21
 
..
22
 
.de Ve \" End verbatim text
23
 
.ft R
24
 
.fi
25
 
..
26
 
.\" Set up some character translations and predefined strings.  \*(-- will
27
 
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
28
 
.\" double quote, and \*(R" will give a right double quote.  | will give a
29
 
.\" real vertical bar.  \*(C+ will give a nicer C++.  Capital omega is used to
30
 
.\" do unbreakable dashes and therefore won't be available.  \*(C` and \*(C'
31
 
.\" expand to `' in nroff, nothing in troff, for use with C<>.
32
 
.tr \(*W-|\(bv\*(Tr
33
 
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
34
 
.ie n \{\
35
 
.    ds -- \(*W-
36
 
.    ds PI pi
37
 
.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
38
 
.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
39
 
.    ds L" ""
40
 
.    ds R" ""
41
 
.    ds C` ""
42
 
.    ds C' ""
43
 
'br\}
44
 
.el\{\
45
 
.    ds -- \|\(em\|
46
 
.    ds PI \(*p
47
 
.    ds L" ``
48
 
.    ds R" ''
49
 
'br\}
50
 
.\"
51
 
.\" If the F register is turned on, we'll generate index entries on stderr for
52
 
.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
53
 
.\" entries marked with X<> in POD.  Of course, you'll have to process the
54
 
.\" output yourself in some meaningful fashion.
55
 
.if \nF \{\
56
 
.    de IX
57
 
.    tm Index:\\$1\t\\n%\t"\\$2"
58
 
..
59
 
.    nr % 0
60
 
.    rr F
61
 
.\}
62
 
.\"
63
 
.\" For nroff, turn off justification.  Always turn off hyphenation; it makes
64
 
.\" way too many mistakes in technical documents.
65
 
.hy 0
66
 
.if n .na
67
 
.\"
68
 
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
69
 
.\" Fear.  Run.  Save yourself.  No user-serviceable parts.
70
 
.    \" fudge factors for nroff and troff
71
 
.if n \{\
72
 
.    ds #H 0
73
 
.    ds #V .8m
74
 
.    ds #F .3m
75
 
.    ds #[ \f1
76
 
.    ds #] \fP
77
 
.\}
78
 
.if t \{\
79
 
.    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
80
 
.    ds #V .6m
81
 
.    ds #F 0
82
 
.    ds #[ \&
83
 
.    ds #] \&
84
 
.\}
85
 
.    \" simple accents for nroff and troff
86
 
.if n \{\
87
 
.    ds ' \&
88
 
.    ds ` \&
89
 
.    ds ^ \&
90
 
.    ds , \&
91
 
.    ds ~ ~
92
 
.    ds /
93
 
.\}
94
 
.if t \{\
95
 
.    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
96
 
.    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
97
 
.    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
98
 
.    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
99
 
.    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
100
 
.    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
101
 
.\}
102
 
.    \" troff and (daisy-wheel) nroff accents
103
 
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
104
 
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
105
 
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
106
 
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
107
 
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
108
 
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
109
 
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
110
 
.ds ae a\h'-(\w'a'u*4/10)'e
111
 
.ds Ae A\h'-(\w'A'u*4/10)'E
112
 
.    \" corrections for vroff
113
 
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
114
 
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
115
 
.    \" for low resolution devices (crt and lpr)
116
 
.if \n(.H>23 .if \n(.V>19 \
117
 
\{\
118
 
.    ds : e
119
 
.    ds 8 ss
120
 
.    ds o a
121
 
.    ds d- d\h'-1'\(ga
122
 
.    ds D- D\h'-1'\(hy
123
 
.    ds th \o'bp'
124
 
.    ds Th \o'LP'
125
 
.    ds ae ae
126
 
.    ds Ae AE
127
 
.\}
128
 
.rm #[ #] #H #V #F C
129
 
.\" ========================================================================
130
 
.\"
131
 
.IX Title "Cvs 3pm"
132
 
.TH Cvs 3pm "2005-08-12" "perl v5.8.7" "User Contributed Perl Documentation"
133
 
.SH "NAME"
134
 
Cvs \- Object oriented interface to the CVS command
135
 
.SH "SYNOPSIS"
136
 
.IX Header "SYNOPSIS"
137
 
.Vb 1
138
 
\&    use Cvs;
139
 
.Ve
140
 
.PP
141
 
.Vb 6
142
 
\&    my $cvs = new Cvs
143
 
\&      (
144
 
\&        '/path/to/repository/for/module',
145
 
\&        cvsroot => ':pserver:user@host:/path/to/cvs',
146
 
\&        password => 'secret'
147
 
\&      ) or die $Cvs::ERROR;
148
 
.Ve
149
 
.PP
150
 
.Vb 1
151
 
\&    $cvs\->checkout('module');
152
 
.Ve
153
 
.PP
154
 
.Vb 1
155
 
\&    ...
156
 
.Ve
157
 
.PP
158
 
.Vb 5
159
 
\&    my $status = $cvs\->status('file');
160
 
\&    if($status\->is_modified)
161
 
\&    {
162
 
\&        $cvs\->commit('file');
163
 
\&    }
164
 
.Ve
165
 
.PP
166
 
.Vb 2
167
 
\&    $cvs\->release({delete_after => 1});
168
 
\&    $cvs\->logout();
169
 
.Ve
170
 
.SH "DESCRIPTION"
171
 
.IX Header "DESCRIPTION"
172
 
bla bla
173
 
.SH "LEGACY CVS METHODS"
174
 
.IX Header "LEGACY CVS METHODS"
175
 
.Sh "new"
176
 
.IX Subsection "new"
177
 
.Vb 1
178
 
\&    Cvs = new Cvs ["workdir"] [key => "value" [, ...]];
179
 
.Ve
180
 
.PP
181
 
.Vb 1
182
 
\&    my $obj = new Cvs "workdir";
183
 
.Ve
184
 
.PP
185
 
.Vb 1
186
 
\&    my $obj = new Cvs "workdir", cvsroot => "/path/to/cvsroot";
187
 
.Ve
188
 
.PP
189
 
.Vb 1
190
 
\&    my $obj = new Cvs cvsroot => ":pserver:user\e@host:/path/to/cvs";
191
 
.Ve
192
 
.PP
193
 
Create a new Cvs object for the repository given in argument. Note
194
 
that the working directory doesn't need to already exist.
195
 
.PP
196
 
Allowed parameters are:
197
 
.IP "workdir" 4
198
 
.IX Item "workdir"
199
 
Path to the working directory. You don't need it if you plan to use
200
 
only remote commands like rdiff or rtag.
201
 
.IP "cvsroot" 4
202
 
.IX Item "cvsroot"
203
 
Address of the cvsroot. See the Cvs::Cvsroot module documentation for
204
 
more information on supported \s-1CVSROOT\s0. Note that if you don't supply a
205
 
cvs root but a working directory, Cvs will try to guess the \s-1CVSROOT\s0
206
 
value. You still need to supply password and others authentication
207
 
values. If Cvs can't determine the \s-1CVSROOT\s0 value, an error will be
208
 
thrown and the object will not be created.
209
 
.IP "password, passphrase, ..." 4
210
 
.IX Item "password, passphrase, ..."
211
 
All options supported by Cvs::Cvsroot are supported here. Please see
212
 
Cvs::Cvsroot documentation for more details.
213
 
.Sh "checkout"
214
 
.IX Subsection "checkout"
215
 
.Vb 1
216
 
\&    Cvs::Result::Checkout = $obj\->checkout("module", {key => "value"});
217
 
.Ve
218
 
.PP
219
 
Checkout the module \*(L"module\*(R" in the repository (the one that served to
220
 
create the Cvs object) from the cvsroot given in parameter.
221
 
.PP
222
 
Allowed parameters are:
223
 
.IP "reset" 4
224
 
.IX Item "reset"
225
 
Boolean value used to reset any sticky tags, dates or options (See the
226
 
\&\-A cvs checkout option).
227
 
.IP "revision" 4
228
 
.IX Item "revision"
229
 
Specify the revision to checkout the module (See the \-r cvs checkout
230
 
option).
231
 
.IP "date" 4
232
 
.IX Item "date"
233
 
Specify the date from when to checkout the module (See the \-D cvs
234
 
checkout option).
235
 
.PP
236
 
Cvs::Result::Checkout.
237
 
.Sh "update"
238
 
.IX Subsection "update"
239
 
.Vb 1
240
 
\&    Cvs::Result::Update = $cvs\->update();
241
 
.Ve
242
 
.PP
243
 
Cvs::Result::Update.
244
 
.Sh "status"
245
 
.IX Subsection "status"
246
 
.Vb 1
247
 
\&    Cvs::Result::StatusItem = $cvs\->status("file");
248
 
.Ve
249
 
.PP
250
 
.Vb 2
251
 
\&    Cvs::Result::StatusList =
252
 
\&        $cvs\->status("file1", "file2", {multiple => 1});
253
 
.Ve
254
 
.PP
255
 
Get the status of one of more files.
256
 
.PP
257
 
Allowed parameters are:
258
 
.IP "multiple" 4
259
 
.IX Item "multiple"
260
 
Boolean value that specify the type of object returned. If true, a
261
 
Cvs::Result::StatusList object is returned, and status on more than
262
 
one files can be handled. If false, a Cvs::Result::StatusItem object
263
 
is return and only one file status can be handled (the first one if
264
 
several).
265
 
.IP "recursive" 4
266
 
.IX Item "recursive"
267
 
If a directory is supplied, process it recursively (Default true).
268
 
.PP
269
 
Cvs::Result::StatusItem, Cvs::Result::StatusList
270
 
.Sh "diff"
271
 
.IX Subsection "diff"
272
 
.Vb 1
273
 
\&    Cvs::Result::DiffItem = $cvs\->diff();
274
 
.Ve
275
 
.PP
276
 
.Vb 1
277
 
\&    Cvs::Result::DiffList = $cvs\->diff({multiple => 1});
278
 
.Ve
279
 
.PP
280
 
Cvs::Result::DiffItem, Cvs::Result::DiffList.
281
 
.Sh "rdiff"
282
 
.IX Subsection "rdiff"
283
 
.Vb 2
284
 
\&    Cvs::Result::RdiffList =
285
 
\&      $cvs\->rdiff("module", {from_revision => $rev});
286
 
.Ve
287
 
.PP
288
 
Cvs::Result::RdiffList.
289
 
.Sh "log"
290
 
.IX Subsection "log"
291
 
.Vb 1
292
 
\&    Cvs::Result::Log = $cvs\->log();
293
 
.Ve
294
 
.PP
295
 
Cvs::Result::Log.
296
 
.Sh "tag"
297
 
.IX Subsection "tag"
298
 
.Vb 1
299
 
\&    Cvs::Result::Tag = $cvs\->tag("tag");
300
 
.Ve
301
 
.PP
302
 
Cvs::Result::Tag.
303
 
.Sh "rtag"
304
 
.IX Subsection "rtag"
305
 
.Vb 1
306
 
\&    Cvs::Result::Tag = $cvs\->rtag("module", "tag");
307
 
.Ve
308
 
.PP
309
 
Cvs::Result::Rtag.
310
 
.Sh "release"
311
 
.IX Subsection "release"
312
 
.Vb 1
313
 
\&    Cvs::Result::Release = $cvs\->release();
314
 
.Ve
315
 
.PP
316
 
.Vb 1
317
 
\&    Cvs::Result::Release = $cvs\->release('module', ..., {force => 1});
318
 
.Ve
319
 
.PP
320
 
Call the release command.
321
 
.PP
322
 
If call with no directories to release, self repository will be
323
 
released.
324
 
.IP "force" 4
325
 
.IX Item "force"
326
 
Boolean value that activate a forced directory release even if some
327
 
files was not committed.  Defaults to false.
328
 
.IP "delete_after" 4
329
 
.IX Item "delete_after"
330
 
Boolean value that activate directory removal after a release. Default
331
 
to false.
332
 
.PP
333
 
Cvs::Result::Release
334
 
.Sh "export"
335
 
.IX Subsection "export"
336
 
.Vb 1
337
 
\&    Cvs::Result::Export = $obj\->export("module", {key => "value"});
338
 
.Ve
339
 
.PP
340
 
Checkout the module \*(L"module\*(R" in the repository (the one that served to
341
 
create the Cvs object) from the cvsroot given in parameter, but without
342
 
the \s-1CVS\s0 administrative directories. 
343
 
.PP
344
 
Allowed parameters are the same as for checkout.  However, one of the 
345
 
options 'revision' or 'date' must be specified.
346
 
.SH "OTHERS METHODS"
347
 
.IX Header "OTHERS METHODS"
348
 
.Sh "module_list"
349
 
.IX Subsection "module_list"
350
 
.Vb 1
351
 
\&  my @modules = $cvs\->module_list();
352
 
.Ve
353
 
.PP
354
 
Returns the list of all modules which can be riched on the
355
 
\&\s-1CVSROOT\s0. This method do something that cvs doesn't implement by itself,
356
 
we use a little trick to get this list, and this perhaps not work with
357
 
all cvs versions.
358
 
.PP
359
 
Do not mix up this method with the \*(L"\-c\*(R" argument of the cvs' checkout
360
 
sub\-command.
361
 
.SH "ACCESSORS"
362
 
.IX Header "ACCESSORS"
363
 
.Sh "cvsroot"
364
 
.IX Subsection "cvsroot"
365
 
Returns the Cvs::Cvsroot object.
366
 
.Sh "working_directory"
367
 
.IX Subsection "working_directory"
368
 
Returns the full path of the working directory
369
 
.SH "LICENCE"
370
 
.IX Header "LICENCE"
371
 
This library is free software; you can redistribute it and/or modify
372
 
it under the terms of the \s-1GNU\s0 Lesser General Public License as
373
 
published by the Free Software Foundation; either version 2.1 of the
374
 
License, or (at your option) any later version.
375
 
.PP
376
 
This library is distributed in the hope that it will be useful, but
377
 
\&\s-1WITHOUT\s0 \s-1ANY\s0 \s-1WARRANTY\s0; without even the implied warranty of
378
 
\&\s-1MERCHANTABILITY\s0 or \s-1FITNESS\s0 \s-1FOR\s0 A \s-1PARTICULAR\s0 \s-1PURPOSE\s0.  See the \s-1GNU\s0
379
 
Lesser General Public License for more details.
380
 
.PP
381
 
You should have received a copy of the \s-1GNU\s0 Lesser General Public
382
 
License along with this library; if not, write to the Free Software
383
 
Foundation, Inc., 59 Temple Place, Suite 330, Boston, \s-1MA\s0 02111\-1307
384
 
\&\s-1USA\s0
385
 
.SH "COPYRIGHT"
386
 
.IX Header "COPYRIGHT"
387
 
Copyright (C) 2003 \- Olivier Poitrey