source: release-kits/lirk3/ant-scripts/tasks/svnant/doc/svn.html@ 14982

Last change on this file since 14982 was 14982, checked in by oranfry, 16 years ago

initial import of LiRK3

File size: 32.7 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2<html>
3
4<head>
5 <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=windows-1252">
6 <TITLE>Svn Task</TITLE>
7 <META HTTP-EQUIV="Content-Language" CONTENT="en-us">
8 <link rel="stylesheet" type="text/css" href="http://tortoisesvn.tigris.org/branding/css/print.css" media="print" />
9<style type="text/css">
10body {
11 font: 80% Verdana, Arial, Helvetica, sans-serif;
12 margin: 12px; padding: 12px;
13/* background: rgb(95%,95%,80%); */
14 color: black;
15}
16h1 {
17 font-size: 200%; text-transform: lowercase; letter-spacing: 3px;
18 margin-bottom: 1em;
19 padding: 0.66em 0 0.33em 1em;
20 background: rgb(85%,85%,70%);
21}
22h2 {
23 background: rgb(85%,85%,70%);
24}
25h3 {
26 border:1px solid rgb(85%,85%,70%);
27 color: rgb(55%,55%,40%);
28 padding: 0.66em 0 0.33em 1em;
29 background-color: #f3f1f4;
30}
31.sample {
32 font-family: Courier, "Courier New", monospace;
33 background-color: #f3f1f4;
34 margin-left: 10px;
35 margin-right: 10px;
36 padding-top: 3px;
37 padding-bottom: 3px;
38 padding-left: 3px;
39 padding-right: 3px;
40 border:1px dashed black;
41 width: 50%;
42 }
43 table {
44 width: 80%;
45 border: 1px solid gray;
46 margin-bottom:1em;
47 }
48 th, td {
49 padding: 0 0.5em;
50 border-left: 1px solid #DDD;
51 border-bottom: 1px solid #DDD;
52 font: 70%
53}
54th {
55
56}
57</style>
58</head>
59
60<body lang="en-US" dir="LTR">
61
62<H1>&lt;Svn&gt;</H1>
63By <A HREF="mailto:[email protected]">C&eacute;dric Chabanois et al.</A>
64
65
66<H2>Description</H2>
67<p>This task provides an interface to <A HREF="http://subversion.tigris.org/">Subversion</A>
68revision control system that is a compelling replacement for CVS in the open source community.
69<br>
70With the help of the underlying svnClientAdapter, &lt;svn&gt; task uses JavaHL (a
71native JNI interface to the subversion api) if it
72can find the corresponding library (e.g. svnjavahl.dll on windows).
73Otherwise it uses svn command line interface.</p>
74<H2>Parameters</H2>
75
76<table>
77 <tr>
78 <th>Attribute</th>
79 <th>Description</th>
80 <th>Required</th>
81 </tr>
82 <tr>
83 <td>username</td>
84 <td>username that will be used for all nested svn commands.</td>
85 <td>No</td>
86 </tr>
87 <tr>
88 <td>password</td>
89 <td>password that will be used for all nested svn commands.</td>
90 <td>No</td>
91 </tr>
92 <tr>
93 <td>javahl</td>
94 <td>Set to &ldquo;false&rdquo; to use command line client interface instead of JNI JavaHL binding.</td>
95 <td>No (Defaults to true)</td>
96 </tr>
97</table>
98
99<H2>Svn commands specified as nested elements</H2>
100<table>
101 <tr>
102 <td><a href="#add">add </a></td>
103 <td><a href="#createRepository">createRepository</a></td>
104 <td><a href="#import">import</a></td>
105 <td><a href="#move">move</a></td>
106 <td><a href="#status">status</a></td>
107 </tr>
108 <tr>
109 <td><a href="#cat">cat</a></td>
110 <td><a href="#delete">delete</a></td>
111 <td><a href="#keywordsset">keywordsset</a></td>
112 <td><a href="#propdel">propdel</a></td>
113 <td><a href="#switch">switch</a></td>
114 </tr>
115 <tr>
116 <td><a href="#checkout">checkout</a></td>
117 <td><a href="#diff">diff</a></td>
118 <td><a href="#keywordsadd">keywordsadd</a></td>
119 <td><a href="#propget">propget</a></td>
120 <td><a href="#update">update</a></td>
121 </tr>
122 <tr>
123 <td><a href="#commit">commit</a></td>
124 <td><a href="#export">export</a></td>
125 <td><a href="#keywordsremove">keywordsremove</a></td>
126 <td><a href="#propset">propset</a></td>
127 <td></td>
128 </tr>
129 <tr>
130 <td><a href="#copy">copy</a></td>
131 <td><a href="#ignore">ignore</a></td>
132 <td><a href="#mkdir">mkdir</a></td>
133 <td><a href="#revert">revert</a></td>
134 <td></td>
135 </tr>
136 </table>
137<p> </p>
138
139<H3><a name="add">add</a></H3>
140<p>You can add files and directories to svn repository with nested
141<CODE>&lt;add&gt;</CODE> elements.</p>
142<table>
143 <tr>
144 <td>Attribute</td>
145 <td>Description</td>
146 <td>Required</td>
147 </tr>
148 <tr>
149 <td>file</td>
150 <td>file to add to the repository</td>
151 <td>No</td>
152 </tr>
153 <tr>
154 <td>dir</td>
155 <td>directory to add to the repository</td>
156 <td>No</td>
157 </tr>
158 <tr>
159 <td>recurse</td>
160 <td>Set to &quot;false&quot; to operate on a single directory only
161 (applies only when <CODE>dir</CODE> attribute is set). Default is
162 &quot;true&quot;
163 </td>
164 <td>No</td>
165 </tr>
166</table>
167<p>Parameters specified as nested elements :
168<ul>
169<li>fileset <br>
170 Filesets are used to select sets of files to add to the repository. <br>
171 <B>Note that directories needed to add selected files will be added to the
172 repository even if they are not selected by the fileset.</B>
173</li>
174</ul>
175</p>
176
177<H3><a name="cat">cat</a></H3>
178<p>Get the content of a file on repository.</p>
179<table>
180 <tr>
181 <td>Attribute</td>
182 <td>Description</td>
183 <td>Required</td>
184 </tr>
185 <tr>
186 <td>destFile</td>
187 <td>Name of the destination file</td>
188 <td>No <BR>(default is the name of the file on the url)</td>
189 </tr>
190 <tr>
191 <td>url</td>
192 <td>Url of the file in repository</td>
193 <td>Yes</td>
194 </tr>
195 <tr>
196 <td>revision</td>
197 <td>revision to get.<BR>Possible values are :<BR>- a date with the
198 following format : MM/DD/YYYY HH:MM AM_PM<BR>- a revision number<BR>-
199 HEAD, BASE, COMMITED or PREV<BR>Default is &quot;HEAD&quot;
200 </td>
201 <td>No</td>
202 </tr>
203</table>
204
205<H3><a name="checkout">checkout</a></H3>
206<p>Check out a working copy from a repository.</p>
207<table>
208 <tr>
209 <td>Attribute</td>
210 <td>Description</td>
211 <td>Required</td>
212 </tr>
213 <tr>
214 <td>url</td>
215 <td>url to checkout from</td>
216 <td>Yes</td>
217 </tr>
218 <tr>
219 <td>recurse</td>
220 <td>Set to &quot;false&quot; to operate on single directory only.
221 Default is &quot;true&quot;
222 </td>
223 <td>No</td>
224 </tr>
225 <tr>
226 <td>destPath</td>
227 <td>destination directory</td>
228 <td>Yes</td>
229 </tr>
230 <tr>
231 <td>revision</td>
232 <td>revision to checkout.<BR>Possible values are :<BR>- a date with
233 the following format : MM/DD/YYYY HH:MM AM_PM<BR>- a revision
234 number<BR>- HEAD, BASE, COMMITED or PREV<BR>Default is &quot;HEAD&quot;
235 </td>
236 <td>No</td>
237 </tr>
238</table>
239<p>Parameters specified as nested elements :
240<ul>
241 <li>fileset<br>
242 Filesets are used to select sets of files to add to the repository. <br>
243 <B>Note that directories needed to add selected files will be added to the
244 repository even if they are not selected by the fileset.</B>
245 </li>
246</ul>
247</p>
248
249<p>
250<div class="sample">
251<FONT FACE="Courier New"><FONT SIZE=2><FONT COLOR="#000080">&lt;svn</FONT>
252<FONT COLOR="#000080">javahl=</FONT><FONT COLOR="#008000">&quot;${javahl}&quot;</FONT><FONT COLOR="#000080">&gt;</FONT></FONT></FONT><br>
253<FONT FACE="Courier New"><FONT SIZE=2><FONT COLOR="#000080">&lt;checkout</FONT>
254<FONT COLOR="#000080">url=</FONT><FONT COLOR="#008000">&quot;${urlRepos}&quot;</FONT>
255<FONT COLOR="#000080">destPath=</FONT><FONT COLOR="#008000">&quot;workingcopy&quot;</FONT>
256<FONT COLOR="#000080">/&gt;</FONT></FONT></FONT><br>
257<FONT FACE="Courier New"><FONT SIZE=2><FONT COLOR="#000080">&lt;/svn&gt;</FONT></FONT></FONT>
258</div>
259</p>
260
261<H3><a name="commit">commit</a></H3>
262<p>Send changes from your working copy to the repository.</p>
263<table>
264 <tr>
265 <td>Attribute</td>
266 <td>Description</td>
267 <td>Required</td>
268 </tr>
269 <tr>
270 <td>file</td>
271 <td>file to commit</td>
272 <td>No</td>
273 </tr>
274 <tr>
275 <td>recurse</td>
276 <td>Set to &quot;false&quot; to operate on single directory only.
277 Default is &quot;true&quot;<BR>Apply only when dir attribute is
278 set.
279 </td>
280 <td>No</td>
281 </tr>
282 <tr>
283 <td>dir</td>
284 <td>directory to commit</td>
285 <td>No</td>
286 </tr>
287 <tr>
288 <td>message</td>
289 <td>commit message</td>
290 <td>Yes</td>
291 </tr>
292</table>
293<p>Parameters specified as nested elements :
294<ul>
295 <li>fileset<BR>
296 Filesets are used to select sets of files to commit.
297 </li>
298</ul>
299</p>
300
301<H3><a name="copy">copy</a></H3>
302<p>Duplicate something in working copy or repository, remembering
303history.<BR>
304source and destination can each be either a working copy (WC) path or URL:
305<ul>
306 <li>WC-&gt;WC: copy and schedule for addition (with history)</li>
307 <li>WC-&gt;URL: immediately commit a copy of WC to URL</li>
308 <li>URL-&gt;WC: check out URL into WC, schedule for addition</li>
309 <li>URL-&gt;URL: complete server-side copy;&nbsp; used to branch &amp; tag</li>
310</ul>
311</p>
312<br/>
313
314<table>
315 <tr>
316 <td>Attribute</td>
317 <td>Description</td>
318 <td>Required</td>
319 </tr>
320 <tr>
321 <td>srcPath</td>
322 <td>source path</td>
323 <TD ROWSPAN=2>One of the two</td>
324 </tr>
325 <tr>
326 <td>srcUrl</td>
327 <td>source url</td>
328 </tr>
329 <tr>
330 <td>testPath</td>
331 <td>destination path</td>
332 <TD ROWSPAN=2>One of the two</td>
333 </tr>
334 <tr>
335 <td>destUrl</td>
336 <td>destination url</td>
337 </tr>
338 <tr>
339 <td>message</td>
340 <td>commit message</td>
341 <td>when destUrl is set</td>
342 </tr>
343 <tr>
344 <td>revision</td>
345 <td>revision to copy from (when srcUrl is set)<BR>Possible values
346 are :<BR>- a date with the following format : MM/DD/YYYY HH:MM
347 AM_PM<BR>- a revision number<BR>- HEAD, BASE, COMMITED or
348 PREV<BR>Default is &quot;HEAD&quot;
349 </td>
350 <td>no</td>
351 </tr>
352</table>
353
354<H3><a name="createRepository">createRepository</a></H3>
355<p>Create a new, empty repository at path.</p>
356<table>
357 <tr>
358 <td>Attribute</td>
359 <td>Description</td>
360 <td>Required</td>
361 </tr>
362 <tr>
363 <td>path</td>
364 <td>Path where to create the new repository</td>
365 <td>Yes</td>
366 </tr>
367</table>
368<div class="sample" style="width: 597px; height: 77px">
369<p>Example: <br>
370<FONT FACE="Courier New"><FONT SIZE=2><FONT COLOR="#000080">&lt;svn</FONT>
371<FONT COLOR="#000080">javahl=</FONT><FONT COLOR="#008000">&quot;false&quot;</FONT><FONT COLOR="#000080">&gt;<BR>&lt;createRepository</FONT>
372<FONT COLOR="#000080">path=</FONT><FONT COLOR="#008000">&quot;repository&quot;</FONT><FONT COLOR="#000080">/&gt;<BR>&lt;/svn&gt;</FONT></FONT></FONT>
373</p>
374</div>
375
376<H3><a name="delete">delete</a></H3>
377<p>If run on a working copy target, the item is scheduled for
378deletion upon the next commit.&nbsp; Files, and directories that have
379not been committed, are immediately removed from the working copy.&nbsp;
380<BR>The command will not remove targets that are, or contain,
381unversioned or modified items; use the force attribute to override
382this behaviour.
383<BR>If run on an url, the item is deleted from the repository via an immediate commit.
384</p>
385<table>
386 <tr>
387 <td>Attribute</td>
388 <td>Description</td>
389 <td>Required</td>
390 </tr>
391 <tr>
392 <td>file</td>
393 <td>file to delete</td>
394 <td>No</td>
395 </tr>
396 <tr>
397 <td>url</td>
398 <td>url to delete</td>
399 <td>No</td>
400 </tr>
401 <tr>
402 <td>dir</td>
403 <td>directory to delete</td>
404 <td>No</td>
405 </tr>
406 <tr>
407 <td>message</td>
408 <td>commit message</td>
409 <td>when url attribute is set</td>
410 </tr>
411 <tr>
412 <td>force</td>
413 <td>default is &quot;false&quot;</td>
414 <td>No</td>
415 </tr>
416</table>
417<p>Parameters specified as nested elements :
418<ul>
419 <li>fileset<BR>
420 Filesets are used to select sets of files to delete..
421 </li>
422</ul>
423</p>
424
425<H3><a name="diff">diff</a></H3>
426<p>Display the differences between two paths (oldPath and newPath) or
427two urls (oldUrl and newUrl).
428</p>
429<table>
430 <tr>
431 <td>Attribute</td>
432 <td>Description</td>
433 <td>Required</td>
434 </tr>
435 <tr>
436 <td>oldPath</td>
437 <td>If oldUrl is not set, defaults to the path '.'</td>
438 <td>No</td>
439 </tr>
440 <tr>
441 <td>oldUrl</td>
442 <td>&nbsp;</td>
443 <td>No</td>
444 </tr>
445 <tr>
446 <td>oldTargetRevision</td>
447 <td>defaults to BASE or, if oldUrl is set, to HEAD</td>
448 <td>No</td>
449 </tr>
450 <tr>
451 <td>newPath</td>
452 <td>defaults to oldPath if oldUrl is not set</td>
453 <td>No</td>
454 </tr>
455 <tr>
456 <td>newUrl</td>
457 <td>&nbsp;</td>
458 <td>No</td>
459 </tr>
460 <tr>
461 <td>newTargetRevision</td>
462 <td>defaults to the current working version or, if newUrl is set, to HEAD</td>
463 <td>No</td>
464 </tr>
465 <tr>
466 <td>outFile</td>
467 <td>Default is 'patch'</td>
468 <td>No</td>
469 </tr>
470 <tr>
471 <td>recurse</td>
472 <td>Set to &quot;false&quot; to operate on single directory only.
473 Default is &quot;true&quot;
474 </td>
475 <td>No</td>
476 </tr>
477</table>
478<div class="sample" style="width: 749px; height: 80px">
479<p>Example : diff between BASE and current working version <br>
480<FONT SIZE=2 FACE="Courier New"><FONT COLOR="#000080">&lt;svn</FONT>
481<FONT COLOR="#000080">javahl=</FONT><FONT COLOR="#008000">&quot;${javahl}&quot;</FONT><FONT COLOR="#000080">&gt;<BR>&lt;diff</FONT>
482<FONT COLOR="#000080">oldPath=</FONT><FONT COLOR="#008000">&quot;workingcopy/diffTest/file.txt&quot;</FONT>
483<FONT COLOR="#000080">outFile=</FONT><FONT COLOR="#008000">&quot;workingcopy/diffTest/patch.txt&quot;</FONT><FONT COLOR="#000080">/&gt;</FONT></FONT>
484<FONT COLOR="#000080"><FONT FACE="Courier New"><FONT SIZE=2><BR>&lt;/svn&gt;</FONT></FONT></FONT>
485</p>
486</div>
487
488<H3><a name="export">export</a></H3>
489<p>
490<ol>
491 <li>
492 Exports a clean directory tree from the repository specified by <CODE>srcurl</CODE>,
493 at revision <CODE>revision</CODE> if it is given, otherwise at HEAD, into <CODE>destPath</CODE>.
494 </li>
495 <li>Exports a clean directory tree from the working copy specified by
496 <CODE>srcPath</CODE> into <CODE>destPath</CODE>.&nbsp; all local changes will be preserved,
497 but files not under revision control will not be copied.</li>
498</ol>
499</p>
500<br/>
501<table>
502 <tr>
503 <td>Attribute</td>
504 <td>Description</td>
505 <td>Required</td>
506 </tr>
507 <tr>
508 <td>srcUrl</td>
509 <td>source url to export from</td>
510 <td>One of the two</td>
511 </tr>
512 <tr>
513 <td>srcPath</td>
514 <td>source path to export from</td>
515 </tr>
516 <tr>
517 <td>destPath</td>
518 <td>destination path</td>
519 <td>Yes</td>
520 </tr>
521 <tr>
522 <td>revision</td>
523 <td>revision of the source url to export from. Defaults is
524 &quot;HEAD&quot;<BR>Possible values are :<BR>- a date with the
525 following format : MM/DD/YYYY HH:MM AM_PM<BR>- a revision number<BR>-
526 HEAD, BASE, COMMITED or PREV
527 </td>
528 <td>No</td>
529 </tr>
530</table>
531
532<H3><a name="ignore">ignore</a></H3>
533<p>Add a given file or a pattern to the ignored files list (modifies
534svn:ignore property)</p>
535<table>
536 <tr>
537 <td>Attribute</td>
538 <td>Description</td>
539 <td>Required</td>
540 </tr>
541 <tr>
542 <td>file</td>
543 <td>file to ignore</td>
544 <td>One of the two</td>
545 </tr>
546 <tr>
547 <td>dir</td>
548 <td>directory on which we will update svn:ignore property</td>
549 </tr>
550 <tr>
551 <td>pattern</td>
552 <td>pattern to add to svn:ignore on the directory<BR>Only when dir
553 is set
554 </td>
555 <td>Yes</td>
556 </tr>
557 <tr>
558 <td>recurse</td>
559 <td>Set to &quot;true&quot; to add the pattern recursively to
560 directories. Default is &quot;false&quot;<BR>Only when dir is set
561 </td>
562 <td>No</td>
563 </tr>
564</table>
565<div class="sample" style="width: 663px; height: 42px">
566<p>Example :<BR>
567<FONT SIZE=2><FONT FACE="Courier New"><FONT COLOR="#000080">&lt;ignore</FONT>
568<FONT COLOR="#000080">dir=</FONT><FONT COLOR="#008000">&quot;workingcopy/ignoreTest/dir1&quot;</FONT>
569<FONT COLOR="#000080">pattern=</FONT><FONT COLOR="#008000">&quot;*.ignore&quot;</FONT>
570<FONT COLOR="#000080">recurse=</FONT><FONT COLOR="#008000">&quot;true&quot;</FONT><FONT COLOR="#000080">/&gt;</FONT></FONT></FONT>
571</p>
572</div>
573
574<H3><a name="import">import</a></H3>
575<p>Commit an unversioned file or tree into the repository.<BR>
576Recursively commit a copy of <CODE>path</CODE> to <CODE>url</CODE>.<BR>
577If <CODE>newEntry </CODE>is not set, copy top-level contents of <CODE>path</CODE>into<CODE>url</CODE>directly.&nbsp;
578Otherwise, create <CODE>newEntry </CODE>underneath <CODE>url </CODE>and begin copy there.
579</p>
580<table>
581 <tr>
582 <td>Attribute</td>
583 <td>Description</td>
584 <td>Required</td>
585 </tr>
586 <tr>
587 <td>path</td>
588 <td>source path to export from</td>
589 <td>Yes</td>
590 </tr>
591 <tr>
592 <td>url</td>
593 <td>source url to import to</td>
594 <td>Yes</td>
595 </tr>
596 <tr>
597 <td>newEntry</td>
598 <td>&nbsp;</td>
599 <td>No</td>
600 </tr>
601 <tr>
602 <td>message</td>
603 <td>commit message</td>
604 <td>Yes</td>
605 </tr>
606 <tr>
607 <td>recurse</td>
608 <td>Set to &quot;false&quot; to operate on single directory only.
609 Default is &quot;true&quot;
610 </td>
611 <td>False</td>
612 </tr>
613</table>
614
615<H3><a name="keywordsset">keywordsset</a></H3>
616<p>Keywordsset controls which keywords will be substituted on the
617given files. Valid keywords are:
618<ul>
619 <li>URL, HeadURL : The URL for the head version of the object.</li>
620 <li>Author, LastChangedBy : The last person to modify the file.</li>
621 <li>Date, LastChangedDate : The date/time the object was last modified.</li>
622 <li>Rev, LastChangedRevision : The last revision the object changed.</li>
623 <li>Id : A compressed summary of the previous</li>
624</ul>
625</p>
626<br/>
627<table>
628 <tr>
629 <td>Attribute</td>
630 <td>Description</td>
631 <td>Required</td>
632 </tr>
633 <tr>
634 <td>file</td>
635 <td>File for which keywords will be substituted</td>
636 <td>Either file, dir or filesets</td>
637 </tr>
638 <tr>
639 <td>dir</td>
640 <td>All files in this directory will have their keywords substituted (recursively)</td>
641 <td>Either file, dir or filesets</td>
642 </tr>
643 <tr>
644 <td>keywords</td>
645 <td>The keywords to substitute on the given files</td>
646 <td>No</td>
647 </tr>
648 <tr>
649 <td>HeadURL/URL<BR>Author, LastChangedBy<BR>Date,
650 LastChangedDate<BR>Rev, LastChangedRevision<BR>Id
651 </td>
652 <td>Set to &ldquo;true&ldquo; the keyword to substitute it on the
653 given file.
654 </td>
655 <td>No</td>
656 </tr>
657</table>
658<p>Parameters specified as nested elements :
659<ul>
660 <li>fileset<BR>
661 Filesets are used to select sets of files on which to apply keywords substitution.
662 </li>
663</ul>
664</p>
665
666<H3><a name="keywordsadd">keywordsadd</a></H3>
667<p>Keywordsadd add some keywords to be substituted on the given
668files. Present keywords are not modified.<BR>
669The attributes are the same than for keywordsset command.</p>
670
671<H3><a name="keywordsremove">keywordsremove</a></H3>
672<p>Keywordsadd remove some keywords to be substituted on the given
673files. Other present keywords are not modified.<BR>
674The attributes are the same than for keywordsset command.</p>
675
676<H3><a name="mkdir">mkdir</a></H3>
677<p>Create a new directory under revision control.<BR>
678If target is a working copy path the directory is scheduled for addition in the
679working copy.&nbsp; If target is an url the directory is created in
680the repository via an immediate commit.&nbsp; <BR>
681In both cases all the intermediate directories must already exist.
682</p>
683<table>
684 <tr>
685 <td>Attribute</td>
686 <td>Description</td>
687 <td>Required</td>
688 </tr>
689 <tr>
690 <td>path</td>
691 <td>path to create</td>
692 <td>One of the two</td>
693 </tr>
694 <tr>
695 <td>url</td>
696 <td>url to create</td>
697 </tr>
698 <tr>
699 <td>message</td>
700 <td>commit message</td>
701 <td>Yes</td>
702 </tr>
703</table>
704
705<H3><a name="move">move</a></H3>
706<p>Move/rename something in working copy or repository.<BR><BR>&nbsp;
707cource and destination can both be working copy (WC) paths or
708URLs:<BR>&nbsp;&nbsp;&nbsp; WC&nbsp; -&gt; WC:&nbsp;&nbsp; move and
709schedule for addition (with history)<BR>&nbsp;&nbsp;&nbsp; URL -&gt;
710URL:&nbsp; complete server-side rename.
711</p>
712<table>
713 <tr>
714 <td>Attribute</td>
715 <td>Description</td>
716 <td>Required</td>
717 </tr>
718 <tr>
719 <td>srcPath</td>
720 <td>source path</td>
721 <td ROWSPAN=2>One of the two</td>
722 </tr>
723 <tr>
724 <td>srcUrl</td>
725 <td>source url</td>
726 </tr>
727 <tr>
728 <td>destPath</td>
729 <td>destination path</td>
730 <td ROWSPAN=2>One of the two</td>
731 </tr>
732 <tr>
733 <td>destUrl</td>
734 <td>destination url</td>
735 </tr>
736 <tr>
737 <td>message</td>
738 <td>commit message</td>
739 <td>Yes</td>
740 </tr>
741</table>
742
743<H3><a name="propdel">propdel</a></H3>
744<p>Remove a property from files or dirs.</p>
745<table>
746 <tr>
747 <td>Attribute</td>
748 <td>Description</td>
749 <td>Required</td>
750 </tr>
751 <tr>
752 <td>path</td>
753 <td>path of the file or directory on which to delete the property</td>
754 <td>Yes</td>
755 </tr>
756 <tr>
757 <td>name</td>
758 <td>name of the property to delete</td>
759 <td>Yes</td>
760 </tr>
761 <tr>
762 <td>recurse</td>
763 <td>if set, property will be removed recursively</td>
764 <td>No</td>
765 </tr>
766</table>
767
768<H3><a name="propget">propget</a></H3>
769<p>Get a property from a file or a directory.</p>
770<table>
771 <tr>
772 <td>Attribute</td>
773 <td>Description</td>
774 <td>Required</td>
775 </tr>
776 <tr>
777 <td>path</td>
778 <td>path of the file or directory on which to get the property</td>
779 <td>Yes</td>
780 </tr>
781 <tr>
782 <td>name</td>
783 <td>name of the property to get</td>
784 <td>Yes</td>
785 </tr>
786 <tr>
787 <td>property</td>
788 <td>the name of the property to set with the value of the svn property</td>
789 <td ROWSPAN=2>One of the two</td>
790 </tr>
791 <tr>
792 <td>file</td>
793 <td>file that will contain the value of the property</td>
794 </tr>
795</table>
796<div class="sample" style="width: 800px; height: 48px">
797<p>
798Example :<br>
799<FONT FACE="Courier New"><FONT SIZE=2><FONT COLOR="#000080">&lt;propget</FONT>
800<FONT COLOR="#000080">path=</FONT><FONT COLOR="#008000">&quot;workingcopy/propTest/file.png&quot;</FONT>
801<FONT COLOR="#000080">name=</FONT><FONT COLOR="#008000">&quot;svn:mime-type&quot;</FONT>
802<FONT COLOR="#000080">property=</FONT><FONT COLOR="#008000">&quot;propTest.mimeType&quot;</FONT><FONT COLOR="#000080">/&gt;</FONT></FONT></FONT>
803</p>
804</div>
805
806<H3><a name="propset">propset</a></H3>
807<p>Set a property on files or dirs.</p>
808<table>
809 <tr>
810 <td>Attribute</td>
811 <td>Description</td>
812 <td>Required</td>
813 </tr>
814 <tr>
815 <td>path</td>
816 <td>path of the file or directory on which to set the property</td>
817 <td>Yes</td>
818 </tr>
819 <tr>
820 <td>name</td>
821 <td>name of the property to set</td>
822 <td>Yes</td>
823 </tr>
824 <tr>
825 <td>value</td>
826 <td>the value of the property</td>
827 <td ROWSPAN=2>One of the two</td>
828 </tr>
829 <tr>
830 <td>file</td>
831 <td>the file that will be used as a value</td>
832 </tr>
833 <tr>
834 <td>recurse</td>
835 <td>if set, property will be set recursively</td>
836 <td>No</td>
837 </tr>
838</table>
839<p>
840<I>Note:</I>svn recognizes the following special versioned properties but
841will store any arbitrary properties set:
842<ul>
843 <li>svn:ignore : A newline separated list of file patterns to ignore. </li>
844 <li>svn:keywords : Keywords to be expanded.&nbsp; Valid keywords are:
845 <ul>
846 <li>URL, HeadURL : The URL for the head version of the object.</li>
847 <li>Author, LastChangedBy : The last person to modify the file.</li>
848 <li>Date, LastChangedDate : The date/time the object was last modified.</li>
849 <li>Rev, LastChangedRevision : The last revision the object changed.</li>
850 <li>Id : A compressed summary of the previous 4 keywords. </li>
851 </ul>
852 </li>
853 <li>svn:executable : If present, make the file executable. This property cannot be set on a directory.&nbsp;
854 A non-recursive attempt will fail, and a recursive attempt will set
855 the property only on the file children of the directory
856 </li>
857 <li>svn:eol-style : One of 'native', 'LF', 'CR', 'CRLF'. </li>
858 <li>svn:mime-type : The mimetype of the file.&nbsp; Used to determine whether to merge the file, and
859 how to serve it from Apache. <BR>
860 A mimetype beginning with 'text/' (or an absent mimetype) is treated as text.&nbsp; Anything else is
861 treated as binary.
862 </li>
863 <li>svn:externals : A newline separated list of module
864 specifiers, each of which consists of a relative directory path,
865 optional revision flags, and an URL.&nbsp; For example<BR>
866 foo http://example.com/repos/zig <br>
867 foo/bar -r 1234 http://example.com/repos/zag
868 </li>
869</ul>
870</p>
871
872<H3><a name="revert">revert</a></H3>
873<p>Restore pristine working copy file (undo most local edits).</p>
874<table>
875 <tr>
876 <td>Attribute</td>
877 <td>Description</td>
878 <td>Required</td>
879 </tr>
880 <tr>
881 <td>file</td>
882 <td>file to revert</td>
883 <td>No</td>
884 </tr>
885 <tr>
886 <td>dir</td>
887 <td>directory to revert</td>
888 <td>No</td>
889 </tr>
890 <tr>
891 <td>recurse</td>
892 <td>Set to &quot;false&quot; to operate on a single directory only
893 (applies only when <CODE>dir</CODE> attribute is set). Default is
894 &quot;false&quot;</td>
895 <td>No</td>
896 </tr>
897 <tr>
898 <td>revision</td>
899 <td>revision. Defaults is &quot;HEAD&quot;<BR>Possible values are
900 :<BR>- a date with the following format : MM/DD/YYYY HH:MM AM_PM<BR>-
901 a revision number<BR>- HEAD, BASE, COMMITED or PREV</td>
902 <td>No</td>
903 </tr>
904</table>
905<p>Parameters specified as nested elements :
906<ul>
907 <li>fileset<BR>
908 Filesets are used to select sets of files to revert.
909 </li>
910</ul>
911</p>
912
913<H3><a name="status">status</a></H3>
914<p>Get the status of working copy files and directories.</p>
915<table>
916 <tr>
917 <td>Attribute</td>
918 <td>Description</td>
919 <td>Required</td>
920 </tr>
921 <tr>
922 <td>path</td>
923 <td>path of the file or directory</td>
924 <td>Yes</td>
925 </tr>
926 <tr>
927 <td>textStatusProperty</td>
928 <td>Name of the property to set to the status of the item</td>
929 <td>No</td>
930 </tr>
931 <tr>
932 <td>propStatusProperty</td>
933 <td>Name of the property to set to the status of the item
934 properties</td>
935 <td>No</td>
936 </tr>
937 <tr>
938 <td>revisionProperty</td>
939 <td>Name of the property to set to the revision of the item (or &ldquo;&rdquo;
940 if unversioned)</td>
941 <td>No</td>
942 </tr>
943 <tr>
944 <td>lastChangedRevisionProperty</td>
945 <td>Name of the property to set to the last changed revision of the
946 item (or &ldquo;&rdquo; if unversioned)</td>
947 <td>No</td>
948 </tr>
949 <tr>
950 <td>lastCommitAuthorProperty</td>
951 <td>Name of the property to set to the last commit author (or &ldquo;&rdquo;
952 if unversioned)</td>
953 <td>No</td>
954 </tr>
955 <tr>
956 <td>urlProperty</td>
957 <td>Name of the property to set to the url of the item</td>
958 <td>No</td>
959 </tr>
960</table>
961<p>
962The value of TextStatusProperty can be :
963<ul>
964 <li>non-svn</li>
965 <li>normal : no modifications</li>
966 <li>added</li>
967 <li>missing : item is missing (removed by non-svn command)</li>
968 <li>incomplete</li>
969 <li>deleted</li>
970 <li>replaced</li>
971 <li>modified</li>
972 <li>merged</li>
973 <li>conflicted</li>
974 <li>obstructed</li>
975 <li>ignored</li>
976 <li>external</li>
977 <li>unversioned</li>
978</ul>
979The value of propStatusProperty can be :
980<ul>
981 <li>normal : no modifications</li>
982 <li>conflicted</li>
983 <li>modified</li>
984</ul>
985</p>
986<p></p>
987<div class="sample">
988<p>
989Example : <br>
990<FONT FACE="Courier New"><FONT SIZE=2><FONT COLOR="#000080">&lt;status</FONT>
991<FONT COLOR="#000080">path=</FONT><FONT COLOR="#008000">&quot;workingcopy/statusTest/added.txt&quot;</FONT>
992</FONT></FONT>
993<FONT COLOR="#000080"><FONT FACE="Courier New"><FONT SIZE=2>textStatusProperty=<FONT COLOR="#008000">&quot;testStatus.textStatus&quot;</FONT></FONT></FONT></FONT>
994<FONT FACE="Courier New"><FONT SIZE=2><FONT COLOR="#000080">propStatusProperty=</FONT><FONT COLOR="#008000">&quot;testStatus.propStatus&quot;</FONT></FONT></FONT>
995<FONT FACE="Courier New"><FONT SIZE=2><FONT COLOR="#000080">lastChangedRevisionProperty=</FONT><FONT COLOR="#008000">&quot;testStatus.lastCommitRevision&quot;</FONT></FONT></FONT>
996<FONT COLOR="#000080"><FONT FACE="Courier New"><FONT SIZE=2>revisionProperty=<FONT COLOR="#008000">&quot;testStatus.revision&quot;</FONT></FONT></FONT></FONT>
997<FONT FACE="Courier New"><FONT SIZE=2><FONT COLOR="#000080">lastCommitAuthorProperty=</FONT><FONT COLOR="#008000">&quot;testStatus.lastCommitAuthor&quot;</FONT></FONT></FONT>
998</p>
999</div>
1000
1001<H3><a name="switch">switch</a></H3>
1002<p>Update the working copy to mirror a new URL within the repository.
1003This behaviour is similar to 'svn update', and is the way to move a
1004working copy to a branch or tag within the same repository.</p>
1005<table>
1006 <tr>
1007 <td>Attribute</td>
1008 <td>Description</td>
1009 <td>Required</td>
1010 </tr>
1011 <tr>
1012 <td>path</td>
1013 <td>The working copy to switch to the given url</td>
1014 <td>Yes</td>
1015 </tr>
1016 <tr>
1017 <td>url</td>
1018 <td>The url to switch to</td>
1019 <td>Yes</td>
1020 </tr>
1021 <tr>
1022 <td>recurse</td>
1023 <td>Set to &quot;false&quot; to operate on a single directory only.
1024 Default is &quot;true&quot;</td>
1025 <td>No</td>
1026 </tr>
1027 <tr>
1028 <td>revision</td>
1029 <td>revision. Defaults is &quot;HEAD&quot;<BR>Possible values are
1030 :<BR>- a date with the following format : MM/DD/YYYY HH:MM AM_PM<BR>-
1031 a revision number<BR>- HEAD, BASE, COMMITED or PREV</td>
1032 <td>No</td>
1033 </tr>
1034</table>
1035<div class="sample" style="width: 674px; height: 85px">
1036<p>
1037Example :
1038<FONT FACE="Courier New"><FONT SIZE=2><FONT COLOR="#000080"><br>&lt;svn&gt;</FONT></FONT></FONT>
1039<FONT FACE="Courier New"><FONT SIZE=2><FONT COLOR="#000080"><br>&lt;switch</FONT>
1040<FONT COLOR="#000080">path=</FONT><FONT COLOR="#008000">&quot;workingcopy/switchTest&quot;</FONT>
1041<FONT COLOR="#000080">url=</FONT><FONT COLOR="#008000">&quot;${urlRepos}/switchTestBranch&quot;</FONT><FONT COLOR="#000080">/&gt;</FONT></FONT></FONT>
1042<FONT COLOR="#000080"><FONT FACE="Courier New"><FONT SIZE=2><br>&lt;/svn&gt;</FONT></FONT></FONT>
1043</p>
1044</div>
1045
1046<H3><a name="update">update</a></H3>
1047<p>Bring changes from the repository into the working copy.<BR>If no
1048revision given, bring working copy up-to-date with HEAD rev.&nbsp;
1049Else synchronize working copy to revision.</p>
1050<table>
1051 <tr>
1052 <td>Attribute</td>
1053 <td>Description</td>
1054 <td>Required</td>
1055 </tr>
1056 <tr>
1057 <td>file</td>
1058 <td>file to update</td>
1059 <td>No</td>
1060 </tr>
1061 <tr>
1062 <td>dir</td>
1063 <td>directory to update</td>
1064 <td>No</td>
1065 </tr>
1066 <tr>
1067 <td>recurse</td>
1068 <td>Set to &quot;false&quot; to operate on a single directory only
1069 (applies only when <CODE>dir</CODE> attribute is set). Default is
1070 &quot;true&quot;</td>
1071 <td>No</td>
1072 </tr>
1073 <tr>
1074 <td>revision</td>
1075 <td>revision. Defaults is &quot;HEAD&quot;<BR>Possible values are
1076 :<BR>- a date with the following format : MM/DD/YYYY HH:MM AM_PM<BR>-
1077 a revision number<BR>- HEAD, BASE, COMMITED or PREV</td>
1078 <td>No</td>
1079 </tr>
1080</table>
1081Parameters specified as nested elements :
1082<ul>
1083<li>fileset<BR>
1084Filesets are used to select sets of files to update.
1085</li>
1086</ul>
1087
1088<H2>Examples</H2>
1089
1090<p>
1091<div class="sample" style="width: 843px; height: 128px">
1092<FONT FACE="Courier New"><FONT SIZE=2><FONT COLOR="#000080">&lt;svn</FONT><FONT COLOR="#000080">&gt;</FONT></FONT></FONT><br>
1093<FONT COLOR="#000080"> <FONT FACE="Courier New"><FONT SIZE=2>&lt;delete&gt;</FONT></FONT></FONT><br>
1094<FONT COLOR="#000080"> <FONT FACE="Courier New"><FONT SIZE=2>&lt;fileset</FONT>
1095<FONT COLOR="#000080">dir=</FONT><FONT COLOR="#008000">&quot;workingcopy/deleteTest&quot;</FONT><FONT COLOR="#000080">&gt;</FONT></FONT></FONT><br>
1096<FONT COLOR="#000080"> <FONT FACE="Courier New"><FONT SIZE=2>&lt;include</FONT>
1097<FONT COLOR="#000080">name=</FONT><FONT COLOR="#008000">&quot;**/*.del&quot;</FONT><FONT COLOR="#000080">/&gt;</FONT></FONT></FONT>
1098<FONT COLOR="#000080"> <FONT FACE="Courier New"><FONT SIZE=2>&lt;/fileset&gt;</FONT></FONT></FONT><br>
1099<FONT COLOR="#000080"> <FONT FACE="Courier New"><FONT SIZE=2>&lt;/delete&gt;</FONT></FONT></FONT><br>
1100<FONT COLOR="#000080"> <FONT FACE="Courier New"><FONT SIZE=2>&lt;commit</FONT>
1101<FONT COLOR="#000080">message=</FONT><FONT COLOR="#008000">&quot;commit
1102deleted files&quot;</FONT> <FONT COLOR="#000080">dir=</FONT><FONT COLOR="#008000">&quot;workingcopy/deleteTest&quot;</FONT><FONT COLOR="#000080">/&gt;</FONT></FONT></FONT><br>
1103<FONT FACE="Courier New"><FONT SIZE=2><FONT COLOR="#000080">&lt;/svn&gt;</FONT></FONT></FONT>
1104</div>
1105deletes some files from repository (and commit changes)
1106</p>
1107
1108<p>
1109<div class="sample" style="width: 842px; height: 117px">
1110<FONT FACE="Courier New"><FONT SIZE=2><FONT COLOR="#000080">&lt;svn javahl=&quot;false&quot;&gt;</FONT></FONT></FONT><br>
1111<FONT COLOR="#000080"> <FONT FACE="Courier New"><FONT SIZE=2>&lt;add</FONT>
1112<FONT COLOR="#000080">dir=</FONT><FONT COLOR="#008000">&quot;workingcopy/propTest&quot;</FONT><FONT COLOR="#000080">/&gt;</FONT></FONT></FONT><br>
1113<FONT COLOR="#000080"> <FONT FACE="Courier New"><FONT SIZE=2>&lt;commit</FONT>
1114<FONT COLOR="#000080">message=</FONT><FONT COLOR="#008000">&quot;propTest
1115added&quot;</FONT> <FONT COLOR="#000080">dir=</FONT><FONT COLOR="#008000">&quot;workingcopy/propTest&quot;</FONT><FONT COLOR="#000080">/&gt;</FONT></FONT></FONT><br>
1116 <FONT FACE="Courier New"><FONT SIZE=2><FONT COLOR="#000080">&lt;propset</FONT>
1117<FONT COLOR="#000080">path=</FONT><FONT COLOR="#008000">&quot;workingcopy/propTest/file.png&quot;</FONT>
1118<FONT COLOR="#000080">name=</FONT><FONT COLOR="#008000">&quot;svn:mime-type&quot;</FONT>
1119<FONT COLOR="#000080">value=</FONT><FONT COLOR="#008000">&quot;image/png&quot;</FONT><FONT COLOR="#000080">/&gt;</FONT></FONT></FONT><br>
1120 <FONT FACE="Courier New"><FONT SIZE=2><FONT COLOR="#000080">&lt;propset</FONT>
1121<FONT COLOR="#000080">path=</FONT><FONT COLOR="#008000">&quot;workingcopy/propTest/file.png&quot;</FONT>
1122<FONT COLOR="#000080">name=</FONT><FONT COLOR="#008000">&quot;myPicture&quot;</FONT>
1123<FONT COLOR="#000080">file=</FONT><FONT COLOR="#008000">&quot;workingcopy/propTest/icon.gif&quot;</FONT><FONT COLOR="#000080">/&gt;</FONT></FONT></FONT><br>
1124<FONT FACE="Courier New"><FONT SIZE=2><FONT COLOR="#000080">&lt;/svn&gt;</FONT></FONT></FONT>
1125</div>add my_repos/propTest to repository and set two properties on file.png <br>
1126subversion command line interface is used (javahl=&quot;false&quot;).
1127</p>
1128
1129<HR>
1130
1131</BODY>
1132</HTML>
Note: See TracBrowser for help on using the repository browser.