My favorites | Sign in
Project Home Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
<chapter id="svn.ref">
<title>Subversion Complete Reference</title>

<para>This chapter is intended to be a complete reference to using
Subversion. This includes the command-line client
(<command>svn</command>) and all its subcommands, as well as the
repository administration programs (<command>svnadmin</command>
and <command>svnlook</command>) and their respective
subcommands.</para>


<!-- ================================================================= -->
<!-- ================================================================= -->
<!-- ================================================================= -->
<sect1 id="svn.ref.svn">
<title>The Subversion Command-Line Client: <command>svn</command></title>

<para>To use the command-line client, type
<command>svn</command>, the subcommand you wish to use,
<footnote>
<para>Well, you don't need a subcommand to use the
<option>--version</option> option, but we'll get to that in
just a minute.</para>
</footnote>
and any options or targets that you wish to operate on&mdash;the
subcommand and the options need not appear in a specific order.
For example, all of the following are valid ways to
use <command>svn status</command>:</para>

<screen>
$ svn -v status
$ svn status -v
$ svn status -v myfile
</screen>

<para>You can find many more examples of how to use most client
commands in <xref linkend="svn.tour"/> and commands for managing
properties in <xref linkend="svn.advanced.props"/>.</para>

<!-- =============================================================== -->
<sect2 id="svn.ref.svn.sw">
<title>svn Options</title>

<para>While Subversion has different options for its
subcommands, all options exist in a single
namespace&mdash;that is, each option is guaranteed to mean the
same thing regardless of the subcommand you use it with. For
example, <option>--verbose</option> (<option>-v</option>)
always means <quote>verbose output,</quote> regardless of the
subcommand you use it with.</para>

<para>The <command>svn</command> command-line client usually
exits quickly with an error if you pass it an option which
does not apply to the specified subcommand. But as of
Subversion 1.5, several of the options which apply to
all&mdash;or nearly all&mdash;of the subcommands have been
deemed acceptable by all subcommands, even if they have no
effect on some of them. They appear grouped together in the
command-line client's usage messages as global options. This
was done to assist folks who write scripts which wrap the
command-line client. These global options are as
follows:</para>

<variablelist>

<varlistentry>
<term><option>--config-dir</option>
<replaceable>DIR</replaceable></term>
<listitem>
<para>Instructs Subversion to read configuration
information from the specified directory instead of the
default location (<filename>.subversion</filename> in
the user's home directory).</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--no-auth-cache</option></term>
<listitem>
<para>Prevents caching of authentication information
(e.g., username and password) in the Subversion
runtime configuration directories.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--non-interactive</option></term>
<listitem>
<para>Disables all interactive prompting. Some examples
of interactive prompting include requests for
authentication credentials and conflict resolution
decisions. This is useful if you're running Subversion
inside an automated script and it's more appropriate
to have Subversion fail than to prompt for more
information.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--password</option>
<replaceable>PASSWD</replaceable></term>
<listitem>
<para>Specifies the password to use when authenticating
against a Subversion server. If not provided, or if
incorrect, Subversion will prompt you for this
information as needed.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--username</option>
<replaceable>NAME</replaceable></term>
<listitem>
<para>Specifies the username to use when authenticating
against a Subversion server. If not provided, or if
incorrect, Subversion will prompt you for this
information as needed.</para>
</listitem>
</varlistentry>

</variablelist>

<para>The rest of the options apply and are accepted by only a
subset of the subcommand. They are as follows:</para>

<variablelist>

<varlistentry>
<term><option>--accept</option>
<replaceable>ACTION</replaceable></term>
<listitem>
<para>Specifies an action for automatic conflict resolution.
Possible actions are <literal>postpone</literal>,
<literal>base</literal>, <literal>mine-full</literal>,
<literal>theirs-full</literal>, <literal>edit</literal>, and
<literal>launch</literal>.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--auto-props</option></term>
<listitem>
<para>Enables auto-props, overriding the
<literal>enable-auto-props</literal> directive in the
<filename>config</filename> file.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--change</option> (<option>-c</option>)
<replaceable>ARG</replaceable></term>
<listitem>
<para>Used as a means to refer to a specific
<quote>change</quote> (a.k.a. a revision). This option is
syntactic sugar for <quote>-r ARG-1:ARG</quote>.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--changelist</option>
<replaceable>ARG</replaceable></term>
<listitem>
<para>Instructs Subversion to operate only on members of the changelist named
<replaceable>ARG</replaceable>. You can use this option
multiple times to specify sets of changelists.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--cl</option>
<replaceable>ARG</replaceable></term>
<listitem>
<para>An alias for the
<option>--changelist</option> option.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--depth</option>
<replaceable>ARG</replaceable></term>
<listitem>
<para>Instructs Subversion to limit the scope of an operation to a particular tree
depth. <replaceable>ARG</replaceable> is one of
<literal>empty</literal>, <literal>files</literal>,
<literal>immediates</literal>, or
<literal>infinity</literal>.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--diff-cmd</option>
<replaceable>CMD</replaceable></term>
<listitem>
<para>Specifies an external program to use to show
differences between files. When <command>svn
diff</command> is invoked without this option, it uses
Subversion's internal diff engine, which provides
unified diffs by default. If you want to use an
external diff program, use <option>--diff-cmd</option>.
You can pass options to the diff program with the
<option>--extensions</option> option (more on that later
in this section).</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--diff3-cmd</option>
<replaceable>CMD</replaceable></term>
<listitem>
<para>Specifies an external program to use to merge files.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--dry-run</option></term>
<listitem>
<para>Goes through all the motions of running a command,
but makes no actual changes&mdash;either on disk or in
the repository.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--editor-cmd</option>
<replaceable>CMD</replaceable></term>
<listitem>
<para>Specifies an external program to use to edit a log message
or a property value. See the <literal>editor-cmd</literal>
section in <xref linkend="svn.advanced.confarea.opts.config"/>
for ways to specify a default editor.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--encoding</option> <replaceable>ENC</replaceable></term>
<listitem>
<para>Tells Subversion that your commit message is encoded
in the charset provided. The default is your operating
system's native locale, and you should specify the
encoding if your commit message is in any other
encoding.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--extensions</option> (<option>-x</option>)
<replaceable>ARGS</replaceable></term>
<listitem>
<para>Specifies an argument or arguments that Subversion
should pass to an external diff command. This option is
valid only when used with the <command>svn
diff</command> or <command>svn merge</command> commands,
with the
<option>--diff-cmd</option> option.
If you wish to pass multiple
arguments, you must enclose all of them in quotes (e.g.,
<userinput>svn diff --diff-cmd /usr/bin/diff -x
"-b -E"</userinput>).</para>
</listitem>

<!-- TODO(fitz): Document -u -b -w and - -ignore-eol-style -->

</varlistentry>

<varlistentry>
<term><option>--file</option> (<option>-F</option>)
<replaceable>FILENAME</replaceable>
</term>
<listitem>
<para>Uses the contents of the named file for the
specified subcommand, though different subcommands do
different things with this content. For example,
<command>svn commit</command> uses the content as a
commit log, whereas <command>svn propset</command> uses
it as a property value.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--force</option></term>
<listitem>
<para>Forces a particular command or operation to run.
Subversion will prevent you from performing some operations
in normal usage, but you can pass the
force option to tell Subversion <quote>I know what I'm
doing as well as the possible repercussions of doing it,
so let me at 'em.</quote> This option is the
programmatic equivalent of doing your own electrical
work with the power on&mdash;if you don't know what
you're doing, you're likely to get a nasty shock.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--force-log</option></term>
<listitem>
<para>Forces a suspicious parameter passed to the
<option>--message</option> (<option>-m</option>) or
<option>--file</option> (<option>-F</option>) option to
be accepted as valid. By default, Subversion will
produce an error if parameters to these options look
like they might instead be targets of the subcommand.
For example, if you pass a versioned file's path to the
<option>--file</option> (<option>-F</option>) option,
Subversion will assume you've made a mistake, that the
path was instead intended as the target of the
operation, and that you simply failed to provide some
other&mdash;unversioned&mdash;file as the source of your
log message. To assert your intent and override these
types of errors, pass the <option>--force-log</option>
option to subcommands that accept log messages.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--help</option> (<option>-h</option>) or
<option>-?</option>)
</term>
<listitem>
<para>If used with one or more subcommands, shows the
built-in help text for each. If used alone, it displays
the general client help text.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--ignore-ancestry</option></term>
<listitem>
<para>Tells Subversion to ignore ancestry when calculating
differences (rely on path contents alone).</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--ignore-externals</option></term>
<listitem>
<para>Tells Subversion to ignore externals definitions and
the external working copies managed by them.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--incremental</option></term>
<listitem>
<para>Prints output in a format suitable for
concatenation.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--keep-changelists</option></term>
<listitem>
<para>Tells Subversion not to delete changelists after committing.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--keep-local</option></term>
<listitem>
<para>Keeps the local copy of a file or directory (used
with the <command>svn delete</command> command).</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--limit</option> (<option>-l</option>)
<replaceable>NUM</replaceable></term>
<listitem>
<para>Shows only the first <replaceable>NUM</replaceable>
log messages.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--message</option> (<option>-m</option>)
<replaceable>MESSAGE</replaceable>
</term>
<listitem>
<para>Indicates that you will specify either a log message
or a lock comment on the command line, following this
option. For example:</para>

<screen>
$ svn commit -m "They don't make Sunday."
</screen>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--new</option> <replaceable>ARG</replaceable></term>
<listitem>
<para>Uses <replaceable>ARG</replaceable> as the newer
target (for use with <command>svn diff</command>).</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--no-auto-props</option></term>
<listitem>
<para>Disables auto-props, overriding the
<literal>enable-auto-props</literal> directive in the
<filename>config</filename> file.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--no-diff-deleted</option></term>
<listitem>
<para>Prevents Subversion from printing differences for
deleted files. The default behavior when you remove a
file is for <command>svn diff</command> to print the
same differences that you would see if you had left
the file but removed all the content.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--no-ignore</option></term>
<listitem>
<para>Shows files in the status listing that would
normally be omitted since they match a pattern in the
<literal>global-ignores</literal> configuration option
or the <literal>svn:ignore</literal> property. See <xref
linkend="svn.advanced.confarea.opts.config"/> and <xref
linkend="svn.advanced.props.special.ignore"/> for more
information.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--no-unlock</option></term>
<listitem>
<para>Tells Subversion not to automatically unlock files (the default commit
behavior is to unlock all files listed as part of the
commit). See <xref linkend="svn.advanced.locking"/> for
more information.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--non-recursive</option> (<option>-N</option>)</term>
<listitem>
<para><emphasis>Deprecated</emphasis>. Stops a subcommand
from recursing into subdirectories. Most subcommands
recurse by default, but some subcommands&mdash;usually
those that have the potential to remove or undo your
local modifications&mdash;do not.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--notice-ancestry</option></term>
<listitem>
<para>Pays attention to ancestry when calculating
differences.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--old</option> <replaceable>ARG</replaceable></term>
<listitem>
<para>Uses <replaceable>ARG</replaceable> as the older
target (for use with <command>svn diff</command>).</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--parents</option></term>
<listitem>
<para>Creates and adds nonexistent or nonversioned parent
subdirectories to the working copy or repository as part
of an operation. This is useful for automatically
creating multiple subdirectories where none currently
exist. If performed on a URL, all the directories will
be created in a single commit.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--quiet</option> (<option>-q</option>)</term>
<listitem>
<para>Requests that the client print only essential
information while performing an operation.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--record-only</option></term>
<listitem>
<para>Marks revisions as merged (for use with
<option>--revision</option>).</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--recursive</option> (<option>-R</option>)</term>
<listitem>
<para>Makes a subcommand recurse into subdirectories.
Most subcommands recurse by default.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--reintegrate</option></term>
<listitem>
<para>Used with the <command>svn merge</command>
subcommand, merges all of the source URL's changes into
the working copy. See
<xref linkend="svn.branchemerge.basicmerging.stayinsync"/>
for details.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--relocate</option> <replaceable>FROM TO
[PATH...]</replaceable></term>
<listitem>
<para>Used with the <command>svn switch</command>
subcommand, changes the location of the repository that
your working copy references. This is useful if the
location of your repository changes and you have an
existing working copy that you'd like to continue to
use. See <command>svn switch</command> for an
example.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--remove</option>
<replaceable>ARG</replaceable></term>
<listitem>
<para>Disassociates <replaceable>ARG</replaceable> from a
changelist</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--revision</option> (<option>-r</option>)
<replaceable>REV</replaceable>
</term>
<listitem>
<para>Indicates that you're going to supply a revision (or
range of revisions) for a particular operation. You can
provide revision numbers, keywords, or dates (in
curly braces) as arguments to the revision option. If
you wish to offer a range of revisions, you can
provide two revisions separated by a colon. For
example:</para>

<screen>
$ svn log -r 1729
$ svn log -r 1729:HEAD
$ svn log -r 1729:1744
$ svn log -r {2001-12-04}:{2002-02-17}
$ svn log -r 1729:{2002-02-17}
</screen>

<para>See <xref linkend="svn.tour.revs.keywords"/> for more
information.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--revprop</option></term>
<listitem>
<para>Operates on a revision property instead of a
property specific to a file or directory. This option
requires that you also pass a revision with the
<option>--revision</option> (<option>-r</option>)
option.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--set-depth</option>
<replaceable>ARG</replaceable></term>
<listitem>
<para>Sets the sticky depth on a directory in a working
copy to one of <literal>empty</literal>,
<literal>files</literal>, <literal>immediates</literal>,
or <literal>infinity</literal>.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--show-revs</option> <replaceable>ARG</replaceable></term>
<listitem>
<para>Used to make <command>svn mergeinfo</command>
display either <literal>merged</literal>
or <literal>eligible</literal> revisions.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--show-updates</option> (<option>-u</option>)</term>
<listitem>
<para>Causes the client to display information about
which files in your working copy are out of date.
This doesn't actually update any of your
files&mdash;it just shows you which files will be
updated if you then use <command>svn update</command>.
</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--stop-on-copy</option></term>
<listitem>
<para>Causes a Subversion subcommand that traverses
the history of a versioned resource to stop harvesting
that historical information when a copy&mdash;that is, a
location in history where that resource was copied from
another location in the repository&mdash;is
encountered.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--strict</option></term>
<listitem>
<para>Causes Subversion to use strict semantics, a notion
that is rather vague unless talking about specific
subcommands (namely, <command>svn propget</command>).</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--targets</option>
<replaceable>FILENAME</replaceable></term>
<listitem>
<para>Tells Subversion to get the list of files that you
wish to operate on from the filename that you provide
instead of listing all the files on the command line.
</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--use-merge-history</option>
(<option>-g</option>)</term>
<listitem>
<para>Uses or displays additional information from merge
history.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--verbose</option> (<option>-v</option>)</term>
<listitem>
<para>Requests that the client print out as much
information as it can while running any subcommand.
This may result in Subversion printing out additional
fields, detailed information about every file, or
additional information regarding its actions.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--version</option></term>
<listitem>
<para>Prints the client version info. This information
includes not only the version number of the client, but
also a listing of all repository access modules that the
client can use to access a Subversion repository.
With <option>--quiet</option> (<option>-q</option>) it
prints only the version number in a compact form.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--with-all-revprops</option></term>
<listitem>
<para>Used with the <option>--xml</option> option to <command>svn log</command>,
will retrieve and display all revision
properties in the log output.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--with-revprop</option>
<replaceable>ARG</replaceable></term>
<listitem>
<para>When used with any command that writes to the
repository, sets the revision property, using the
<replaceable>NAME=VALUE</replaceable> format,
<replaceable>NAME</replaceable> to
<replaceable>VALUE</replaceable>. When used with
<command>svn log</command> in <option>--xml</option> mode, this displays the value of
<replaceable>ARG</replaceable> in the log output.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--xml</option></term>
<listitem>
<para>Prints output in XML format.</para>
</listitem>
</varlistentry>

</variablelist>

</sect2>

<!-- =============================================================== -->
<sect2 id="svn.ref.svn.c">
<title>svn Subcommands</title>

<para>Here are the various subcommands for the <command>svn</command> program. For the sake of
brevity, we omit the global options (described in <xref
linkend="svn.ref.svn.sw" />) from the subcommand descriptions
which follow.</para>

<refentry id="svn.ref.svn.c.add">

<indexterm>
<primary>svn</primary>
<secondary>subcommands</secondary>
<tertiary>add</tertiary>
</indexterm>

<refnamediv>
<refname>svn add</refname>
<refpurpose>Add files, directories, or symbolic links.</refpurpose>
</refnamediv>

<refsect1>
<title>Synopsis</title>
<programlisting>svn add PATH...</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Schedule files, directories, or symbolic links in your
working copy for addition to the repository. They will be
uploaded and added to the repository on your next commit.
If you add something and change your mind before
committing, you can unschedule the addition using
<command>svn revert</command>.
</para>
</refsect1>

<refsect1>
<title>Alternate names</title>
<para>None</para>
</refsect1>

<refsect1>
<title>Changes</title>
<para>Working copy</para>
</refsect1>

<refsect1>
<title>Accesses repository</title>
<para>No</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--auto-props
--depth ARG
--force
--no-auto-props
--no-ignore
--parents
--quiet (-q)
--targets FILENAME
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>To add a file to your working copy:</para>

<screen>
$ svn add foo.c
A foo.c
</screen>

<para>When adding a directory, the default behavior of
<command>svn add</command> is to recurse:</para>

<screen>
$ svn add testdir
A testdir
A testdir/a
A testdir/b
A testdir/c
A testdir/d
</screen>

<para>You can add a directory without adding its
contents:</para>

<screen>
$ svn add --depth=empty otherdir
A otherdir
</screen>

<para>Normally, the command <userinput>svn add *</userinput>
will skip over any directories that are already under
version control. Sometimes, however, you may want to add
every unversioned object in your working copy, including
those hiding deeper. Passing the
<option>--force</option> option makes <command>svn
add</command> recurse into versioned directories:
</para>

<screen>
$ svn add * --force
A foo.c
A somedir/bar.c
A (bin) otherdir/docs/baz.doc
&hellip;
</screen>

</refsect1>
</refentry>

<refentry id="svn.ref.svn.c.blame">

<indexterm>
<primary>svn</primary>
<secondary>subcommands</secondary>
<tertiary>blame</tertiary>
</indexterm>

<refnamediv>
<refname>svn blame</refname>
<refpurpose>Show author and revision information inline
for the specified files or URLs.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svn blame TARGET[@REV]...</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Show author and revision information inline for the
specified files or URLs. Each line of text is annotated
at the beginning with the author (username) and the
revision number for the last change to that line.</para>
</refsect1>

<refsect1>
<title>Alternate names</title>
<para><command>praise</command>, <command>annotate</command>, <command>ann</command></para>
</refsect1>

<refsect1>
<title>Changes</title>
<para>Nothing</para>
</refsect1>

<refsect1>
<title>Accesses repository</title>
<para>Yes</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--extensions (-x) ARG
--force
--incremental
--revision (-r) ARG
--use-merge-history (-g)
--verbose (-v)
--xml
</screen>

<!--

TODO(fitz): doc this:
- -incremental : give output suitable for concatenation
- -xml : output in XML
-x [- -extensions] arg : Default: '-u'. When Subversion is invoking an
external diff program, ARG is simply passed along
to the program. But when Subversion is using its
default internal diff implementation, or when
Subversion is displaying blame annotations, ARG
could be any of the following:
-u (- -unified):
Output 3 lines of unified context.
-b (- -ignore-space-change):
Ignore changes in the amount of white space.
-w (- -ignore-all-space):
Ignore all white space.
- -ignore-eol-style:
Ignore changes in EOL style
- -force : force operation to run

-->





</refsect1>

<refsect1>
<title>Examples</title>

<para>If you want to see blame-annotated source for
<filename>readme.txt</filename> in your test
repository:</para>
<screen>
$ svn blame http://svn.red-bean.com/repos/test/readme.txt
3 sally This is a README file.
5 harry You should read this.
</screen>

<para>Even if <command>svn blame</command> says that Harry
last modified <filename>readme.txt</filename> in revision
5, you'll have to examine exactly what the revision
changed to be sure that Harry changed
the <emphasis>context</emphasis> of the line&mdash;he may
have adjusted just the whitespace.
</para>

<para>If you use the <option>--xml</option> option, you can
get XML output describing the blame annotations, but not
the contents of the lines themselves:</para>

<screen>
$ svn blame --xml http://svn.red-bean.com/repos/test/readme.txt
&lt;?xml version="1.0"?&gt;
&lt;blame&gt;
&lt;target
path="sandwich.txt"&gt;
&lt;entry
line-number="1"&gt;
&lt;commit
revision="3"&gt;
&lt;author&gt;sally&lt;/author&gt;
&lt;date&gt;2008-05-25T19:12:31.428953Z&lt;/date&gt;
&lt;/commit&gt;
&lt;/entry&gt;
&lt;entry
line-number="2"&gt;
&lt;commit
revision="5"&gt;
&lt;author&gt;harry&lt;/author&gt;
&lt;date&gt;2008-05-29T03:26:12.293121Z&lt;/date&gt;
&lt;/commit&gt;
&lt;/entry&gt;
&lt;/target&gt;
&lt;/blame&gt;
</screen>

</refsect1>
</refentry>

<refentry id="svn.ref.svn.c.cat">

<indexterm>
<primary>svn</primary>
<secondary>subcommands</secondary>
<tertiary>cat</tertiary>
</indexterm>

<refnamediv>
<refname>svn cat</refname>
<refpurpose>Output the contents of the specified files or
URLs.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svn cat TARGET[@REV]...</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Output the contents of the specified files or URLs.
For listing the contents of directories, see <command>svn
list</command> later in this chapter.</para>
</refsect1>

<refsect1>
<title>Alternate names</title>
<para>None</para>
</refsect1>

<refsect1>
<title>Changes</title>
<para>Nothing</para>
</refsect1>

<refsect1>
<title>Accesses repository</title>
<para>Yes</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--revision (-r) REV
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>If you want to view <filename>readme.txt</filename> in
your repository without checking it out:</para>
<screen>
$ svn cat http://svn.red-bean.com/repos/test/readme.txt
This is a README file.
You should read this.
</screen>

<tip>
<para>If your working copy is out of date (or you have
local modifications) and you want to see the
<literal>HEAD</literal> revision of a file in your
working copy, <command>svn cat -r HEAD <replaceable>FILENAME</replaceable></command> will
automatically fetch the <literal>HEAD</literal> revision
of the specified path:</para>
</tip>

<screen>
$ cat foo.c
This file is in my local working copy
and has changes that I've made.

$ svn cat -r HEAD foo.c
Latest revision fresh from the repository!
</screen>

</refsect1>
</refentry>

<refentry id="svn.ref.svn.c.changelist">

<indexterm>
<primary>svn</primary>
<secondary>subcommands</secondary>
<tertiary>changelist</tertiary>
</indexterm>

<refnamediv>
<refname>svn changelist</refname>
<refpurpose>Associate (or deassociate) local paths with a
changelist.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>changelist CLNAME TARGET...</programlisting>
<programlisting>changelist --remove TARGET...</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Used for dividing files in a working copy into a
changelist (logical named grouping) in order to allow
users to easily work on multiple file collections within a
single working copy.</para>

</refsect1>

<refsect1>
<title>Alternate names</title>
<para><command>cl</command></para>
</refsect1>

<refsect1>
<title>Changes</title>
<para>Working copy</para>
</refsect1>

<refsect1>
<title>Accesses repository</title>
<para>No</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--changelist ARG
--depth ARG
--quiet (-q)
--recursive (-R)
--remove
--targets ARG
</screen>
</refsect1>

<refsect1>
<title>Example</title>

<para>Edit three files, add them to a changelist, then
commit only files in that changelist:</para>

<screen>
$ svn cl issue1729 foo.c bar.c baz.c
Path 'foo.c' is now a member of changelist 'issue1729'.
Path 'bar.c' is now a member of changelist 'issue1729'.
Path 'baz.c' is now a member of changelist 'issue1729'.

$ svn status
A someotherfile.c
A test/sometest.c

--- Changelist 'issue1729':
A foo.c
A bar.c
A baz.c

$ svn commit --changelist issue1729 -m "Fixing Issue 1729."
Adding bar.c
Adding baz.c
Adding foo.c
Transmitting file data ...
Committed revision 2.

$ svn status
A someotherfile.c
A test/sometest.c
</screen>

<para>Note that only the files in changelist
<replaceable>issue1729</replaceable> were
committed.</para>

</refsect1>
</refentry>

<refentry id="svn.ref.svn.c.checkout">

<indexterm>
<primary>svn</primary>
<secondary>subcommands</secondary>
<tertiary>checkout</tertiary>
</indexterm>

<refnamediv>
<refname>svn checkout</refname>
<refpurpose>Check out a working copy from a repository.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svn checkout URL[@REV]... [PATH]</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Check out a working copy from a repository. If
<replaceable>PATH</replaceable> is omitted, the
basename of the URL will be used as the destination.
If multiple URLs are given, each will be checked out into a
subdirectory of <replaceable>PATH</replaceable>, with the
name of the subdirectory being the basename of the
URL.</para>

</refsect1>

<refsect1>
<title>Alternate names</title>
<para><command>co</command></para>
</refsect1>

<refsect1>
<title>Changes</title>
<para>Creates a working copy</para>
</refsect1>

<refsect1>
<title>Accesses repository</title>
<para>Yes</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--depth ARG
--force
--ignore-externals
--quiet (-q)
--revision (-r) REV
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>Check out a working copy into a directory called
<filename>mine</filename>:</para>

<screen>
$ svn checkout file:///var/svn/repos/test mine
A mine/a
A mine/b
A mine/c
A mine/d
Checked out revision 20.
$ ls
mine
</screen>

<para>Check out two different directories into two separate
working copies:</para>

<screen>
$ svn checkout file:///var/svn/repos/test file:///var/svn/repos/quiz
A test/a
A test/b
A test/c
A test/d
Checked out revision 20.
A quiz/l
A quiz/m
Checked out revision 13.
$ ls
quiz test
</screen>

<para>Check out two different directories into two separate
working copies, but place both into a directory called
<filename>working-copies</filename>:</para>

<screen>
$ svn checkout file:///var/svn/repos/test file:///var/svn/repos/quiz working-copies
A working-copies/test/a
A working-copies/test/b
A working-copies/test/c
A working-copies/test/d
Checked out revision 20.
A working-copies/quiz/l
A working-copies/quiz/m
Checked out revision 13.
$ ls
working-copies
</screen>

<para>If you interrupt a checkout (or something else
interrupts your checkout, such as loss of connectivity,
etc.), you can restart it either by issuing the identical
checkout command again or by updating the incomplete
working copy:</para>

<screen>
$ svn checkout file:///var/svn/repos/test mine
A mine/a
A mine/b
^C
svn: The operation was interrupted
svn: caught SIGINT

$ svn checkout file:///var/svn/repos/test mine
A mine/c
^C
svn: The operation was interrupted
svn: caught SIGINT

$ svn update mine
A mine/d
Updated to revision 20.
</screen>

<para>If you wish to check out some revision other than the
most recent one, you can do so by providing the
<option>--revision</option> (<option>-r</option>) option
to the <command>svn checkout</command> command:</para>

<screen>
$ svn checkout -r 2 file:///var/svn/repos/test mine
A mine/a
Checked out revision 2.
</screen>

</refsect1>
</refentry>

<refentry id="svn.ref.svn.c.cleanup">

<indexterm>
<primary>svn</primary>
<secondary>subcommands</secondary>
<tertiary>cleanup</tertiary>
</indexterm>

<refnamediv>
<refname>svn cleanup</refname>
<refpurpose>Recursively clean up the working copy</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svn cleanup [PATH...]</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Recursively clean up the working copy, removing
working copy locks and resuming unfinished operations. If
you ever get a <literal>working copy locked</literal>
error, run this command to remove stale locks and get your
working copy into a usable state again.</para>

<para>If, for some reason, an <command>svn update</command>
fails due to a problem running an external diff program
(e.g., user input or network failure), pass the
<option>--diff3-cmd</option> to allow cleanup to complete
any merging with your external diff program. You can also
specify any configuration directory with the
<option>--config-dir</option> option, but you should need
these options extremely infrequently.</para>

</refsect1>

<refsect1>
<title>Alternate names</title>
<para>None</para>
</refsect1>

<refsect1>
<title>Changes</title>
<para>Working copy</para>
</refsect1>

<refsect1>
<title>Accesses repository</title>
<para>No</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--diff3-cmd CMD
</screen>

</refsect1>

<refsect1>
<title>Examples</title>

<para>Well, there's not much to the examples here, as
<command>svn cleanup</command> generates no output. If
you pass no <replaceable>PATH</replaceable>, then
<quote><filename>.</filename></quote> is used:</para>

<screen>
$ svn cleanup

$ svn cleanup /var/svn/working-copy
</screen>

</refsect1>
</refentry>

<refentry id="svn.ref.svn.c.commit">

<indexterm>
<primary>svn</primary>
<secondary>subcommands</secondary>
<tertiary>commit</tertiary>
</indexterm>

<refnamediv>
<refname>svn commit</refname>
<refpurpose>Send changes from your working copy to the repository.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svn commit [PATH...]</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Send changes from your working copy to the
repository. If you do not supply a log message with your
commit by using either the <option>--file</option> or
<option>--message</option> option,
<command>svn</command> will launch your editor for you
to compose a commit message. See the
<literal>editor-cmd</literal> list entry in <xref
linkend="svn.advanced.confarea.opts.config"/>.</para>

<para><command>svn commit</command> will send any lock
tokens that it finds and will release locks on all
<replaceable>PATH</replaceable>s committed (recursively)
unless <option>--no-unlock</option> is passed.</para>

<tip>
<para>If you begin a commit and Subversion launches your
editor to compose the commit message, you can still
abort without committing your changes. If you want to
cancel your commit, just quit your editor without saving
your commit message and Subversion will prompt you to
either abort the commit, continue with no message, or
edit the message again.</para>
</tip>

</refsect1>



<refsect1>
<title>Alternate names</title>
<para><command>ci</command> (short for <quote>check in</quote>; not
<command>co</command>, which is an alias for the
<command>checkout</command> subcommand)</para>
</refsect1>

<refsect1>
<title>Changes</title>
<para>Working copy; repository</para>
</refsect1>

<refsect1>
<title>Accesses repository</title>
<para>Yes</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--changelist ARG
--depth ARG
--editor-cmd ARG
--encoding ENC
--file (-F) FILE
--force-log
--keep-changelists
--message (-m) TEXT
--no-unlock
--quiet (-q)
--targets FILENAME
--with-revprop ARG
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>Commit a simple modification to a file with the
commit message on the command line and an implicit
target of your current directory
(<quote><filename>.</filename></quote>):</para>

<screen>
$ svn commit -m "added howto section."
Sending a
Transmitting file data .
Committed revision 3.
</screen>

<para>Commit a modification to the file
<filename>foo.c</filename> (explicitly specified on the
command line) with the commit message in a file named
<filename>msg</filename>:</para>

<screen>
$ svn commit -F msg foo.c
Sending foo.c
Transmitting file data .
Committed revision 5.
</screen>

<para>If you want to use a file that's under version
control for your commit message with
<option>--file</option>, you need to pass the
<option>--force-log</option> option:</para>

<screen>
$ svn commit --file file_under_vc.txt foo.c
svn: The log message file is under version control
svn: Log message file is a versioned file; use '--force-log' to override

$ svn commit --force-log --file file_under_vc.txt foo.c
Sending foo.c
Transmitting file data .
Committed revision 6.
</screen>

<para>To commit a file scheduled for deletion:</para>

<screen>
$ svn commit -m "removed file 'c'."
Deleting c

Committed revision 7.
</screen>

</refsect1>
</refentry>

<refentry id="svn.ref.svn.c.copy">

<indexterm>
<primary>svn</primary>
<secondary>subcommands</secondary>
<tertiary>copy</tertiary>
</indexterm>

<refnamediv>
<refname>svn copy</refname>
<refpurpose>Copy a file or directory in a working copy or
in the repository.</refpurpose>
</refnamediv>

<refsect1>
<title>Synopsis</title>
<programlisting>svn copy SRC[@REV]... DST</programlisting>
</refsect1>

<refsect1>
<title>Description</title>

<para>Copy one or more files in a working copy or in the
repository. When copying multiple sources, they will be
added as children of <replaceable>DST</replaceable>, which must be a directory.
<replaceable>SRC</replaceable> and
<replaceable>DST</replaceable> can each be either a
working copy (WC) path or URL:</para>

<variablelist>

<varlistentry>
<term>WC &rarr; WC</term>
<listitem>
<para>Copy and schedule an item for
addition (with history).</para>
</listitem>
</varlistentry>

<varlistentry>
<term>WC &rarr; URL</term>
<listitem>
<para>Immediately commit a copy of WC to URL.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>URL &rarr; WC</term>
<listitem>
<para>Check out URL into WC and schedule it for
addition.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>URL &rarr; URL</term>
<listitem>
<para>Complete server-side copy. This is
usually used to branch and tag.</para>
</listitem>
</varlistentry>

</variablelist>

<para>When copying multiple sources, they will be added as
children of <replaceable>DST</replaceable>, which must be
a directory.</para>

<para>If no peg revision (i.e.,
<replaceable>@REV</replaceable>) is supplied, by default
the <literal>BASE</literal> revision will be used for
files copied from the working copy, while the
<literal>HEAD</literal> revision will be used for files
copied from a URL.</para>

<note>
<para>You can only copy files within a single repository.
Subversion does not support cross-repository copying.</para>
</note>

</refsect1>

<refsect1>
<title>Alternate names</title>
<para><command>cp</command></para>
</refsect1>

<refsect1>
<title>Changes</title>
<para>Repository if destination is a URL; working copy if destination is a WC path</para>
</refsect1>

<refsect1>
<title>Accesses repository</title>
<para>Yes, if source or destination is in the repository, or if needed
to look up the source revision number.</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--editor-cmd EDITOR
--encoding ENC
--file (-F) FILE
--force-log
--message (-m) TEXT
--parents
--quiet (-q)
--revision (-r) REV
--with-revprop ARG
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>Copy an item within your working copy (this
schedules the copy&mdash;nothing goes into the repository
until you commit):</para>

<screen>
$ svn copy foo.txt bar.txt
A bar.txt
$ svn status
A + bar.txt
</screen>

<para>Copy several files in a working copy into a
subdirectory:</para>

<screen>
$ svn cp bat.c baz.c qux.c src
A src/bat.c
A src/baz.c
A src/qux.c
</screen>

<para>Copy revision 8 of <filename>bat.c</filename> into your
working copy under a different name:</para>

<screen>
$ svn cp -r 8 bat.c ya-old-bat.c
A ya-old-bat.c
</screen>

<para>Copy an item in your working copy to a URL in the
repository (this is an immediate commit, so you must supply a
commit message):</para>

<screen>
$ svn copy near.txt file:///var/svn/repos/test/far-away.txt -m "Remote copy."

Committed revision 8.
</screen>

<para>Copy an item from the repository to your working
copy (this just schedules the copy&mdash;nothing goes into the
repository until you commit):</para>

<screen>
$ svn copy file:///var/svn/repos/test/far-away -r 6 near-here
A near-here
</screen>

<tip>
<para>This is the recommended way to resurrect a dead
file in your repository!</para>
</tip>

<para>And finally, copy between two URLs:</para>

<screen>
$ svn copy file:///var/svn/repos/test/far-away \
file:///var/svn/repos/test/over-there -m "remote copy."

Committed revision 9.
</screen>

<screen>
$ svn copy file:///var/svn/repos/test/trunk \
file:///var/svn/repos/test/tags/0.6.32-prerelease -m "tag tree"

Committed revision 12.
</screen>

<tip>
<para>This is the easiest way to <quote>tag</quote> a
revision in your repository&mdash;just <command>svn
copy</command> that revision (usually
<literal>HEAD</literal>) into your <filename>tags</filename> directory.</para>
</tip>

<para>And don't worry if you forgot to tag&mdash;you can
always specify an older revision and tag anytime:</para>

<screen>
$ svn copy -r 11 file:///var/svn/repos/test/trunk \
file:///var/svn/repos/test/tags/0.6.32-prerelease \
-m "Forgot to tag at rev 11"

Committed revision 13.
</screen>
</refsect1>
</refentry>

<refentry id="svn.ref.svn.c.delete">

<indexterm>
<primary>svn</primary>
<secondary>subcommands</secondary>
<tertiary>delete</tertiary>
</indexterm>

<refnamediv>
<refname>svn delete</refname>
<refpurpose>Delete an item from a working copy
or the repository.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svn delete PATH...</programlisting>
<programlisting>svn delete URL...</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Items specified by <replaceable>PATH</replaceable> are
scheduled for deletion upon the next commit. Files (and
directories that have not been committed) are immediately
removed from the working copy unless the
<option>--keep-local</option> option is given. The
command will not remove any unversioned or modified items;
use the <option>--force</option> option to override this
behavior.</para>

<para>Items specified by URL are deleted from
the repository via an immediate commit. Multiple URLs are
committed atomically.</para>
</refsect1>

<refsect1>
<title>Alternate names</title>
<para><command>del</command>, <command>remove</command>, <command>rm</command></para>
</refsect1>

<refsect1>
<title>Changes</title>
<para>Working copy if operating on files; repository if
operating on URLs</para>
</refsect1>

<refsect1>
<title>Accesses repository</title>
<para>Only if operating on URLs</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--editor-cmd EDITOR
--encoding ENC
--file (-F) FILE
--force
--force-log
--keep-local
--message (-m) TEXT
--quiet (-q)
--targets FILENAME
--with-revprop ARG
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>Using <command>svn</command> to delete a file from
your working copy deletes your local copy of the file, but
it merely schedules the file to be deleted from the
repository. When you commit, the file is deleted in the
repository.</para>

<screen>
$ svn delete myfile
D myfile

$ svn commit -m "Deleted file 'myfile'."
Deleting myfile
Transmitting file data .
Committed revision 14.
</screen>

<para>Deleting a URL, however, is immediate, so you have
to supply a log message:</para>

<screen>
$ svn delete -m "Deleting file 'yourfile'" \
file:///var/svn/repos/test/yourfile

Committed revision 15.
</screen>

<para>Here's an example of how to force deletion of a file
that has local mods:</para>

<screen>
$ svn delete over-there
svn: Attempting restricted operation for modified resource
svn: Use --force to override this restriction
svn: 'over-there' has local modifications

$ svn delete --force over-there
D over-there
</screen>

</refsect1>
</refentry>

<refentry id="svn.ref.svn.c.diff">

<indexterm>
<primary>svn</primary>
<secondary>subcommands</secondary>
<tertiary>diff</tertiary>
</indexterm>

<refnamediv>
<refname>svn diff</refname>
<refpurpose>This displays the differences between two revisions or paths.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>diff [-c M | -r N[:M]] [TARGET[@REV]...]</programlisting>
<programlisting>diff [-r N[:M]] --old=OLD-TGT[@OLDREV] [--new=NEW-TGT[@NEWREV]] [PATH...]</programlisting>
<programlisting>diff OLD-URL[@OLDREV] NEW-URL[@NEWREV]</programlisting>

</refsect1>
<refsect1>
<title>Description</title>

<itemizedlist>

<listitem>
<para>Display the differences between two paths. You can
use <command>svn diff</command> in the following ways:</para>
</listitem>

<listitem>
<para>Use just <command>svn diff</command> to display local
modifications in a working copy.</para>
</listitem>

<listitem>
<para>Display the changes made to
<replaceable>TARGET</replaceable>s as they are seen in
<replaceable>REV</replaceable> between two revisions.
<replaceable>TARGET</replaceable>s may be all working copy
paths or all <replaceable>URL</replaceable>s. If
<replaceable>TARGET</replaceable>s are working copy paths,
<replaceable>N</replaceable> defaults to
<literal>BASE</literal> and <replaceable>M</replaceable>
to the working copy; if <replaceable>TARGET</replaceable>s
are <replaceable>URL</replaceable>s,
<replaceable>N</replaceable> must be specified and
<replaceable>M</replaceable> defaults to
<literal>HEAD</literal>. The <literal>-c M</literal> option
is equivalent to <literal>-r N:M</literal> where <literal>N =
M-1</literal>. Using <literal>-c -M</literal> does the
reverse: <literal>-r M:N</literal> where <literal>N =
M-1</literal>.</para>
</listitem>

<listitem>
<para>Display the differences between
<replaceable>OLD-TGT</replaceable> as it was seen in
<replaceable>OLDREV</replaceable> and
<replaceable>NEW-TGT</replaceable> as it was seen in
<replaceable>NEWREV</replaceable>.
<replaceable>PATH</replaceable>s, if given, are relative
to <replaceable>OLD-TGT</replaceable> and
<replaceable>NEW-TGT</replaceable> and restrict the output
to differences for those paths.
<replaceable>OLD-TGT</replaceable> and
<replaceable>NEW-TGT</replaceable> may be working copy
paths or <replaceable>URL[@REV]</replaceable>.
<replaceable>NEW-TGT</replaceable> defaults to
<replaceable>OLD-TGT</replaceable> if not specified.
<literal>-r N</literal>
makes <replaceable>OLDREV</replaceable> default to
<literal>N</literal>; <literal>-r N:M</literal>
makes <replaceable>OLDREV</replaceable> default to
<replaceable>N</replaceable> and
<replaceable>NEWREV</replaceable> default to
<replaceable>M</replaceable>.</para>
</listitem>

</itemizedlist>

<para><userinput>svn diff OLD-URL[@OLDREV]
NEW-URL[@NEWREV]</userinput> is shorthand for <userinput>svn
diff --old=OLD-URL[@OLDREV]
--new=NEW-URL[@NEWREV].</userinput></para>

<para><userinput>svn diff -r N:M URL</userinput> is shorthand
for <userinput>svn diff -r N:M --old=URL
--new=URL</userinput>.</para>

<para><userinput>svn diff [-r N[:M]] URL1[@N]
URL2[@M]</userinput> is shorthand for <userinput>svn diff [-r
N[:M]] --old=URL1 --new=URL2</userinput>.</para>

<para>If <replaceable>TARGET</replaceable> is a URL, then
revs <literal>N</literal> and <literal>M</literal> can be given either via the
<option>--revision</option> option or by using the
<quote>@</quote> notation as described earlier.</para>

<para>If <replaceable>TARGET</replaceable> is a working copy
path, the default behavior (when no
<option>--revision</option> option is provided) is to
display the differences between the base and working
copies of <replaceable>TARGET</replaceable>. If a
<option>--revision</option> option is specified in this
scenario, though, it means:</para>

<variablelist>

<varlistentry>
<term><option>--revision N:M</option></term>
<listitem>
<para>The server compares
<replaceable>TARGET@N</replaceable>
and
<replaceable>TARGET@M</replaceable>.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--revision N</option></term>
<listitem>
<para>The client compares
<replaceable>TARGET@N</replaceable>
against the working copy.</para>
</listitem>
</varlistentry>

</variablelist>

<para>If the alternate syntax is used, the server compares
<replaceable>URL1</replaceable> and
<replaceable>URL2</replaceable> at revisions
<replaceable>N</replaceable> and
<replaceable>M</replaceable>, respectively. If either
<replaceable>N</replaceable> or
<replaceable>M</replaceable> is omitted, a value of
<literal>HEAD</literal> is assumed.</para>

<para>By default, <command>svn diff</command> ignores the
ancestry of files and merely compares the contents of the
two files being compared. If you use
<option>--notice-ancestry</option>, the ancestry of the
paths in question will be taken into consideration when
comparing revisions (i.e., if you run <command>svn
diff</command> on two files with identical contents but
different ancestry, you will see the entire contents of
the file as having been removed and added again).</para>

</refsect1>
<refsect1>
<title>Alternate names</title>
<para><command>di</command></para>
</refsect1>

<refsect1>
<title>Changes</title>
<para>Nothing</para>
</refsect1>

<refsect1>
<title>Accesses repository</title>
<para>For obtaining differences against anything but
<literal>BASE</literal> revision in your working copy</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--change (-c) ARG
--changelist ARG
--depth ARG
--diff-cmd CMD
--extensions (-x) "ARGS"
--force
--new ARG
--no-diff-deleted
--notice-ancestry
--old ARG
--revision (-r) ARG
--summarize
--xml
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>Compare <literal>BASE</literal> and your working copy
(one of the most popular uses of <command>svn
diff</command>):</para>

<screen>
$ svn diff COMMITTERS
Index: COMMITTERS
===================================================================
--- COMMITTERS (revision 4404)
+++ COMMITTERS (working copy)
</screen>

<para>See what changed in the file
<filename>COMMITTERS</filename> revision 9115:</para>

<screen>
$ svn diff -c 9115 COMMITTERS
Index: COMMITTERS
===================================================================
--- COMMITTERS (revision 3900)
+++ COMMITTERS (working copy)
</screen>


<para>See how your working copy's modifications compare
against an older revision:</para>

<screen>
$ svn diff -r 3900 COMMITTERS
Index: COMMITTERS
===================================================================
--- COMMITTERS (revision 3900)
+++ COMMITTERS (working copy)
</screen>

<para>Compare revision 3000 to revision 3500 using <quote>@</quote>
syntax:</para>

<screen>
$ svn diff http://svn.collab.net/repos/svn/trunk/COMMITTERS@3000 \
http://svn.collab.net/repos/svn/trunk/COMMITTERS@3500
Index: COMMITTERS
===================================================================
--- COMMITTERS (revision 3000)
+++ COMMITTERS (revision 3500)
&hellip;
</screen>

<para>Compare revision 3000 to revision 3500 using range
notation (pass only the one URL in this
case):</para>

<screen>
$ svn diff -r 3000:3500 http://svn.collab.net/repos/svn/trunk/COMMITTERS
Index: COMMITTERS
===================================================================
--- COMMITTERS (revision 3000)
+++ COMMITTERS (revision 3500)
</screen>


<para>Compare revision 3000 to revision 3500 of all the files in
<filename>trunk</filename> using range notation:</para>

<screen>
$ svn diff -r 3000:3500 http://svn.collab.net/repos/svn/trunk
</screen>


<para>Compare revision 3000 to revision 3500 of only three
files in <filename>trunk</filename> using range
notation:</para>

<screen>
$ svn diff -r 3000:3500 --old http://svn.collab.net/repos/svn/trunk \
COMMITTERS README HACKING
</screen>

<para>If you have a working copy, you can obtain the
differences without typing in the long URLs:</para>

<screen>
$ svn diff -r 3000:3500 COMMITTERS
Index: COMMITTERS
===================================================================
--- COMMITTERS (revision 3000)
+++ COMMITTERS (revision 3500)
</screen>

<para>Use <option>--diff-cmd</option>
<replaceable>CMD</replaceable> <option>-x</option> to
pass arguments directly to the external diff
program:</para>

<screen>
$ svn diff --diff-cmd /usr/bin/diff -x "-i -b" COMMITTERS
Index: COMMITTERS
===================================================================
0a1,2
&gt; This is a test
&gt;
</screen>

<para>Lastly, you can use the <option>--xml</option> option
along with the <option>--summarize</option> option to view
XML describing the changes that occurred between
revisions, but not the contents of the diff itself:</para>

<screen>
$ svn diff --summarize --xml http://svn.red-bean.com/repos/test@r2 \
http://svn.red-bean.com/repos/test
&lt;?xml version="1.0"?&gt;
&lt;diff&gt;
&lt;paths&gt;
&lt;path
props="none"
kind="file"
item="modified"&amp;gt;http://svn.red-bean.com/repos/test/sandwich.txt&amp;lt;/path&amp;gt;
&lt;path
props="none"
kind="file"
item="deleted"&amp;gt;http://svn.red-bean.com/repos/test/burrito.txt&amp;lt;/path&amp;gt;
&lt;path
props="none"
kind="dir"
item="added"&amp;gt;http://svn.red-bean.com/repos/test/snacks&amp;lt;/path&amp;gt;
&lt;/paths&gt;
&lt;/diff&gt;
</screen>

</refsect1>
</refentry>

<refentry id="svn.ref.svn.c.export">

<indexterm>
<primary>svn</primary>
<secondary>subcommands</secondary>
<tertiary>export</tertiary>
</indexterm>

<refnamediv>
<refname>svn export</refname>
<refpurpose>Export a clean directory tree.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svn export [-r REV] URL[@PEGREV] [PATH]</programlisting>
<programlisting>svn export [-r REV] PATH1[@PEGREV] [PATH2]</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>The first form exports a clean directory tree from the
repository specified by <replaceable>URL</replaceable>&mdash;at revision
<replaceable>REV</replaceable> if it is given; otherwise,
at <literal>HEAD</literal>, into
<replaceable>PATH</replaceable>. If
<replaceable>PATH</replaceable> is omitted, the last
component of the <replaceable>URL</replaceable> is used
for the local directory name.</para>

<para>The second form exports a clean directory tree from
the working copy specified by
<replaceable>PATH1</replaceable> into
<replaceable>PATH2</replaceable>. All local changes will
be preserved, but files not under version control will not
be copied.</para>
</refsect1>

<refsect1>
<title>Alternate names</title>
<para>None</para>
</refsect1>

<refsect1>
<title>Changes</title>
<para>Local disk</para>
</refsect1>

<refsect1>
<title>Accesses repository</title>
<para>Only if exporting from a URL</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--depth ARG
--force
--ignore-externals
--native-eol EOL
--quiet (-q)
--revision (-r) REV
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>Export from your working copy (doesn't print every
file and directory):</para>

<screen>
$ svn export a-wc my-export
Export complete.
</screen>

<para>Export directly from the repository (prints every
file and directory):</para>

<screen>
$ svn export file:///var/svn/repos my-export
A my-export/test
A my-export/quiz
&hellip;
Exported revision 15.
</screen>

<para>When rolling operating-system-specific release
packages, it can be useful to export a tree that uses a
specific EOL character for line endings. The
<option>--native-eol</option> option will do this, but it
affects only files that have <literal>svn:eol-style =
native</literal> properties attached to them. For
example, to export a tree with all CRLF line endings
(possibly for a Windows <filename>.zip</filename> file
distribution):</para>

<screen>
$ svn export file:///var/svn/repos my-export --native-eol CRLF
A my-export/test
A my-export/quiz
&hellip;
Exported revision 15.
</screen>

<para>You can specify <literal>LR</literal>,
<literal>CR</literal>, or <literal>CRLF</literal> as a
line-ending type with the <option>--native-eol</option>
option.</para>

</refsect1>
</refentry>



<refentry id="svn.ref.svn.c.help">

<indexterm>
<primary>svn</primary>
<secondary>subcommands</secondary>
<tertiary>help</tertiary>
</indexterm>

<refnamediv>
<refname>svn help</refname>
<refpurpose>Help!</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svn help [SUBCOMMAND...]</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>This is your best friend when you're using
Subversion and this book isn't within reach!</para>
</refsect1>

<refsect1>
<title>Alternate names</title>
<para><command>?</command>, <command>h</command></para>
<para>The options <option>-?</option>, <option>-h</option>,
and <option>--help</option> have the same effect as using the
<command>help</command> subcommand.</para>
</refsect1>

<refsect1>
<title>Changes</title>
<para>Nothing</para>
</refsect1>

<refsect1>
<title>Accesses repository</title>
<para>No</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
</screen>
</refsect1>
</refentry>

<refentry id="svn.ref.svn.c.import">

<indexterm>
<primary>svn</primary>
<secondary>subcommands</secondary>
<tertiary>import</tertiary>
</indexterm>

<refnamediv>
<refname>svn import</refname>
<refpurpose>Commit an unversioned file or tree into the
repository.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svn import [PATH] URL</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Recursively commit a copy of
<replaceable>PATH</replaceable> to
<replaceable>URL</replaceable>. If
<replaceable>PATH</replaceable> is omitted,
<quote><filename>.</filename></quote> is assumed. Parent
directories are created in the repository as necessary.
Unversionable items such as device files and pipes are
ignored even if <option>--force</option> is
specified.</para>
</refsect1>

<refsect1>
<title>Alternate names</title>
<para>None</para>
</refsect1>

<refsect1>
<title>Changes</title>
<para>Repository</para>
</refsect1>

<refsect1>
<title>Accesses repository</title>
<para>Yes</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--auto-props
--depth ARG
--editor-cmd EDITOR
--encoding ENC
--file (-F) FILE
--force
--force-log
--message (-m) TEXT
--no-auto-props
--no-ignore
--quiet (-q)
--with-revprop ARG
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>This imports the local directory
<filename>myproj</filename> into
<filename>trunk/misc</filename> in your repository. The
directory <filename>trunk/misc</filename> need not exist
before you import into it&mdash;<command>svn
import</command> will recursively create directories for
you.</para>

<screen>
$ svn import -m "New import" myproj \
http://svn.red-bean.com/repos/trunk/misc
Adding myproj/sample.txt
&hellip;
Transmitting file data .........
Committed revision 16.
</screen>

<para>Be aware that this will <emphasis>not</emphasis>
create a directory named <filename>myproj</filename> in
the repository. If that's what you want, simply add
<filename>myproj</filename> to the end of the URL:</para>

<screen>
$ svn import -m "New import" myproj \
http://svn.red-bean.com/repos/trunk/misc/myproj
Adding myproj/sample.txt
&hellip;
Transmitting file data .........
Committed revision 16.
</screen>

<para>After importing data, note that the original tree is
<emphasis>not</emphasis> under version control. To start
working, you still need to <command>svn checkout</command>
a fresh working copy of the tree.</para>

</refsect1>
</refentry>

<refentry id="svn.ref.svn.c.info">

<indexterm>
<primary>svn</primary>
<secondary>subcommands</secondary>
<tertiary>info</tertiary>
</indexterm>

<refnamediv>
<refname>svn info</refname>
<refpurpose>Display information about a local or remote
item.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svn info [TARGET[@REV]...]</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Print information about the working copy paths or
URLs specified. The information shown for both may
include:</para>

<itemizedlist>
<listitem><para>Path</para></listitem>
<listitem><para>Name</para></listitem>
<listitem><para>URL</para></listitem>
<listitem><para>Repository root</para></listitem>
<listitem><para>Repository UUID</para></listitem>
<listitem><para>Revision</para></listitem>
<listitem><para>Node kind</para></listitem>
<listitem><para>Last changed author</para></listitem>
<listitem><para>Last changed revision</para></listitem>
<listitem><para>Last changed date</para></listitem>
<listitem><para>Lock token</para></listitem>
<listitem><para>Lock owner</para></listitem>
<listitem><para>Lock created (date)</para></listitem>
<listitem><para>Lock expires (date)</para></listitem>
</itemizedlist>

<para>Additional kinds of information available only for
working copy paths are:</para>

<itemizedlist>
<listitem><para>Schedule</para></listitem>
<listitem><para>Copied from URL</para></listitem>
<listitem><para>Copied from rev</para></listitem>
<listitem><para>Text last updated</para></listitem>
<listitem><para>Properties last updated</para></listitem>
<listitem><para>Checksum</para></listitem>
<listitem><para>Conflict previous base file</para></listitem>
<listitem><para>Conflict previous working file</para></listitem>
<listitem><para>Conflict current base file</para></listitem>
<listitem><para>Conflict properties file</para></listitem>
</itemizedlist>
</refsect1>

<refsect1>
<title>Alternate names</title>
<para>None</para>
</refsect1>

<refsect1>
<title>Changes</title>
<para>Nothing</para>
</refsect1>

<refsect1>
<title>Accesses repository</title>
<para>Only if operating on URLs</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--changelist ARG
--depth ARG
--incremental
--recursive (-R)
--revision (-r) REV
--targets FILENAME
--xml
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para><command>svn info</command> will show you all the
useful information that it has for items in your working
copy. It will show information for files:</para>

<screen>
$ svn info foo.c
Path: foo.c
Name: foo.c
URL: http://svn.red-bean.com/repos/test/foo.c
Repository Root: http://svn.red-bean.com/repos/test
Repository UUID: 5e7d134a-54fb-0310-bd04-b611643e5c25
Revision: 4417
Node Kind: file
Schedule: normal
Last Changed Author: sally
Last Changed Rev: 20
Last Changed Date: 2003-01-13 16:43:13 -0600 (Mon, 13 Jan 2003)
Text Last Updated: 2003-01-16 21:18:16 -0600 (Thu, 16 Jan 2003)
Properties Last Updated: 2003-01-13 21:50:19 -0600 (Mon, 13 Jan 2003)
Checksum: d6aeb60b0662ccceb6bce4bac344cb66
</screen>

<para>It will also show information for directories:</para>

<screen>
$ svn info vendors
Path: vendors
URL: http://svn.red-bean.com/repos/test/vendors
Repository Root: http://svn.red-bean.com/repos/test
Repository UUID: 5e7d134a-54fb-0310-bd04-b611643e5c25
Revision: 19
Node Kind: directory
Schedule: normal
Last Changed Author: harry
Last Changed Rev: 19
Last Changed Date: 2003-01-16 23:21:19 -0600 (Thu, 16 Jan 2003)
Properties Last Updated: 2003-01-16 23:39:02 -0600 (Thu, 16 Jan 2003)
</screen>

<para><command>svn info</command> also acts on URLs (also
note that the file <filename>readme.doc</filename> in
this example is locked, so lock information is also
provided):</para>

<screen>
$ svn info http://svn.red-bean.com/repos/test/readme.doc
Path: readme.doc
Name: readme.doc
URL: http://svn.red-bean.com/repos/test/readme.doc
Repository Root: http://svn.red-bean.com/repos/test
Repository UUID: 5e7d134a-54fb-0310-bd04-b611643e5c25
Revision: 1
Node Kind: file
Schedule: normal
Last Changed Author: sally
Last Changed Rev: 42
Last Changed Date: 2003-01-14 23:21:19 -0600 (Tue, 14 Jan 2003)
Lock Token: opaquelocktoken:14011d4b-54fb-0310-8541-dbd16bd471b2
Lock Owner: harry
Lock Created: 2003-01-15 17:35:12 -0600 (Wed, 15 Jan 2003)
Lock Comment (1 line):
My test lock comment
</screen>

<para>Lastly, <command>svn info</command> output is
available in XML format by passing
the<option>--xml</option> option:</para>

<screen>
$ svn info --xml http://svn.red-bean.com/repos/test
&lt;?xml version="1.0"?&gt;
&lt;info&gt;
&lt;entry
kind="dir"
path="."
revision="1"&gt;
&lt;url&gt;http://svn.red-bean.com/repos/test&lt;/url&gt;
&lt;repository&gt;
&lt;root&gt;http://svn.red-bean.com/repos/test&lt;/root&gt;
&lt;uuid&gt;5e7d134a-54fb-0310-bd04-b611643e5c25&lt;/uuid&gt;
&lt;/repository&gt;
&lt;wc-info&gt;
&lt;schedule&gt;normal&lt;/schedule&gt;
&lt;depth&gt;infinity&lt;/depth&gt;
&lt;/wc-info&gt;
&lt;commit
revision="1"&gt;
&lt;author&gt;sally&lt;/author&gt;
&lt;date&gt;2003-01-15T23:35:12.847647Z&lt;/date&gt;
&lt;/commit&gt;
&lt;/entry&gt;
&lt;/info&gt;
</screen>

</refsect1>
</refentry>

<refentry id="svn.ref.svn.c.list">

<indexterm>
<primary>svn</primary>
<secondary>subcommands</secondary>
<tertiary>list</tertiary>
</indexterm>

<refnamediv>
<refname>svn list</refname>
<refpurpose>List directory entries in the repository.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svn list [TARGET[@REV]...]</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>List each <replaceable>TARGET</replaceable> file and
the contents of each <replaceable>TARGET</replaceable>
directory as they exist in the repository. If
<replaceable>TARGET</replaceable> is a working copy path,
the corresponding repository URL will be used.</para>

<para>The default <replaceable>TARGET</replaceable> is
<quote><filename>.</filename></quote>, meaning the
repository URL of the current working copy
directory.</para>

<para>With <option>--verbose</option>, <command>svn
list</command> shows the following fields for each
item:</para>

<itemizedlist>
<listitem><para>Revision number of the last
commit</para></listitem>

<listitem><para>Author of the last commit</para></listitem>

<listitem><para>If locked, the letter <quote>O</quote> (see the preceding section on <xref
linkend="svn.ref.svn.c.info"/> for details).</para></listitem>

<listitem><para>Size (in bytes)</para></listitem>

<listitem><para>Date and time of the last
commit</para></listitem>
</itemizedlist>

<para>With <option>--xml</option>, output is in XML format (with
a header and an enclosing document element unless
<option>--incremental</option> is also specified). All of the
information is present; the <option>--verbose</option> option
is not accepted.</para>
</refsect1>

<refsect1>
<title>Alternate names</title>
<para><command>ls</command></para>
</refsect1>

<refsect1>
<title>Changes</title>
<para>Nothing</para>
</refsect1>

<refsect1>
<title>Accesses repository</title>
<para>Yes</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--depth ARG
--incremental
--recursive (-R)
--revision (-r) REV
--verbose (-v)
--xml
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para><command>svn list</command> is most useful if you
want to see what files a repository has without
downloading a working copy:</para>

<screen>
$ svn list http://svn.red-bean.com/repos/test/support
README.txt
INSTALL
examples/
&hellip;
</screen>

<para>You can pass the <option>--verbose</option> option for
additional information, rather like the Unix command
<command>ls -l</command>:</para>

<screen>
$ svn list --verbose file:///var/svn/repos
16 sally 28361 Jan 16 23:18 README.txt
27 sally 0 Jan 18 15:27 INSTALL
24 harry Jan 18 11:27 examples/
</screen>

<para>You can also get <command>svn list</command> output in
XML format with the <option>--xml</option> option:</para>

<screen>
$ svn list --xml http://svn.red-bean.com/repos/test
&lt;?xml version="1.0"?&gt;
&lt;lists&gt;
&lt;list
path="http://svn.red-bean.com/repos/test"&gt;
&lt;entry
kind="dir"&gt;
&lt;name&gt;examples&lt;/name&gt;
&lt;size&gt;0&lt;/size&gt;
&lt;commit
revision="24"&gt;
&lt;author&gt;harry&lt;/author&gt;
&lt;date&gt;2008-01-18T06:35:53.048870Z&lt;/date&gt;
&lt;/commit&gt;
&lt;/entry&gt;
...
&lt;/list&gt;
&lt;/lists&gt;
</screen>

<para>For further details, see the earlier section <xref
linkend="svn.tour.history.browsing.list"/>.</para>

</refsect1>
</refentry>


<refentry id="svn.ref.svn.c.lock">

<indexterm>
<primary>svn</primary>
<secondary>subcommands</secondary>
<tertiary>lock</tertiary>
</indexterm>

<refnamediv>
<refname>svn lock</refname>
<refpurpose>Lock working copy paths or URLs in the
repository so that no other user can commit changes to
them.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svn lock TARGET...</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Lock each <replaceable>TARGET</replaceable>. If any
<replaceable>TARGET</replaceable> is already locked by
another user, print a warning and continue locking the
rest of the <replaceable>TARGET</replaceable>s. Use
<option>--force</option> to steal a lock from another user
or working copy.</para>

</refsect1>

<refsect1>
<title>Alternate names</title>
<para>None</para>
</refsect1>

<refsect1>
<title>Changes</title>
<para>Working copy, repository</para>
</refsect1>

<refsect1>
<title>Accesses repository</title>
<para>Yes</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--encoding ENC
--file (-F) FILE
--force
--force-log
--message (-m) TEXT
--targets FILENAME
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>Lock two files in your working copy:</para>

<screen>
$ svn lock tree.jpg house.jpg
'tree.jpg' locked by user 'harry'.
'house.jpg' locked by user 'harry'.
</screen>

<para>Lock a file in your working copy that is currently
locked by another user:</para>

<screen>
$ svn lock tree.jpg
svn: warning: Path '/tree.jpg is already locked by user 'sally in \
filesystem '/var/svn/repos/db'

$ svn lock --force tree.jpg
'tree.jpg' locked by user 'harry'.
</screen>

<para>Lock a file without a working copy:</para>

<screen>
$ svn lock http://svn.red-bean.com/repos/test/tree.jpg
'tree.jpg' locked by user 'harry'.
</screen>

<para>For further details, see <xref
linkend="svn.advanced.locking"/>.</para>

</refsect1>
</refentry>


<refentry id="svn.ref.svn.c.log">

<indexterm>
<primary>svn</primary>
<secondary>subcommands</secondary>
<tertiary>log</tertiary>
</indexterm>

<refnamediv>
<refname>svn log</refname>
<refpurpose>Display commit log messages.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svn log [PATH]</programlisting>
<programlisting>svn log URL[@REV] [PATH...]</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Shows log messages from the repository.
If no arguments are supplied, <command>svn
log</command> shows the log messages for all files and
directories inside (and including) the current working
directory of your working copy. You can refine the
results by specifying a path, one or more revisions, or
any combination of the two. The default revision range
for a local path is <literal>BASE:1</literal>.</para>

<para>If you specify a URL alone, it prints log
messages for everything the URL contains. If you
add paths past the URL, only messages for those paths
under that URL will be printed. The default revision range
for a URL is <literal>HEAD:1</literal>.</para>

<para>With <option>--verbose</option>, <command>svn log</command>
will also print all affected paths with each log message.
With <option>--quiet</option>, <command>svn log</command>
will not print the log message body itself (this is
compatible with <option>--verbose</option>).</para>

<para>Each log message is printed just once, even if more
than one of the affected paths for that revision were
explicitly requested. Logs follow copy history by
default. Use <option>--stop-on-copy</option> to disable
this behavior, which can be useful for determining branch
points.</para>

</refsect1>
<refsect1>
<title>Alternate names</title>
<para>None</para>
</refsect1>

<refsect1>
<title>Changes</title>
<para>Nothing</para>
</refsect1>

<refsect1>
<title>Accesses repository</title>
<para>Yes</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--change (-c) ARG
--incremental
--limit (-l) NUM
--quiet (-q)
--revision (-r) REV
--stop-on-copy
--targets FILENAME
--use-merge-history (-g)
--verbose (-v)
--with-all-revprops
--with-revprop ARG
--xml
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>You can see the log messages for all the paths that
changed in your working copy by running <userinput>svn
log</userinput> from the top:</para>

<screen>
$ svn log
------------------------------------------------------------------------
r20 | harry | 2003-01-17 22:56:19 -0600 (Fri, 17 Jan 2003) | 1 line

Tweak.
------------------------------------------------------------------------
r17 | sally | 2003-01-16 23:21:19 -0600 (Thu, 16 Jan 2003) | 2 lines
&hellip;
</screen>

<para>Examine all log messages for a particular file in
your working copy:</para>

<screen>
$ svn log foo.c
------------------------------------------------------------------------
r32 | sally | 2003-01-13 00:43:13 -0600 (Mon, 13 Jan 2003) | 1 line

Added defines.
------------------------------------------------------------------------
r28 | sally | 2003-01-07 21:48:33 -0600 (Tue, 07 Jan 2003) | 3 lines
&hellip;
</screen>

<para>If you don't have a working copy handy, you can log
a URL:</para>

<screen>
$ svn log http://svn.red-bean.com/repos/test/foo.c
------------------------------------------------------------------------
r32 | sally | 2003-01-13 00:43:13 -0600 (Mon, 13 Jan 2003) | 1 line

Added defines.
------------------------------------------------------------------------
r28 | sally | 2003-01-07 21:48:33 -0600 (Tue, 07 Jan 2003) | 3 lines
&hellip;
</screen>

<para>If you want several distinct paths underneath the
same URL, you can use the <literal>URL [PATH...]</literal>
syntax:</para>

<screen>
$ svn log http://svn.red-bean.com/repos/test/ foo.c bar.c
------------------------------------------------------------------------
r32 | sally | 2003-01-13 00:43:13 -0600 (Mon, 13 Jan 2003) | 1 line

Added defines.
------------------------------------------------------------------------
r31 | harry | 2003-01-10 12:25:08 -0600 (Fri, 10 Jan 2003) | 1 line

Added new file bar.c
------------------------------------------------------------------------
r28 | sally | 2003-01-07 21:48:33 -0600 (Tue, 07 Jan 2003) | 3 lines
&hellip;
</screen>

<para>The <option>--verbose</option> option causes
<command>svn log</command> to include information about
the paths that were changed in each displayed revision.
These paths appear, one path per line of output, with
action codes that indicate what type of change was made to
the path.</para>

<screen>
$ svn log -v http://svn.red-bean.com/repos/test/ foo.c bar.c
------------------------------------------------------------------------
r32 | sally | 2003-01-13 00:43:13 -0600 (Mon, 13 Jan 2003) | 1 line
Changed paths:
M /foo.c

Added defines.
------------------------------------------------------------------------
r31 | harry | 2003-01-10 12:25:08 -0600 (Fri, 10 Jan 2003) | 1 line
Changed paths:
A /bar.c

Added new file bar.c
------------------------------------------------------------------------
r28 | sally | 2003-01-07 21:48:33 -0600 (Tue, 07 Jan 2003) | 3 lines
&hellip;
</screen>

<para><command>svn log</command> uses just a handful of action codes,
and they are similar to the
ones the <command>svn update</command>
command uses:</para>

<variablelist>
<varlistentry>
<term><literal>A</literal></term>
<listitem><para>The item was added.</para></listitem>
</varlistentry>
<varlistentry>
<term><literal>D</literal></term>
<listitem><para>The item was deleted.</para></listitem>
</varlistentry>
<varlistentry>
<term><literal>M</literal></term>
<listitem><para>Properties or textual contents on the
item were changed.</para></listitem>
</varlistentry>
<varlistentry>
<term><literal>R</literal></term>
<listitem><para>The item was replaced by a different one
at the same location.</para></listitem>
</varlistentry>
</variablelist>

<para>In addition to the action codes which precede the
changed paths, <command>svn log</command> with the <option>--verbose</option> option will
note whether a path was added or replaced as the result of a copy
operation. It does so by printing <literal>(from
<replaceable>COPY-FROM-PATH</replaceable>:<replaceable>COPY-FROM-REV</replaceable>)</literal>
after such paths.</para>

<para>When you're concatenating the results of multiple
calls to the log command, you may want to use the
<option>--incremental</option> option. <command>svn
log</command> normally prints out a dashed line at the
beginning of a log message, after each subsequent log
message, and following the final log message. If you
ran <command>svn log</command> on a range of two
revisions, you would get this:</para>
<screen>
$ svn log -r 14:15
------------------------------------------------------------------------
r14 | &hellip;

------------------------------------------------------------------------
r15 | &hellip;

------------------------------------------------------------------------
</screen>

<para>However, if you wanted to gather two nonsequential log
messages into a file, you might do something like
this:</para>

<screen>
$ svn log -r 14 &gt; mylog
$ svn log -r 19 &gt;&gt; mylog
$ svn log -r 27 &gt;&gt; mylog
$ cat mylog
------------------------------------------------------------------------
r14 | &hellip;

------------------------------------------------------------------------
------------------------------------------------------------------------
r19 | &hellip;

------------------------------------------------------------------------
------------------------------------------------------------------------
r27 | &hellip;

------------------------------------------------------------------------
</screen>

<para>You can avoid the clutter of the double dashed lines
in your output by using the <option>--incremental</option>
option:</para>

<screen>
$ svn log --incremental -r 14 &gt; mylog
$ svn log --incremental -r 19 &gt;&gt; mylog
$ svn log --incremental -r 27 &gt;&gt; mylog
$ cat mylog
------------------------------------------------------------------------
r14 | &hellip;

------------------------------------------------------------------------
r19 | &hellip;

------------------------------------------------------------------------
r27 | &hellip;
</screen>

<para>The <option>--incremental</option> option provides
similar output control when using the
<option>--xml</option> option:</para>

<screen>
$ svn log --xml --incremental -r 1 sandwich.txt
&lt;logentry
revision="1"&gt;
&lt;author&gt;harry&lt;/author&gt;
&lt;date&gt;2008-06-03T06:35:53.048870Z&lt;/date&gt;
&lt;msg&gt;Initial Import.&lt;/msg&gt;
&lt;/logentry&gt;
</screen>

<tip>
<para>Sometimes when you run <command>svn log</command> on
a specific path and a specific revision, you see no log
information output at all, as in the following:</para>

<screen>
$ svn log -r 20 http://svn.red-bean.com/untouched.txt
------------------------------------------------------------------------
</screen>

<para>That just means the path wasn't modified in that
revision. To get log information for that revision,
either run the log operation against the repository's
root URL, or specify a path that you happen to know was
changed in that revision:</para>

<screen>
$ svn log -r 20 touched.txt
------------------------------------------------------------------------
r20 | sally | 2003-01-17 22:56:19 -0600 (Fri, 17 Jan 2003) | 1 line

Made a change.
------------------------------------------------------------------------
</screen>
</tip>

</refsect1>
</refentry>

<refentry id="svn.ref.svn.c.merge">

<indexterm>
<primary>svn</primary>
<secondary>subcommands</secondary>
<tertiary>merge</tertiary>
</indexterm>

<refnamediv>
<refname>svn merge</refname>
<refpurpose>Apply the differences between two sources to a
working copy path.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svn merge sourceURL1[@N] sourceURL2[@M] [WCPATH]</programlisting>
<programlisting>svn merge sourceWCPATH1@N sourceWCPATH2@M [WCPATH]</programlisting>
<programlisting>svn merge [[-c M]... | [-r N:M]...] [SOURCE[@REV] [WCPATH]]</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>In the first form, the source URLs are specified at
revisions <replaceable>N</replaceable> and <replaceable>M</replaceable>.
These are the two sources to be compared. The revisions
default to <literal>HEAD</literal> if omitted.</para>

<para>In the second form, the URLs corresponding to the
source working copy paths define the sources to be
compared. The revisions must be specified.</para>

<para>In the third form, <replaceable>SOURCE</replaceable>
can be either a URL or a working copy path (in which case
its corresponding URL is used). If not specified,
<replaceable>SOURCE</replaceable> will be the same as
<replaceable>WCPATH</replaceable>.
<replaceable>SOURCE</replaceable> in revision
<replaceable>REV</replaceable> is compared as it existed
between revisions <replaceable>N</replaceable> and
<replaceable>M</replaceable> for each revision range
provided. If <replaceable>REV</replaceable> is not
specified, <literal>HEAD</literal> is assumed.</para>

<para><literal>-c M</literal> is equivalent to <literal>-r
&lt;M-1&gt;:M</literal>, and <literal>-c -M</literal> does
the reverse: <literal>-r M:&lt;M-1&gt;</literal>. If no
revision ranges are specified, the default range of
<literal>1:HEAD</literal> is used. Multiple
<literal>-c</literal> and/or <literal>-r</literal>
instances may be specified, and mixing of forward and
reverse ranges is allowed&mdash;the ranges are internally
compacted to their minimum representation before merging
begins (which may result in no-op).</para>

<para><replaceable>WCPATH</replaceable> is the working copy
path that will receive the changes. If
<replaceable>WCPATH</replaceable> is omitted, a default
value of <quote><filename>.</filename></quote> is assumed,
unless the sources have identical basenames that match a
file within <quote><filename>.</filename></quote>. In
this case, the differences will be applied to that
file.</para>

<para>Subversion will internally track metadata about
the merge operation only if the two sources are ancestrally
related&mdash;if the first source is an ancestor of the
second or vice versa. This is guaranteed to be the case
when using the third form. Unlike <command>svn
diff</command>, the merge command takes the ancestry of a
file into consideration when performing a merge operation.
This is very important when you're merging changes from
one branch into another and you've renamed a file on one
branch but not the other.</para>

</refsect1>
<refsect1>
<title>Alternate names</title>
<para>None</para>
</refsect1>

<refsect1>
<title>Changes</title>
<para>Working copy</para>
</refsect1>

<refsect1>
<title>Accesses repository</title>
<para>Only if working with URLs</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--accept ARG
--change (-c) REV
--depth ARG
--diff3-cmd CMD
--dry-run
--extensions (-x) ARG
--force
--ignore-ancestry
--quiet (-q)
--record-only
--reintegrate
--revision (-r) REV
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>Merge a branch back into the trunk (assuming that
you have an up-to-date working copy of the trunk):</para>

<screen>
$ svn merge --reintegrate \
http://svn.example.com/repos/calc/branches/my-calc-branch
--- Merging differences between repository URLs into '.':
U button.c
U integer.c
U Makefile
U .

$ # build, test, verify, ...

$ svn commit -m "Merge my-calc-branch back into trunk!"
Sending .
Sending button.c
Sending integer.c
Sending Makefile
Transmitting file data ..
Committed revision 391.
</screen>

<para>To merge changes to a single file:</para>

<screen>
$ cd myproj
$ svn merge -r 30:31 thhgttg.txt
U thhgttg.txt
</screen>

</refsect1>
</refentry>

<refentry id="svn.ref.svn.c.mergeinfo">

<indexterm>
<primary>svn</primary>
<secondary>subcommands</secondary>
<tertiary>mergeinfo</tertiary>
</indexterm>

<refnamediv>
<refname>svn mergeinfo</refname>
<refpurpose>Query merge-related information. See <xref
linkend="svn.branchmerge.basicmerging.mergeinfo"/> for
details.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svn mergeinfo SOURCE_URL[@REV] [TARGET[@REV]...]</programlisting>

</refsect1>
<refsect1>
<title>Description</title>
<para>Query information related to merges (or potential
merges) between <replaceable>SOURCE-URL</replaceable> and
<replaceable>TARGET</replaceable>. If
the <option>--show-revs</option> option is not provided,
display revisions which have been merged
from <replaceable>SOURCE-URL</replaceable>
to <replaceable>TARGET</replaceable>. Otherwise, display
either <literal>merged</literal>
or <literal>eligible</literal> revisions as specified by
the <option>--show-revs</option> option.</para>

</refsect1>
<refsect1>
<title>Alternate names</title>
<para>None</para>
</refsect1>

<refsect1>
<title>Changes</title>
<para>Nothing</para>
</refsect1>

<refsect1>
<title>Accesses repository</title>
<para>Yes</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--revision (-r) REV
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>Find out which changesets your trunk directory has
already received as well as what changesets it's still
eligible to receive:</para>

<screen>
$ svn mergeinfo branches/test
Path: branches/test
Source path: /trunk
Merged ranges: r2:13
Eligible ranges: r13:15
</screen>

</refsect1>
</refentry>


<refentry id="svn.ref.svn.c.mkdir">

<indexterm>
<primary>svn</primary>
<secondary>subcommands</secondary>
<tertiary>mkdir</tertiary>
</indexterm>

<refnamediv>
<refname>svn mkdir</refname>
<refpurpose>Create a new directory under version control.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svn mkdir PATH...</programlisting>
<programlisting>svn mkdir URL...</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Create a directory with a name given by the final
component of the <replaceable>PATH</replaceable> or <replaceable>URL</replaceable>.
A directory specified by a working copy
<replaceable>PATH</replaceable> is scheduled for addition
in the working copy. A directory specified by a URL is
created in the repository via an immediate commit.
Multiple directory URLs are committed atomically. In both
cases, all the intermediate directories must already exist
unless the <option>--parents</option> option is
used.</para>
</refsect1>

<refsect1>
<title>Alternate names</title>
<para>None</para>
</refsect1>

<refsect1>
<title>Changes</title>
<para>Working copy; repository if operating on a URL</para>
</refsect1>

<refsect1>
<title>Accesses repository</title>
<para>Only if operating on a URL</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--editor-cmd EDITOR
--encoding ENC
--file (-F) FILE
--force-log
--message (-m) TEXT
--parents
--quiet (-q)
--with-revprop ARG
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>Create a directory in your working copy:</para>

<screen>
$ svn mkdir newdir
A newdir
</screen>

<para>Create one in the repository (this is an instant commit, so a
log message is required):</para>

<screen>
$ svn mkdir -m "Making a new dir." http://svn.red-bean.com/repos/newdir

Committed revision 26.
</screen>

</refsect1>
</refentry>

<refentry id="svn.ref.svn.c.move">

<indexterm>
<primary>svn</primary>
<secondary>subcommands</secondary>
<tertiary>move</tertiary>
</indexterm>

<refnamediv>
<refname>svn move</refname>
<refpurpose>Move a file or directory.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svn move SRC... DST</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>This command moves files or directories in your
working copy or in the repository.</para>

<tip>
<para>This command is equivalent to an <command>svn
copy</command> followed by <command>svn
delete</command>.</para>
</tip>

<para>When moving multiple sources, they will be added as
children of <replaceable>DST</replaceable>, which must be
a directory.</para>

<note>
<para>Subversion does not support moving between working
copies and URLs. In addition, you can only move files
within a single repository&mdash;Subversion does not
support cross-repository moving. Subversion supports
the following types of moves within a single repository:</para>
</note>

<variablelist>

<varlistentry>
<term>WC &rarr; WC</term>
<listitem>
<para>Move and schedule a file or directory for
addition (with history).</para>
</listitem>
</varlistentry>

<varlistentry>
<term>URL &rarr; URL</term>
<listitem>
<para>Complete server-side rename.</para>
</listitem>
</varlistentry>

</variablelist>
</refsect1>

<refsect1>
<title>Alternate names</title>
<para><command>mv</command>, <command>rename</command>, <command>ren</command></para>
</refsect1>

<refsect1>
<title>Changes</title>
<para>Working copy; repository if operating on a URL</para>
</refsect1>

<refsect1>
<title>Accesses repository</title>
<para>Only if operating on a URL</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--editor-cmd EDITOR
--encoding ENC
--file (-F) FILE
--force
--force-log
--message (-m) TEXT
--parents
--quiet (-q)
--revision (-r) REV
--with-revprop ARG
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>Move a file in your working copy:</para>

<screen>
$ svn move foo.c bar.c
A bar.c
D foo.c
</screen>

<para>Move several files in your working copy into a
subdirectory:</para>

<screen>
$ svn move baz.c bat.c qux.c src
A src/baz.c
D baz.c
A src/bat.c
D bat.c
A src/qux.c
D qux.c
</screen>

<para>Move a file in the repository (this is an immediate commit,
so it requires a commit message):</para>

<screen>
$ svn move -m "Move a file" http://svn.red-bean.com/repos/foo.c \
http://svn.red-bean.com/repos/bar.c

Committed revision 27.
</screen>

</refsect1>
</refentry>

<refentry id="svn.ref.svn.c.propdel">

<indexterm>
<primary>svn</primary>
<secondary>subcommands</secondary>
<tertiary>propdel</tertiary>
</indexterm>

<refnamediv>
<refname>svn propdel</refname>
<refpurpose>Remove a property from an item.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svn propdel PROPNAME [PATH...]</programlisting>
<programlisting>svn propdel PROPNAME --revprop -r REV [TARGET]</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>This removes properties from files, directories, or
revisions. The first form removes versioned properties in
your working copy, and the second removes unversioned
remote properties on a repository revision
(<replaceable>TARGET</replaceable> determines only which
repository to access).</para>
</refsect1>

<refsect1>
<title>Alternate names</title>
<para><command>pdel</command>, <command>pd</command></para>
</refsect1>

<refsect1>
<title>Changes</title>
<para>Working copy; repository only if operating on a URL</para>
</refsect1>

<refsect1>
<title>Accesses repository</title>
<para>Only if operating on a URL</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--changelist ARG
--depth ARG
--quiet (-q)
--recursive (-R)
--revision (-r) REV
--revprop
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>Delete a property from a file in your working
copy:</para>

<screen>
$ svn propdel svn:mime-type some-script
property 'svn:mime-type' deleted from 'some-script'.
</screen>

<para>Delete a revision property:</para>

<screen>
$ svn propdel --revprop -r 26 release-date
property 'release-date' deleted from repository revision '26'
</screen>

</refsect1>
</refentry>

<refentry id="svn.ref.svn.c.propedit">

<indexterm>
<primary>svn</primary>
<secondary>subcommands</secondary>
<tertiary>propedit</tertiary>
</indexterm>

<refnamediv>
<refname>svn propedit</refname>
<refpurpose>Edit the property of one or more items under
version control. See <xref
linkend="svn.ref.svn.c.propset"/> later in this chapter.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svn propedit PROPNAME TARGET...</programlisting>
<programlisting>svn propedit PROPNAME --revprop -r REV [TARGET]</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Edit one or more properties using your favorite
editor. The first form edits versioned properties in
your working copy, and the second edits unversioned
remote properties on a repository revision
(<replaceable>TARGET</replaceable> determines only which
repository to access).</para>
</refsect1>

<refsect1>
<title>Alternate names</title>
<para><command>pedit</command>, <command>pe</command></para>
</refsect1>

<refsect1>
<title>Changes</title>
<para>Working copy; repository only if operating on a URL</para>
</refsect1>

<refsect1>
<title>Accesses repository</title>
<para>Only if operating on a URL</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--editor-cmd EDITOR
--encoding ENC
--file (-F) ARG
--force
--force-log
--message (-m) ARG
--revision (-r) REV
--revprop
--with-revprop ARG
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para><command>svn propedit</command> makes it easy to
modify properties that have multiple values:</para>

<screen>
$ svn propedit svn:keywords foo.c
&lt;svn will launch your favorite editor here, with a buffer open
containing the current contents of the svn:keywords property. You
can add multiple values to a property easily here by entering one
value per line.&gt;
Set new value for property 'svn:keywords' on 'foo.c'
</screen>

</refsect1>
</refentry>

<refentry id="svn.ref.svn.c.propget">

<indexterm>
<primary>svn</primary>
<secondary>subcommands</secondary>
<tertiary>propget</tertiary>
</indexterm>

<refnamediv>
<refname>svn propget</refname>
<refpurpose>Print the value of a property.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svn propget PROPNAME [TARGET[@REV]...]</programlisting>
<programlisting>svn propget PROPNAME --revprop -r REV [URL]</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Print the value of a property on files,
directories, or revisions. The first form prints the
versioned property of an item or items in your working
copy, and the second prints unversioned remote
properties on a repository revision. See <xref
linkend="svn.advanced.props"/> for more information on
properties.</para>
</refsect1>

<refsect1>
<title>Alternate names</title>
<para><command>pget</command>, <command>pg</command></para>
</refsect1>

<refsect1>
<title>Changes</title>
<para>Working copy; repository only if operating on a URL</para>
</refsect1>

<refsect1>
<title>Accesses repository</title>
<para>Only if operating on a URL</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--changelist ARG
--depth ARG
--recursive (-R)
--revision (-r) REV
--revprop
--strict
--xml
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>Examine a property of a file in your working
copy:</para>

<screen>
$ svn propget svn:keywords foo.c
Author
Date
Rev
</screen>

<para>The same goes for a revision property:</para>

<screen>
$ svn propget svn:log --revprop -r 20
Began journal.
</screen>

<para>Lastly, you can get <command>svn propget</command>
output in XML format with the <option>--xml</option>
option:</para>

<screen>
$ svn propget --xml svn:ignore .
&lt;?xml version="1.0"?&gt;
&lt;properties&gt;
&lt;target
path=""&gt;
&lt;property
name="svn:ignore"&gt;*.o
&lt;/property&gt;
&lt;/target&gt;
&lt;/properties&gt;
</screen>

</refsect1>
</refentry>

<refentry id="svn.ref.svn.c.proplist">

<indexterm>
<primary>svn</primary>
<secondary>subcommands</secondary>
<tertiary>proplist</tertiary>
</indexterm>

<refnamediv>
<refname>svn proplist</refname>
<refpurpose>List all properties.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svn proplist [TARGET[@REV]...]</programlisting>
<programlisting>svn proplist --revprop -r REV [TARGET]</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>List all properties on files, directories, or
revisions. The first form lists versioned properties in
your working copy, and the second lists unversioned remote
properties on a repository revision
(<replaceable>TARGET</replaceable> determines only which
repository to access).</para>
</refsect1>

<refsect1>
<title>Alternate names</title>
<para><command>plist</command>, <command>pl</command></para>
</refsect1>

<refsect1>
<title>Changes</title>
<para>Working copy; repository only if operating on a URL</para>
</refsect1>

<refsect1>
<title>Accesses repository</title>
<para>Only if operating on a URL</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--changelist ARG
--depth ARG
--quiet (-q)
--recursive (-R)
--revision (-r) REV
--revprop
--verbose (-v)
--xml
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>You can use <command>proplist</command> to see the properties on an
item in your working copy:</para>

<screen>
$ svn proplist foo.c
Properties on 'foo.c':
svn:mime-type
svn:keywords
owner
</screen>

<para>But with the <option>--verbose</option> flag, <command>svn
proplist</command> is extremely handy as it also shows you the
values for the properties:</para>

<screen>
$ svn proplist --verbose foo.c
Properties on 'foo.c':
svn:mime-type : text/plain
svn:keywords : Author Date Rev
owner : sally
</screen>

<para>Lastly, you can get <command>svn proplist</command>
output in xml format with the <option>--xml</option>
option:</para>

<screen>
$ svn proplist --xml
&lt;?xml version="1.0"?&gt;
&lt;properties&gt;
&lt;target
path="."&gt;
&lt;property
name="svn:ignore"/&gt;
&lt;/target&gt;
&lt;/properties&gt;
</screen>

</refsect1>
</refentry>

<refentry id="svn.ref.svn.c.propset">

<indexterm>
<primary>svn</primary>
<secondary>subcommands</secondary>
<tertiary>propset</tertiary>
</indexterm>

<refnamediv>
<refname>svn propset</refname>
<refpurpose>Set <replaceable>PROPNAME</replaceable> to <replaceable>PROPVAL</replaceable> on files, directories, or revisions.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svn propset PROPNAME [PROPVAL | -F VALFILE] PATH...</programlisting>
<programlisting>svn propset PROPNAME --revprop -r REV [PROPVAL | -F VALFILE] [TARGET]</programlisting>
</refsect1>

<refsect1>
<title>Description</title>

<para>Set <replaceable>PROPNAME</replaceable> to
<replaceable>PROPVAL</replaceable> on files, directories,
or revisions. The first example creates a versioned, local
property change in the working copy, and the second
creates an unversioned, remote property change on a
repository revision
(<replaceable>TARGET</replaceable> determines only which
repository to access).</para>

<tip>
<para>Subversion has a number of <quote>special</quote>
properties that affect its behavior. See <xref
linkend="svn.ref.properties"/> later in this chapter for more on these
properties.</para>
</tip>

</refsect1>
<refsect1>
<title>Alternate names</title>
<para><replaceable>pset</replaceable>, <replaceable>ps</replaceable></para>
</refsect1>

<refsect1>
<title>Changes</title>
<para>Working copy; repository only if operating on a URL</para>
</refsect1>

<refsect1>
<title>Accesses repository</title>
<para>Only if operating on a URL</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--changelist ARG
--depth ARG
--encoding ENC
--file (-F) FILE
--force
--quiet (-q)
--recursive (-R)
--revision (-r) REV
--revprop
--targets FILENAME
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>Set the MIME type for a file:</para>

<screen>
$ svn propset svn:mime-type image/jpeg foo.jpg
property 'svn:mime-type' set on 'foo.jpg'
</screen>

<para>On a Unix system, if you want a file to have the
executable permission set:</para>

<screen>
$ svn propset svn:executable ON somescript
property 'svn:executable' set on 'somescript'
</screen>

<para>Perhaps you have an internal policy to set certain
properties for the benefit of your coworkers:</para>

<screen>
$ svn propset owner sally foo.c
property 'owner' set on 'foo.c'
</screen>

<para>If you made a mistake in a log message for a
particular revision and want to change it, use
<option>--revprop</option> and set <literal>svn:log</literal>
to the new log message:</para>

<screen>
$ svn propset --revprop -r 25 svn:log "Journaled about trip to New York."
property 'svn:log' set on repository revision '25'
</screen>

<para>Or, if you don't have a working copy, you can
provide a URL:</para>

<screen>
$ svn propset --revprop -r 26 svn:log "Document nap." \
http://svn.red-bean.com/repos
property 'svn:log' set on repository revision '25'
</screen>

<para>Lastly, you can tell <command>propset</command> to take its input from
a file. You could even use this to set the contents of a
property to something binary:</para>

<screen>
$ svn propset owner-pic -F sally.jpg moo.c
property 'owner-pic' set on 'moo.c'
</screen>

<note>
<para>By default, you cannot modify revision properties
in a Subversion repository. Your repository
administrator must explicitly enable revision property
modifications by creating a hook named
<literal>pre-revprop-change</literal>. See <xref
linkend="svn.reposadmin.create.hooks"/> for more information on
hook scripts.</para>
</note>

</refsect1>
</refentry>

<refentry id="svn.ref.svn.c.resolve">

<indexterm>
<primary>svn</primary>
<secondary>subcommands</secondary>
<tertiary>resolve</tertiary>
</indexterm>

<refnamediv>
<refname>svn resolve</refname>
<refpurpose>Resolve conflicts on working copy files or
directories.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svn resolve PATH...</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Resolve <quote>conflicted</quote> state on working
copy files or directories. This routine does not
semantically resolve conflict markers; however, it
replaces <replaceable>PATH</replaceable> with the version
specified by the <option>--accept</option> argument and
then removes conflict-related artifact files. This allows
<replaceable>PATH</replaceable> to be committed
again&mdash;that is, it tells Subversion that the
conflicts have been
<quote>resolved.</quote>. You can pass the following
arguments to the <option>--accept</option> command
depending on your desired resolution:</para>

<variablelist>

<varlistentry>
<term><literal>base</literal></term>
<listitem>
<para>Choose the file that was the
<literal>BASE</literal> revision before you updated
your working copy. That is, the file that you
checked out before you made your latest
edits.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>working</literal></term>
<listitem>
<para>Assuming that you've manually handled the
conflict resolution, choose the version of the file as
it currently stands in your working copy.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>mine-full</literal></term>
<listitem>
<para>Resolve all conflicted files with copies of the
files as they stood immediately before you
ran <command>svn update</command>.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>theirs-full</literal></term>
<listitem>
<para>Resolve all conflicted files with copies of the
files that were fetched from the server when you
ran <command>svn update</command>.</para>
</listitem>
</varlistentry>

</variablelist>

<para>See <xref
linkend="svn.tour.cycle.resolve"/> for an in-depth look at
resolving conflicts.</para>

</refsect1>

<refsect1>
<title>Alternate names</title>
<para>None</para>
</refsect1>

<refsect1>
<title>Changes</title>
<para>Working copy</para>
</refsect1>

<refsect1>
<title>Accesses repository</title>
<para>No</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--accept ARG
--depth ARG
--quiet (-q)
--recursive (-R)
--targets FILENAME
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>Here's an example where, after a postponed conflict
resolution during update, <command>svn resolve</command>
replaces the all conflicts in
file <filename>foo.c</filename> with your edits:</para>

<screen>
$ svn up
Conflict discovered in 'foo.c'.
Select: (p) postpone, (df) diff-full, (e) edit,
(h) help for more options: p
C foo.c
Updated to revision 5.

$ svn resolve --accept mine-full foo.c
Resolved conflicted state of 'foo.c'
</screen>

</refsect1>
</refentry>

<refentry id="svn.ref.svn.c.resolved">

<indexterm>
<primary>svn</primary>
<secondary>subcommands</secondary>
<tertiary>resolved</tertiary>
</indexterm>

<refnamediv>
<refname>svn resolved</refname>
<refpurpose><emphasis>Deprecated</emphasis>.
Remove <quote>conflicted</quote> state on working copy
files or directories.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svn resolved PATH...</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>This command has been deprecated in favor of
running <userinput>svn resolve --accept working <replaceable>PATH</replaceable></userinput>.
See <xref linkend="svn.ref.svn.c.resolve"/> in the preceding section for
details.</para>

<para>Remove <quote>conflicted</quote> state on working copy
files or directories. This routine does not semantically
resolve conflict markers; it merely removes
conflict-related artifact files and allows
<replaceable>PATH</replaceable> to be committed again;
that is, it tells Subversion that the conflicts have been
<quote>resolved.</quote> See <xref
linkend="svn.tour.cycle.resolve"/> for an in-depth look at
resolving conflicts.</para> </refsect1>

<refsect1>
<title>Alternate names</title>
<para>None</para>
</refsect1>

<refsect1>
<title>Changes</title>
<para>Working copy</para>
</refsect1>

<refsect1>
<title>Accesses repository</title>
<para>No</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--depth ARG
--quiet (-q)
--recursive (-R)
--targets FILENAME
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>If you get a conflict on an update, your working
copy will sprout three new files:</para>

<screen>
$ svn update
C foo.c
Updated to revision 31.
$ ls
foo.c
foo.c.mine
foo.c.r30
foo.c.r31
</screen>

<para>Once you've resolved the conflict and
<filename>foo.c</filename> is ready to be committed, run
<command>svn resolved</command> to let your working copy
know you've taken care of everything.</para>

<warning>
<para>You <emphasis>can</emphasis> just remove the
conflict files and commit, but <command>svn
resolved</command> fixes up some bookkeeping data
in the working copy administrative area in addition
to removing the conflict files, so we recommend that
you use this command.</para>
</warning>

</refsect1>
</refentry>

<refentry id="svn.ref.svn.c.revert">

<indexterm>
<primary>svn</primary>
<secondary>subcommands</secondary>
<tertiary>revert</tertiary>
</indexterm>

<refnamediv>
<refname>svn revert</refname>
<refpurpose>Undo all local edits.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svn revert PATH...</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Reverts any local changes to a file or directory and
resolves any conflicted states. <command>svn
revert</command> will revert not only the contents of an
item in your working copy, but also any property
changes. Finally, you can use it to undo any scheduling
operations that you may have performed (e.g., files scheduled
for addition or deletion can be
<quote>unscheduled</quote>).</para>
</refsect1>

<refsect1>
<title>Alternate names</title>
<para>None</para>
</refsect1>

<refsect1>
<title>Changes</title>
<para>Working copy</para>
</refsect1>

<refsect1>
<title>Accesses repository</title>
<para>No</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--changelist ARG
--depth ARG
--quiet (-q)
--recursive (-R)
--targets FILENAME
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>Discard changes to a file:</para>

<screen>
$ svn revert foo.c
Reverted foo.c
</screen>

<para>If you want to revert a whole directory of files,
use the <option>--depth=infinity</option> option:</para>

<screen>
$ svn revert --depth=infinity .
Reverted newdir/afile
Reverted foo.c
Reverted bar.txt
</screen>

<para>Lastly, you can undo any scheduling
operations:</para>

<screen>
$ svn add mistake.txt whoops
A mistake.txt
A whoops
A whoops/oopsie.c

$ svn revert mistake.txt whoops
Reverted mistake.txt
Reverted whoops

$ svn status
? mistake.txt
? whoops
</screen>

<warning>
<para><command>svn revert</command> is inherently
dangerous, since its entire purpose is to throw away
data&mdash;namely, your uncommitted changes. Once
you've reverted, Subversion provides <emphasis>no
way</emphasis> to get back those uncommitted
changes.</para>

<para>If you provide no targets to <command>svn
revert</command>, it will do nothing&mdash;to protect
you from accidentally losing changes in your working
copy, <command>svn revert</command> requires you to
provide at least one target.</para>
</warning>

</refsect1>
</refentry>

<refentry id="svn.ref.svn.c.status">

<indexterm>
<primary>svn</primary>
<secondary>subcommands</secondary>
<tertiary>status</tertiary>
</indexterm>

<refnamediv>
<refname>svn status</refname>
<refpurpose>Print the status of working copy files and directories.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svn status [PATH...]</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Print the status of working copy files and
directories. With no arguments, it prints only locally
modified items (no repository access). With
<option>--show-updates</option>, it adds working revision
and server out-of-date information. With
<option>--verbose</option>, it prints full revision
information on every item. With <option>--quiet</option>,
it prints only summary information about locally modified
items.</para>

<para>The first six columns in the output are each one
character wide, and each column gives you information
about different aspects of each working copy item.</para>

<para>The first column indicates that an item
was added, deleted, or otherwise changed:</para>

<variablelist>

<varlistentry>
<term><literal>' '</literal></term>
<listitem>
<para>No modifications.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>'A'</literal></term>
<listitem>
<para>Item is scheduled for addition.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>'D'</literal></term>
<listitem>
<para>Item is scheduled for deletion.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>'M'</literal></term>
<listitem>
<para>Item has been modified.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>'R'</literal></term>
<listitem>
<para>Item has been replaced in your working copy.
This means the file was scheduled for deletion, and
then a new file with the same name was scheduled for
addition in its place.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>'C'</literal></term>
<listitem>
<para>The contents (as opposed to the properties) of
the item conflict with updates received from the
repository.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>'X'</literal></term>
<listitem>
<para>Item is present because of an externals definition.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>'I'</literal></term>
<listitem>
<para>Item is being ignored (e.g., with the
<literal>svn:ignore</literal> property).</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>'?'</literal></term>
<listitem>
<para>Item is not under version control.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>'!'</literal></term>
<listitem>
<para>Item is missing (e.g., you moved or deleted it
without using <command>svn</command>). This also
indicates that a directory is incomplete (a checkout
or update was interrupted).</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>'~'</literal></term>
<listitem>
<para>Item is versioned as one kind of object (file,
directory, link), but has been replaced by a different
kind of object.</para>
</listitem>
</varlistentry>

</variablelist>

<para>The second column tells the status of a file's or
directory's properties:</para>

<variablelist>

<varlistentry>
<term><literal>' '</literal></term>
<listitem>
<para>No modifications.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>'M'</literal></term>
<listitem>
<para>Properties for this item have been
modified.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>'C'</literal></term>
<listitem>
<para>Properties for this item are in conflict with
property updates received from the
repository.</para>
</listitem>
</varlistentry>

</variablelist>

<para>The third column is populated only if the
working copy directory is locked (see
<xref linkend="svn.tour.cleanup"/>):</para>

<variablelist>

<varlistentry>
<term><literal>' '</literal></term>
<listitem>
<para>Item is not locked.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>'L'</literal></term>
<listitem>
<para>Item is locked.</para>
</listitem>
</varlistentry>

</variablelist>

<para>The fourth column is populated only if the item is
scheduled for addition-with-history:</para>

<variablelist>

<varlistentry>
<term><literal>' '</literal></term>
<listitem>
<para>No history scheduled with commit.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>'+'</literal></term>
<listitem>
<para>History scheduled with commit.</para>
</listitem>
</varlistentry>

</variablelist>

<para>The fifth column is populated only if the item is
switched relative to its parent (see <xref
linkend="svn.branchmerge.switchwc"/>):</para>

<variablelist>

<varlistentry>
<term><literal>' '</literal></term>
<listitem>
<para>Item is a child of its parent directory.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>'S'</literal></term>
<listitem>
<para>Item is switched.</para>
</listitem>
</varlistentry>

</variablelist>

<para>The sixth column is populated with lock information:</para>

<variablelist>

<varlistentry>
<term><literal>' '</literal></term>
<listitem>
<para>When <option>--show-updates</option> is used,
the file is not locked. If
<option>--show-updates</option> is
<emphasis>not</emphasis> used, this merely means that
the file is not locked in this working copy.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>K</term>
<listitem>
<para>File is locked in this working copy.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>O</term>
<listitem>
<para>File is locked either by another user or in
another working copy. This appears only when
<option>--show-updates</option> is used.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>T</term>
<listitem>
<para>File was locked in this working copy, but the
lock has been <quote>stolen</quote> and is invalid.
The file is currently locked in the repository. This
appears only when <option>--show-updates</option> is
used.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>B</term>
<listitem>
<para>File was locked in this working copy, but the
lock has been <quote>broken</quote> and is invalid.
The file is no longer locked. This appears only when
<option>--show-updates</option> is used.</para>
</listitem>
</varlistentry>

</variablelist>




<para>The out-of-date information appears in the seventh
column (only if you pass the
<option>--show-updates</option> option):</para>

<variablelist>

<varlistentry>
<term><literal>' '</literal></term>
<listitem>
<para>The item in your working copy is up to date.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>'*'</literal></term>
<listitem>
<para>A newer revision of the item exists on the
server.</para>
</listitem>
</varlistentry>

</variablelist>

<para>The remaining fields are variable width and
delimited by spaces. The working revision is the next
field if the <option>--show-updates</option> or
<option>--verbose</option> option is passed.</para>

<para>If the <option>--verbose</option> option is passed,
the last committed revision and last committed author
are displayed next.</para>

<para>The working copy path is always the final field, so
it can include spaces.</para>

</refsect1>

<refsect1>
<title>Alternate names</title>
<para><command>stat</command>, <command>st</command></para>
</refsect1>

<refsect1>
<title>Changes</title>
<para>Nothing</para>
</refsect1>

<refsect1>
<title>Accesses repository</title>
<para>Only if using <option>--show-updates</option></para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--changelist ARG
--depth ARG
--ignore-externals
--incremental
--no-ignore
--quiet (-q)
--show-updates (-u)
--verbose (-v)
--xml
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>This is the easiest way to find out what changes you
have made to your working copy:</para>

<screen>
$ svn status wc
M wc/bar.c
A + wc/qax.c
</screen>

<para>If you want to find out what files in your working
copy are out of date, pass the
<option>--show-updates</option> option (this will
<emphasis>not</emphasis> make any changes to your
working copy). Here you can see that
<filename>wc/foo.c</filename> has changed in the
repository since we last updated our working
copy:</para>

<screen>
$ svn status --show-updates wc
M 965 wc/bar.c
* 965 wc/foo.c
A + 965 wc/qax.c
Status against revision: 981
</screen>

<note>
<para><option>--show-updates</option>
<emphasis>only</emphasis> places an asterisk next to
items that are out of date (i.e., items that will be
updated from the repository if you later use <command>svn
update</command>). <option>--show-updates</option> does
<emphasis>not</emphasis> cause the status listing to
reflect the repository's version of the item (although
you can see the revision number in the repository by
passing the <option>--verbose</option> option).</para>
</note>

<para>The most information you can get out of
the status subcommand is as follows:</para>

<screen>
$ svn status --show-updates --verbose wc
M 965 938 sally wc/bar.c
* 965 922 harry wc/foo.c
A + 965 687 harry wc/qax.c
965 687 harry wc/zig.c
Head revision: 981
</screen>

<para>Lastly, you can get <command>svn status</command>
output in XML format with the <option>--xml</option>
option:</para>

<screen>
$ svn status --xml wc
&lt;?xml version="1.0"?&gt;
&lt;status&gt;
&lt;target
path="wc"&gt;
&lt;entry
path="qax.c"&gt;
&lt;wc-status
props="none"
item="added"
revision="0"&gt;
&lt;/wc-status&gt;
&lt;/entry&gt;
&lt;entry
path="bar.c"&gt;
&lt;wc-status
props="normal"
item="modified"
revision="965"&gt;
&lt;commit
revision="965"&gt;
&lt;author&gt;sally&lt;/author&gt;
&lt;date&gt;2008-05-28T06:35:53.048870Z&lt;/date&gt;
&lt;/commit&gt;
&lt;/wc-status&gt;
&lt;/entry&gt;
&lt;/target&gt;
&lt;/status&gt;
</screen>

<para>For many more examples of <command>svn status</command>,
see <xref linkend="svn.tour.cycle.examine.status"/>.</para>

</refsect1>
</refentry>

<refentry id="svn.ref.svn.c.switch">

<indexterm>
<primary>svn</primary>
<secondary>subcommands</secondary>
<tertiary>switch</tertiary>
</indexterm>

<refnamediv>
<refname>svn switch</refname>
<refpurpose>Update working copy to a different URL.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svn switch URL[@PEGREV] [PATH]</programlisting>

<programlisting>switch --relocate FROM TO [PATH...]</programlisting>


</refsect1>
<refsect1>
<title>Description</title>

<para>The first variant of this subcommand (without the
<option>--relocate</option> option) updates your working
copy to point to a new URL&mdash;usually a URL that
shares a common ancestor with your working copy, although
not necessarily. This is the Subversion way to move a
working copy to a new branch. If specified,
<replaceable>PEGREV</replaceable> determines in which
revision the target is first looked up. See <xref
linkend="svn.branchmerge.switchwc"/> for an in-depth look
at switching.</para>

<para>If <option>--force</option> is used, unversioned
obstructing paths in the working copy do not automatically
cause a failure if the switch attempts to add the same
path. If the obstructing path is the same type (file or
directory) as the corresponding path in the repository, it
becomes versioned but its contents are left untouched in
the working copy. This means that an obstructing
directory's unversioned children may also obstruct and
become versioned. For files, any content differences
between the obstruction and the repository are treated
like a local modification to the working copy. All
properties from the repository are applied to the
obstructing path.</para>

<para>As with most subcommands, you can limit the scope of
the switch operation to a particular tree depth using the
<option>--depth</option> option. Alternatively, you can
use the <option>--set-depth</option> option to set a new
<quote>sticky</quote> working copy depth on the switch
target. Currently, the depth of a working copy directory
can only be increased (telescoped more deeply); you cannot
make a directory more shallow.</para>

<para>The <option>--relocate</option> option causes
<command>svn switch</command> to do something different:
it updates your working copy to point to <emphasis>the
same</emphasis> repository directory, only at a different
URL (typically because an administrator has moved the
repository to another server, or to another URL on the
same server).</para>

</refsect1>

<refsect1>
<title>Alternate names</title>
<para><command>sw</command></para>
</refsect1>

<refsect1>
<title>Changes</title>
<para>Working copy</para>
</refsect1>

<refsect1>
<title>Accesses repository</title>
<para>Yes</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--accept ARG
--depth ARG
--diff3-cmd CMD
--force
--ignore-externals
--quiet (-q)
--relocate
--revision (-r) REV
--set-depth ARG
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>If you're currently inside the directory
<filename>vendors</filename>, which was branched to
<filename>vendors-with-fix</filename>, and you'd like to
switch your working copy to that branch:</para>

<screen>
$ svn switch http://svn.red-bean.com/repos/branches/vendors-with-fix .
U myproj/foo.txt
U myproj/bar.txt
U myproj/baz.c
U myproj/qux.c
Updated to revision 31.
</screen>

<para>To switch back, just provide the URL to the
location in the repository from which you originally
checked out your working copy:</para>

<screen>
$ svn switch http://svn.red-bean.com/repos/trunk/vendors .
U myproj/foo.txt
U myproj/bar.txt
U myproj/baz.c
U myproj/qux.c
Updated to revision 31.
</screen>

<tip>
<para>You can switch just part of your working copy to a
branch if you don't want to switch your entire working
copy.</para>
</tip>

<para>Sometimes an administrator might change the location
(or apparent location) of your repository&mdash;in other
words, the content of the repository doesn't change, but
the repository's root URL does. For example, the hostname
may change, the URL scheme may change, or any part of the
URL that leads to the repository itself may change.
Rather than check out a new working copy, you can have the
<command>svn switch</command> command
<quote>rewrite</quote> your working copy's administrative
metadata to refer to the new repository location. If you
use the <option>--relocate</option> option to <command>svn
switch</command>, Subversion will contact the repository
to validate the relocation request (looking for the
repository at the new URL, of course), and then do this
metadata rewriting. No file contents will be changed as
the result of this type of switch operation&mdash;this is
a metadata-only modification to the working copy.</para>

<screen>
$ svn checkout file:///var/svn/repos test
A test/a
A test/b
&hellip;

$ mv repos newlocation
$ cd test/

$ svn update
svn: Unable to open an ra_local session to URL
svn: Unable to open repository 'file:///var/svn/repos'

$ svn switch --relocate file:///var/svn/repos file:///tmp/newlocation .
$ svn update
At revision 3.
</screen>

<warning>
<para>Be careful when using the
<option>--relocate</option> option. If you mistype the
argument, you might end up creating nonsensical URLs
within your working copy that render the whole workspace
unusable and tricky to fix. It's also important to
understand exactly when one should or shouldn't use
<option>--relocate</option>. Here's the rule of
thumb:</para>

<itemizedlist>
<listitem><para>If the working copy needs to reflect a
new directory <emphasis>within</emphasis> the
repository, use just <command>svn
switch</command>.</para></listitem>

<listitem><para>If the working copy still reflects the
same repository directory, but the location of the
repository itself has changed, use <command>svn
switch</command> with the <option>--relocate</option> option.</para></listitem>
</itemizedlist>
</warning>

</refsect1>
</refentry>


<refentry id="svn.ref.svn.c.unlock">

<indexterm>
<primary>svn</primary>
<secondary>subcommands</secondary>
<tertiary>unlock</tertiary>
</indexterm>

<refnamediv>
<refname>svn unlock</refname>
<refpurpose>Unlock working copy paths or URLs.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svn unlock TARGET...</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Unlock each <replaceable>TARGET</replaceable>. If any
<replaceable>TARGET</replaceable> is locked by
another user or no valid lock token exists in the working
copy, print a warning and continue unlocking the rest of
the <replaceable>TARGET</replaceable>s. Use
<option>--force</option> to break a lock belonging to
another user or working copy.</para>

</refsect1>

<refsect1>
<title>Alternate names</title>
<para>None</para>
</refsect1>

<refsect1>
<title>Changes</title>
<para>Working copy, repository</para>
</refsect1>

<refsect1>
<title>Accesses repository</title>
<para>Yes</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--force
--targets FILENAME
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>Unlock two files in your working copy:</para>

<screen>
$ svn unlock tree.jpg house.jpg
'tree.jpg' unlocked.
'house.jpg' unlocked.
</screen>

<para>Unlock a file in your working copy that is currently
locked by another user:</para>

<screen>
$ svn unlock tree.jpg
svn: 'tree.jpg' is not locked in this working copy
$ svn unlock --force tree.jpg
'tree.jpg' unlocked.
</screen>

<para>Unlock a file without a working copy:</para>

<screen>
$ svn unlock http://svn.red-bean.com/repos/test/tree.jpg
'tree.jpg unlocked.
</screen>

<para>For further details, see <xref
linkend="svn.advanced.locking"/>.</para>

</refsect1>
</refentry>


<refentry id="svn.ref.svn.c.update">

<indexterm>
<primary>svn</primary>
<secondary>subcommands</secondary>
<tertiary>update</tertiary>
</indexterm>

<refnamediv>
<refname>svn update</refname>
<refpurpose>Update your working copy.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svn update [PATH...]</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para><command>svn update</command> brings changes from the
repository into your working copy. If no revision is given,
it brings your working copy up to date with the
<literal>HEAD</literal> revision. Otherwise, it
synchronizes the working copy to the revision given by the
<option>--revision</option> option. As part of the
synchronization, <command>svn update</command> also
removes any stale locks (see <xref
linkend="svn.tour.cleanup"/>) found in the
working copy.</para>

<para>For each updated item, it prints a line that starts
with a character reporting the action taken. These
characters have the following meaning:</para>

<variablelist>

<varlistentry>
<term><literal>A</literal></term>
<listitem>
<para>Added</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>B</literal></term>
<listitem>
<para>Broken lock (third column only)</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>D</literal></term>
<listitem>
<para>Deleted</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>U</literal></term>
<listitem>
<para>Updated</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>C</literal></term>
<listitem>
<para>Conflicted</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>G</literal></term>
<listitem>
<para>Merged</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>E</literal></term>
<listitem>
<para>Existed</para>
</listitem>
</varlistentry>

</variablelist>

<para>A character in the first column signifies an update to
the actual file, whereas updates to the file's properties
are shown in the second column. Lock information is
printed in the third column.</para>

<para>As with most subcommands, you can limit the scope of
the update operation to a particular tree depth using the
<option>--depth</option> option. Alternatively, you can
use the <option>--set-depth</option> option to set a new
<quote>sticky</quote> working copy depth on the update
target. Currently, the depth of a working copy directory
can only be increased (telescoped more deeply); you cannot
make a directory more shallow.</para>
</refsect1>

<refsect1>
<title>Alternate names</title>
<para><command>up</command></para>
</refsect1>

<refsect1>
<title>Changes</title>
<para>Working copy</para>
</refsect1>

<refsect1>
<title>Accesses repository</title>
<para>Yes</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--accept ARG
--changelist
--depth ARG
--diff3-cmd CMD
--editor-cmd ARG
--force
--ignore-externals
--quiet (-q)
--revision (-r) REV
--set-depth ARG
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>Pick up repository changes that have happened since
your last update:</para>

<screen>
$ svn update
A newdir/toggle.c
A newdir/disclose.c
A newdir/launch.c
D newdir/README
Updated to revision 32.
</screen>

<para>You can also <quote>update</quote> your working copy
to an older revision (Subversion doesn't have the concept
of <quote>sticky</quote> files like CVS does; see <xref
linkend="svn.forcvs"/>):</para>

<screen>
$ svn update -r30
A newdir/README
D newdir/toggle.c
D newdir/disclose.c
D newdir/launch.c
U foo.c
Updated to revision 30.
</screen>

<tip>
<para>If you want to examine an older revision of a
single file, you may want to use <command>svn
cat</command> instead&mdash;it won't change your working
copy.</para>
</tip>

</refsect1>
</refentry>
</sect2>

</sect1>

<!-- ================================================================= -->
<!-- ================================================================= -->
<!-- ================================================================= -->
<sect1 id="svn.ref.svnadmin">
<title>svnadmin</title>

<para><command>svnadmin</command> is the administrative tool for
monitoring and repairing your Subversion repository. For
detailed information on repository administration, see the maintenance section for <xref
linkend="svn.reposadmin.maint.tk.svnadmin"/>.</para>

<para>Since <command>svnadmin</command> works via direct repository access
(and thus can only be used on the machine that holds the
repository), it refers to the repository with a path, not a URL.</para>

<!-- =============================================================== -->
<sect2 id="svn.ref.svnadmin.sw">
<title><command>svnadmin</command> Options</title>

<para>Options in <command>svmadin</command> are global, just
as they are in <command>svn</command>:</para>

<variablelist>

<varlistentry>
<term><option>--bdb-log-keep</option></term>
<listitem>
<para>(Berkeley DB-specific.) Disable automatic log removal
of database logfiles. Having these logfiles around
can be convenient if you need to restore from a
catastrophic repository failure.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--bdb-txn-nosync</option></term>
<listitem>

<para>(Berkeley DB-specific.) Disables fsync when
committing database transactions. Used with the
<command>svnadmin create</command> command to create a
Berkeley DB-backed repository with
<literal>DB_TXN_NOSYNC</literal> enabled (which improves
speed but has some risks associated with it).</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--bypass-hooks</option></term>
<listitem>
<para>Bypass the repository hook system.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--clean-logs</option></term>
<listitem>
<para>Remove unused Berkeley DB logs.</para>
</listitem>
</varlistentry>

<!-- TODO config-dir? Only 'svnadmin create' accepts it, and -->
<!-- the underlying logic doesn't even use it. -->

<varlistentry>
<term><option>--force-uuid</option></term>
<listitem>
<para>By default, when loading data into repository that
already contains revisions, <command>svnadmin</command>
will ignore the <literal>UUID</literal> from the dump
stream. This option will cause the repository's
<literal>UUID</literal> to be set to the
<literal>UUID</literal> from the stream.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--ignore-uuid</option></term>
<listitem>
<para>By default, when loading an empty repository,
<command>svnadmin</command> will ignore the
<literal>UUID</literal> from the dump stream. This
option will force that UUID to be ignored (useful for
overriding your configuration file if it has
<option>--force-uuid</option> set).</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--incremental</option></term>
<listitem>
<para>Dump a revision only as a diff against the
previous revision, instead of the usual
fulltext.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--parent-dir
<replaceable>DIR</replaceable></option></term>
<listitem>
<para>When loading a dump file, root paths at
<replaceable>DIR</replaceable> instead of
<filename>/</filename>.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--pre-1.4-compatible</option></term>
<listitem>
<para>When creating a new repository, use a format that is
compatible with versions of Subversion earlier than
Subversion 1.4.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--pre-1.5-compatible</option></term>
<listitem>
<para>When creating a new repository, use a format that is
compatible with versions of Subversion earlier than
Subversion 1.5.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--revision</option> (<option>-r</option>)
<replaceable>ARG</replaceable></term>
<listitem>
<para>Specify a particular revision to operate
on.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--quiet</option></term>
<listitem>
<para>Do not show normal progress&mdash;show only
errors.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--use-post-commit-hook</option></term>
<listitem>
<para>When loading a dump file, runs the repository's
<literal>post-commit</literal> hook after finalizing each newly loaded
revision.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--use-post-revprop-change-hook</option></term>
<listitem>
<para>When changing a revision property, runs the
repository's <literal>post-revprop-change</literal> hook after changing the
revision property.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--use-pre-commit-hook</option></term>
<listitem>
<para>When loading a dump file, runs the repository's
<literal>pre-commit</literal> hook before finalizing each newly loaded
revision. If the hook fails, aborts the commit and
terminates the load process.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--use-pre-revprop-change-hook</option></term>
<listitem>
<para>When changing a revision property, runs the
repository's <literal>pre-revprop-change</literal> hook before changing the
revision property. If the hook fails, aborts the
modification and terminates.</para>
</listitem>
</varlistentry>

</variablelist>
</sect2>

<!-- =============================================================== -->
<sect2 id="svn.ref.svnadmin.c">
<title>svnadmin Subcommands</title>

<para>Here are the various subcommands
for the <command>svnadmin</command> program.</para>

<refentry id="svn.ref.svnadmin.c.crashtest">

<indexterm>
<primary>svnadmin</primary>
<secondary>subcommands</secondary>
<tertiary>crashtest</tertiary>
</indexterm>

<refnamediv>
<refname>svnadmin crashtest</refname>
<refpurpose>Simulate a process that crashes.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svnadmin crashtest REPOS_PATH</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Open the repository at <replaceable>REPOS_PATH</replaceable>, then abort, thus
simulating a process that crashes while holding an open
repository handle. This is used for testing automatic
repository recovery (a new feature in Berkeley DB 4.4).
It's unlikely that you'll need to run this
command.</para>

</refsect1>

<refsect1>
<title>Options</title>

<para>None</para>

</refsect1>

<refsect1>
<title>Examples</title>

<screen>
$ svnadmin crashtest /var/svn/repos
Aborted
</screen>

<para>Exciting, isn't it?</para>

</refsect1>
</refentry>

<refentry id="svn.ref.svnadmin.c.create">

<indexterm>
<primary>svnadmin</primary>
<secondary>subcommands</secondary>
<tertiary>create</tertiary>
</indexterm>

<refnamediv>
<refname>svnadmin create</refname>
<refpurpose>Create a new, empty repository.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svnadmin create REPOS_PATH</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Create a new, empty repository at the path provided.
If the provided directory does not exist, it will be
created for you.
<footnote>
<para>Remember, <command>svnadmin</command> works only
with local <emphasis>paths</emphasis>, not
<emphasis>URLs</emphasis>.</para>
</footnote>
As of Subversion 1.2, <command>svnadmin</command>
creates new repositories with the
<literal>FSFS</literal> filesystem backend by
default.</para>

<para>While <command>svnadmin create</command> will create
the base directory for a new repository, it will not
create intermediate directories. For example, if you
have an empty directory named
<filename>/var/svn</filename>, creating
<filename>/var/svn/repos</filename> will work, while
attempting to create
<filename>/var/svn/subdirectory/repos</filename> will
fail with an error.</para>

</refsect1>

<refsect1>
<title>Options</title>

<screen>
--bdb-log-keep
--bdb-txn-nosync
--config-dir DIR
--fs-type TYPE
--pre-1.4-compatible
--pre-1.5-compatible
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>Creating a new repository is this easy:</para>

<screen>
$ svnadmin create /var/svn/repos
</screen>

<para>In Subversion 1.0, a Berkeley DB repository is always
created. In Subversion 1.1, a Berkeley DB repository is
the default repository type, but an FSFS repository can be
created using the <option>--fs-type</option>
option:</para>

<screen>
$ svnadmin create /var/svn/repos --fs-type fsfs
</screen>

</refsect1>
</refentry>

<refentry id="svn.ref.svnadmin.c.deltify">

<indexterm>
<primary>svnadmin</primary>
<secondary>subcommands</secondary>
<tertiary>deltify</tertiary>
</indexterm>

<refnamediv>
<refname>svnadmin deltify</refname>
<refpurpose>Deltify changed paths in a revision range.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svnadmin deltify [-r LOWER[:UPPER]] REPOS_PATH</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para><command>svnadmin deltify</command> exists in
current versions of Subversion only for historical reasons.
This command is deprecated and no longer needed.</para>

<para>It dates from a time when Subversion offered
administrators greater control over compression strategies
in the repository. This turned out to be a lot of
complexity for <emphasis>very</emphasis> little gain, and
this <quote>feature</quote> was deprecated.</para>

</refsect1>
<refsect1>
<title>Options</title>

<screen>
--quiet (-q)
--revision (-r) REV
</screen>
</refsect1>
</refentry>

<refentry id="svn.ref.svnadmin.c.dump">

<indexterm>
<primary>svnadmin</primary>
<secondary>subcommands</secondary>
<tertiary>dump</tertiary>
</indexterm>

<refnamediv>
<refname>svnadmin dump</refname>
<refpurpose>Dump the contents of the filesystem to <filename>stdout</filename>.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svnadmin dump REPOS_PATH [-r LOWER[:UPPER]] [--incremental]</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Dump the contents of the filesystem to <filename>stdout</filename> in a
<quote>dump file</quote> portable format, sending feedback
to <filename>stderr</filename>. Dump revisions
<replaceable>LOWER</replaceable> rev through
<replaceable>UPPER</replaceable> rev. If no revisions are
given, dump all revision trees. If only
<replaceable>LOWER</replaceable> is given, dump that one
revision tree. See <xref linkend="svn.reposadmin.maint.migrate"/>
for a practical use.</para>

<para>By default, the Subversion dump stream contains a
single revision (the first revision in the requested
revision range) in which every file and directory in the
repository in that revision is presented as though that whole
tree was added at once, followed by other revisions (the
remainder of the revisions in the requested range), which
contain only the files and directories that were modified
in those revisions. For a modified file, the complete
full-text representation of its contents, as well as all of
its properties, are presented in the dump file; for a
directory, all of its properties are presented.</para>

<para>Two useful options modify the dump file
generator's behavior. The first is the
<option>--incremental</option> option, which simply causes
that first revision in the dump stream to contain only
the files and directories modified in that revision,
instead of being presented as the addition of a new tree,
and in exactly the same way that every other revision in
the dump file is presented. This is useful for generating
a relatively small dump file to be loaded into another
repository that already has the files and directories
that exist in the original repository.</para>

<para>The second useful option is <option>--deltas</option>.
This option causes <command>svnadmin dump</command> to,
instead of emitting full-text representations of file
contents and property lists, emit only deltas of those
items against their previous versions. This reduces (in
some cases, drastically) the size of the dump file that
<command>svnadmin dump</command> creates. There are, however,
disadvantages to using this option&mdash;deltified
dump files are more CPU-intensive to create, cannot be
operated on by <command>svndumpfilter</command>, and tend
not to compress as well as their nondeltified counterparts
when using third-party tools such as <command>gzip</command>
and <command>bzip2</command>.</para>
</refsect1>
<refsect1>
<title>Options</title>

<screen>
--deltas
--incremental
--quiet (-q)
--revision (-r) REV
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>Dump your whole repository:</para>

<screen>
$ svnadmin dump /var/svn/repos > full.dump
* Dumped revision 0.
* Dumped revision 1.
* Dumped revision 2.
&hellip;
</screen>

<para>Incrementally dump a single transaction from your
repository:</para>

<screen>
$ svnadmin dump /var/svn/repos -r 21 --incremental > incr.dump
* Dumped revision 21.
</screen>

</refsect1>
</refentry>

<refentry id="svn.ref.svnadmin.c.help">

<indexterm>
<primary>svnadmin</primary>
<secondary>subcommands</secondary>
<tertiary>help</tertiary>
</indexterm>

<refnamediv>
<refname>svnadmin help</refname> <refpurpose>Help!</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svnadmin help [SUBCOMMAND...]</programlisting>
</refsect1>

<refsect1>
<title>Description</title>

<para>This subcommand is useful when you're trapped on a
desert island with neither a Net connection nor a copy of
this book.</para>
</refsect1>

<refsect1>
<title>Alternate names</title>
<para><command>?</command>, <command>h</command></para>
</refsect1>

</refentry>

<refentry id="svn.ref.svnadmin.c.hotcopy">

<indexterm>
<primary>svnadmin</primary>
<secondary>subcommands</secondary>
<tertiary>hotcopy</tertiary>
</indexterm>

<refnamediv>
<refname>svnadmin hotcopy</refname>
<refpurpose>Make a hot copy of a repository.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svnadmin hotcopy REPOS_PATH NEW_REPOS_PATH</programlisting>
</refsect1>

<refsect1>
<title>Description</title>

<para>This subcommand makes a full <quote>hot</quote> backup
of your repository, including all hooks, configuration
files, and, of course, database files. If you pass the
<option>--clean-logs</option> option,
<command>svnadmin</command> will perform a hot copy of your
repository, and then remove unused Berkeley DB logs from
the original repository. You can run this command at any
time and make a safe copy of the repository, regardless of
whether other processes are using the repository.</para>

</refsect1>

<refsect1>
<title>Options</title>

<screen>
--clean-logs
</screen>

<warning>
<para>As described in <xref
linkend="svn.reposadmin.basics.backends.bdb"/>, hot-copied
Berkeley DB repositories are <emphasis>not</emphasis>
portable across operating systems, nor will they work on
machines with a different <quote>endianness</quote> than
the machine where they were created.</para>
</warning>

</refsect1>

</refentry>

<refentry id="svn.ref.svnadmin.c.list-dblogs">

<indexterm>
<primary>svnadmin</primary>
<secondary>subcommands</secondary>
<tertiary>list-dblogs</tertiary>
</indexterm>

<refnamediv>
<refname>svnadmin list-dblogs</refname>
<refpurpose>Ask Berkeley DB which logfiles exist for a
given Subversion repository (applies only to repositories
using the <literal>bdb</literal> backend).</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svnadmin list-dblogs REPOS_PATH</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Berkeley DB creates logs of all changes to the
repository, which allow it to recover in the face of
catastrophe. Unless you enable
<literal>DB_LOG_AUTOREMOVE</literal>, the logfiles
accumulate, although most are no longer used and can be
deleted to reclaim disk space. See <xref
linkend="svn.reposadmin.maint.diskspace"/> for more
information.</para>
</refsect1>

</refentry>

<refentry id="svn.ref.svnadmin.c.list-unused-dblogs">

<indexterm>
<primary>svnadmin</primary>
<secondary>subcommands</secondary>
<tertiary>list-unused-dblogs</tertiary>
</indexterm>

<refnamediv>
<refname>svnadmin list-unused-dblogs</refname>
<refpurpose>Ask Berkeley DB which logfiles can be safely
deleted (applies only to repositories using the
<literal>bdb</literal> backend).</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svnadmin list-unused-dblogs REPOS_PATH</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Berkeley DB creates logs of all changes to the
repository, which allow it to recover in the face of
catastrophe. Unless you enable
<literal>DB_LOG_AUTOREMOVE</literal>, the logfiles
accumulate, although most are no longer used and can be
deleted to reclaim disk space. See <xref
linkend="svn.reposadmin.maint.diskspace"/> for more
information.</para>
</refsect1>

<refsect1>
<title>Examples</title>

<para>Remove all unused logfiles from the repository:</para>

<screen>
$ svnadmin list-unused-dblogs /var/svn/repos
/var/svn/repos/log.0000000031
/var/svn/repos/log.0000000032
/var/svn/repos/log.0000000033

$ svnadmin list-unused-dblogs /var/svn/repos | xargs rm
## disk space reclaimed!
</screen>

</refsect1>
</refentry>

<refentry id="svn.ref.svnadmin.c.load">

<indexterm>
<primary>svnadmin</primary>
<secondary>subcommands</secondary>
<tertiary>load</tertiary>
</indexterm>

<refnamediv>
<refname>svnadmin load</refname> <refpurpose>Read a
repository dump stream from
<filename>stdin</filename>.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svnadmin load REPOS_PATH</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Read a repository dump stream from
<filename>stdin</filename>, committing new revisions into the repository's
filesystem. Send progress feedback to <filename>stdout</filename>.</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--force-uuid
--ignore-uuid
--parent-dir
--quiet (-q)
--use-post-commit-hook
--use-pre-commit-hook
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>This shows the beginning of loading a repository from
a backup file (made, of course, with <command>svnadmin
dump</command>):</para>

<screen>
$ svnadmin load /var/svn/restored &lt; repos-backup
&lt;&lt;&lt; Started new txn, based on original revision 1
* adding path : test ... done.
* adding path : test/a ... done.
&hellip;
</screen>

<para>Or if you want to load into a subdirectory:</para>

<screen>
$ svnadmin load --parent-dir new/subdir/for/project \
/var/svn/restored &lt; repos-backup
&lt;&lt;&lt; Started new txn, based on original revision 1
* adding path : test ... done.
* adding path : test/a ... done.
&hellip;
</screen>

</refsect1>
</refentry>

<refentry id="svn.ref.svnadmin.c.lslocks">

<indexterm>
<primary>svnadmin</primary>
<secondary>subcommands</secondary>
<tertiary>lslocks</tertiary>
</indexterm>

<refnamediv>
<refname>svnadmin lslocks</refname>
<refpurpose>Print descriptions of all locks.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svnadmin lslocks REPOS_PATH [PATH-IN-REPOS]</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Print descriptions of all locks in
repository <replaceable>REPOS_PATH</replaceable>
underneath the
path <replaceable>PATH-IN-REPOS</replaceable>.
If <replaceable>PATH-IN-REPOS</replaceable> is not
provided, it defaults to the root directory of the
repository.</para>
</refsect1>

<refsect1>
<title>Options</title>

<para>None</para>
</refsect1>

<refsect1>
<title>Examples</title>


<para>This lists the one locked file in the repository at
<filename>/var/svn/repos</filename>:</para>

<screen>
$ svnadmin lslocks /var/svn/repos
Path: /tree.jpg
UUID Token: opaquelocktoken:ab00ddf0-6afb-0310-9cd0-dda813329753
Owner: harry
Created: 2005-07-08 17:27:36 -0500 (Fri, 08 Jul 2005)
Expires:
Comment (1 line):
Rework the uppermost branches on the bald cypress in the foreground.
</screen>
</refsect1>
</refentry>

<refentry id="svn.ref.svnadmin.c.lstxns">

<indexterm>
<primary>svnadmin</primary>
<secondary>subcommands</secondary>
<tertiary>lstxns</tertiary>
</indexterm>

<refnamediv>
<refname>svnadmin lstxns</refname>
<refpurpose>Print the names of all uncommitted transactions.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svnadmin lstxns REPOS_PATH</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Print the names of all uncommitted transactions. See
<xref linkend="svn.reposadmin.maint.diskspace.deadtxns" />
for information on how uncommitted transactions are
created and what you should do with them.</para>
</refsect1>

<refsect1>
<title>Examples</title>

<para>List all outstanding transactions in a
repository:</para>

<screen>
$ svnadmin lstxns /var/svn/repos/
1w
1x
</screen>

</refsect1>
</refentry>

<refentry id="svn.ref.svnadmin.c.recover">

<indexterm>
<primary>svnadmin</primary>
<secondary>subcommands</secondary>
<tertiary>recover</tertiary>
</indexterm>

<refnamediv>
<refname>svnadmin recover</refname>

<refpurpose>Bring a repository database back into a
consistent state (applies only to repositories using the
<literal>bdb</literal> backend). In addition, if
<filename>repos/conf/passwd</filename> does not exist, it
will create a default passwordfile .</refpurpose>

</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svnadmin recover REPOS_PATH</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Run this command if you get an error indicating that
your repository needs to be recovered.</para>
</refsect1>
<refsect1>
<title>Options</title>
<screen>
--wait
</screen>
</refsect1>
<refsect1>
<title>Examples</title>

<para>Recover a hung repository:</para>

<screen>
$ svnadmin recover /var/svn/repos/
Repository lock acquired.
Please wait; recovering the repository may take some time...

Recovery completed.
The latest repos revision is 34.
</screen>

<para>Recovering the database requires an exclusive lock on
the repository. (This is a <quote>database lock</quote>;
see the sidebar <xref linkend="svn.advanced.locking.meanings"/>.)
If another process is accessing the repository,
then <command>svnadmin recover</command> will error:</para>
<screen>
$ svnadmin recover /var/svn/repos
svn: Failed to get exclusive repository access; perhaps another process
such as httpd, svnserve or svn has it open?

$
</screen>

<para>The <option>--wait</option> option, however, will
cause <command>svnadmin recover</command> to wait
indefinitely for other processes to disconnect:</para>

<screen>
$ svnadmin recover /var/svn/repos --wait
Waiting on repository lock; perhaps another process has it open?

### time goes by&hellip;

Repository lock acquired.
Please wait; recovering the repository may take some time...

Recovery completed.
The latest repos revision is 34.
</screen>

</refsect1>
</refentry>


<refentry id="svn.ref.svnadmin.c.rmlocks">

<indexterm>
<primary>svnadmin</primary>
<secondary>subcommands</secondary>
<tertiary>rmlocks</tertiary>
</indexterm>

<refnamediv>
<refname>svnadmin rmlocks</refname>
<refpurpose>Unconditionally remove one or more locks from a
repository.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svnadmin rmlocks REPOS_PATH LOCKED_PATH...</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Remove one or more locks from each <replaceable>LOCKED_PATH</replaceable>.</para>
</refsect1>

<refsect1>
<title>Options</title>

<para>None</para>
</refsect1>

<refsect1>
<title>Examples</title>

<para>This deletes the locks on
<filename>tree.jpg</filename> and
<filename>house.jpg</filename> in the repository at
<filename>/var/svn/repos</filename>:</para>

<screen>
$ svnadmin rmlocks /var/svn/repos tree.jpg house.jpg
Removed lock on '/tree.jpg.
Removed lock on '/house.jpg.
</screen>
</refsect1>
</refentry>


<refentry id="svn.ref.svnadmin.c.rmtxns">

<indexterm>
<primary>svnadmin</primary>
<secondary>subcommands</secondary>
<tertiary>rmtxns</tertiary>
</indexterm>

<refnamediv>
<refname>svnadmin rmtxns</refname>
<refpurpose>Delete transactions from a repository.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svnadmin rmtxns REPOS_PATH TXN_NAME...</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Delete outstanding transactions from a repository.
This is covered in detail in <xref
linkend="svn.reposadmin.maint.diskspace.deadtxns" />.</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--quiet (-q)
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>Remove named transactions:</para>

<screen>
$ svnadmin rmtxns /var/svn/repos/ 1w 1x
</screen>

<para>Fortunately, the output of <command>lstxns</command>
works great as the input for <command>rmtxns</command>:</para>

<screen>
$ svnadmin rmtxns /var/svn/repos/ `svnadmin lstxns /var/svn/repos/`
</screen>

<para>This removes all uncommitted transactions from
your repository.</para>

</refsect1>
</refentry>


<refentry id="svn.ref.svnadmin.c.setlog">

<indexterm>
<primary>svnadmin</primary>
<secondary>subcommands</secondary>
<tertiary>setlog</tertiary>
</indexterm>

<refnamediv>
<refname>svnadmin setlog</refname>
<refpurpose>Set the log message on a revision.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svnadmin setlog REPOS_PATH -r REVISION FILE</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Set the log message on
revision <replaceable>REVISION</replaceable> to the
contents of <replaceable>FILE</replaceable>.</para>

<para>This is similar to using <command>svn propset</command>
with the <option>--revprop</option> option to set the <literal>svn:log</literal> property
on a revision, except that you can also use the option
<option>--bypass-hooks</option> to avoid running any pre-
or post-commit hooks, which is useful if the modification
of revision properties has not been enabled in
the <literal>pre-revprop-change</literal> hook.</para>

<warning>
<para>Revision properties are not under version control,
so this command will permanently overwrite the previous
log message.</para>
</warning>

</refsect1>

<refsect1>
<title>Options</title>

<screen>
--bypass-hooks
--revision (-r) REV
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>Set the log message for revision 19 to the contents of
the file <filename>msg</filename>:</para>

<screen>
$ svnadmin setlog /var/svn/repos/ -r 19 msg
</screen>

</refsect1>
</refentry>

<refentry id="svn.ref.svnadmin.c.setrevprop">

<indexterm>
<primary>svnadmin</primary>
<secondary>subcommands</secondary>
<tertiary>setrevprop</tertiary>
</indexterm>

<refnamediv>
<refname>svnadmin setrevprop</refname>
<refpurpose>Set a property on a revision.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svnadmin setrevprop REPOS_PATH -r REVISION NAME FILE</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Set the property <replaceable>NAME</replaceable> on
revision <replaceable>REVISION</replaceable> to the
contents of <replaceable>FILE</replaceable>. Use
<option>--use-pre-revprop-change-hook</option>
or <option>--use-post-revprop-change-hook</option> to
trigger the revision property-related hooks (e.g., if
you want an email notification sent from your <literal>post-revprop-change-hook</literal>).</para>

</refsect1>

<refsect1>
<title>Options</title>

<screen>
--revision (-r) ARG
--use-post-revprop-change-hook
--use-pre-revprop-change-hook
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>The following sets the revision
property <literal>repository-photo</literal> to the contents
of the file <filename>sandwich.png</filename>:</para>

<screen>
$svnadmin setrevprop /var/svn/repos -r 0 repository-photo sandwich.png
</screen>

<para>As you can see, <command>svnadmin setrevprop</command>
has no output upon success.</para>

</refsect1>
</refentry>

<refentry id="svn.ref.svnadmin.c.setuuid">

<indexterm>
<primary>svnadmin</primary>
<secondary>subcommands</secondary>
<tertiary>setuuid</tertiary>
</indexterm>

<refnamediv>
<refname>svnadmin setuuid</refname>
<refpurpose>Reset the repository UUID.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svnadmin setuuid REPOS_PATH [NEW_UUID]</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Reset the repository UUID for the repository located
at <replaceable>REPOS_PATH</replaceable>.
If <replaceable>NEW_UUID</replaceable> is provided, use
that as the new repository UUID; otherwise, generate a
brand-new UUID for the repository.</para>

</refsect1>

<refsect1>
<title>Options</title>

<para>None</para>

</refsect1>

<refsect1>
<title>Examples</title>

<para>If you've <command>svnsync</command>ed <filename>/var/svn/repos</filename>
to <filename>/var/svn/repos-new</filename> and intend to use <filename>repos-new</filename> as your
canonical repository, you may want to change the UUID for
<filename>repos-new</filename> to the UUID of <filename>repos</filename> so that your users don't
have to check out a new working copy to accommodate the
change:</para>

<screen>
$ svnadmin setuuid /var/svn/repos-new 2109a8dd-854f-0410-ad31-d604008985ab
</screen>

<para>As you can see, <command>svnadmin setuuid</command>
has no output upon success.</para>

</refsect1>
</refentry>

<refentry id="svn.ref.svnadmin.c.upgrade">

<indexterm>
<primary>svnadmin</primary>
<secondary>subcommands</secondary>
<tertiary>upgrade</tertiary>
</indexterm>

<refnamediv>
<refname>svnadmin upgrade</refname>
<refpurpose>Upgrade a repository to the latest supported
schema version.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svnadmin upgrade REPOS_PATH</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Upgrade the repository located
at <replaceable>REPOS_PATH</replaceable> to the latest
supported schema version.</para>

<para>This functionality is provided as a convenience for
repository administrators who wish to make use of new
Subversion functionality without having to undertake a
potentially costly full repository dump and load
operation. As such, the upgrade performs only the
minimum amount of work needed to accomplish this while
still maintaining the integrity of the repository.
While a dump and subsequent load guarantee the most
optimized repository state, <command>svnadmin
upgrade</command> does not.</para>

<warning>
<para>You should <emphasis>always</emphasis> back up your
repository before upgrading.</para>
</warning>

</refsect1>

<refsect1>
<title>Options</title>

<para>None</para>

</refsect1>

<refsect1>
<title>Examples</title>

<para>Upgrade the repository at
path <filename>/var/repos/svn</filename>:</para>

<screen>
$ svnadmin upgrade /var/repos/svn
Repository lock acquired.
Please wait; upgrading the repository may take some time...

Upgrade completed.
</screen>

</refsect1>
</refentry>

<!-- this could use a lot more explanation. When should I use
it? What do I do if it fails? -->
<refentry id="svn.ref.svnadmin.c.verify">

<indexterm>
<primary>svnadmin</primary>
<secondary>subcommands</secondary>
<tertiary>verify</tertiary>
</indexterm>

<refnamediv>
<refname>svnadmin verify</refname>
<refpurpose>Verify the data stored in the repository.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svnadmin verify REPOS_PATH</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Run this command if you wish to verify the integrity
of your repository. This basically iterates through all
revisions in the repository by internally dumping all
revisions and discarding the output&mdash;it's a good idea
to run this on a regular basis to guard against latent
hard disk failures and <quote>bitrot.</quote> If this
command fails&mdash;which it will do at the first sign of
a problem&mdash;that means your repository has at
least one corrupted revision, and you should restore the
corrupted revision from a backup (you did make a backup,
didn't you?).</para>

</refsect1>

<refsect1>
<title>Options</title>

<screen>
--quiet (-q)
--revision (-r) ARG
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>Verify a hung repository:</para>

<screen>
$ svnadmin verify /var/svn/repos/
* Verified revision 1729.
</screen>

</refsect1>
</refentry>

</sect2>

</sect1>

<!-- ================================================================= -->
<!-- ================================================================= -->
<!-- ================================================================= -->
<sect1 id="svn.ref.svnlook">
<title>svnlook</title>

<para><command>svnlook</command> is a command-line utility for
examining different aspects of a Subversion repository. It
does not make any changes to the repository&mdash;it's just
used for <quote>peeking.</quote>
<command>svnlook</command> is typically used by the
repository hooks, but a repository administrator might find it
useful for diagnostic purposes.</para>

<para>Since <command>svnlook</command> works via direct repository access
(and thus can be used only on the machine that holds the
repository), it refers to the repository with a path, not a URL.</para>

<para>If no revision or transaction is specified,
<command>svnlook</command> defaults to the youngest (most
recent) revision of the repository.</para>

<!-- =============================================================== -->
<sect2 id="svn.ref.svnlook.sw">
<title>svnlook Options</title>

<para>Options in <command>svnlook</command> are global, just
as they are in <command>svn</command> and
<command>svnadmin</command>; however, most options apply
to only one subcommand since the functionality of
<command>svnlook</command> is (intentionally) limited in
scope:</para>

<variablelist>

<varlistentry>
<term><option>--copy-info</option></term>
<listitem>
<para>Causes <command>svnlook changed</command> to show
detailed copy source information.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--no-diff-deleted</option></term>
<listitem>
<para>Prevents <command>svnlook diff</command> from printing
differences for deleted files. The default behavior
when a file is deleted in a transaction/revision is
to print the same differences that you would see if
you had left the file but removed all the content.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--no-diff-added</option></term>
<listitem>
<para>Prevents <command>svnlook diff</command> from printing
differences for added files. The default behavior when
you add a file is to print the same differences that you
would see if you had added the entire contents of an
existing (empty) file.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--revision</option>
(<option>-r</option>)</term>
<listitem>
<para>Specifies a particular revision number that you wish
to examine.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--revprop</option></term>
<listitem>
<para>Operates on a revision property instead of a
property specific to a file or directory. This option
requires that you also pass a revision with the
<option>--revision</option> (<option>-r</option>)
option.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--transaction</option>
(<option>-t</option>)</term>
<listitem>
<para>Specifies a particular transaction ID that you wish to
examine.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--show-ids</option></term>
<listitem>
<para>Shows the filesystem node revision IDs for each path in the filesystem
tree.</para>
</listitem>
</varlistentry>

</variablelist>

</sect2>

<!-- =============================================================== -->
<sect2 id="svn.ref.svnlook.c">
<title>svnlook Subcommands</title>

<para>Here are the various subcommands
for the <command>svnlook</command> program.</para>

<refentry id="svn.ref.svnlook.c.author">

<indexterm>
<primary>svnlook</primary>
<secondary>subcommands</secondary>
<tertiary>author</tertiary>
</indexterm>

<refnamediv>
<refname>svnlook author</refname>
<refpurpose>Print the author.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svnlook author REPOS_PATH</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Print the author of a revision or transaction in
the repository.</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--revision (-r) REV
--transaction (-t) TXN
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para><command>svnlook author</command> is handy, but not
very exciting:</para>

<screen>
$ svnlook author -r 40 /var/svn/repos
sally
</screen>

</refsect1>
</refentry>

<refentry id="svn.ref.svnlook.c.cat">

<indexterm>
<primary>svnlook</primary>
<secondary>subcommands</secondary>
<tertiary>cat</tertiary>
</indexterm>

<refnamediv>
<refname>svnlook cat</refname>
<refpurpose>Print the contents of a file.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svnlook cat REPOS_PATH PATH_IN_REPOS</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Print the contents of a file.</para>

</refsect1>

<refsect1>
<title>Options</title>

<screen>
--revision (-r) REV
--transaction (-t) TXN
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>This shows the contents of a file in transaction
<literal>ax8</literal>, located at
<filename>/trunk/README</filename>:</para>

<screen>
$ svnlook cat -t ax8 /var/svn/repos /trunk/README

Subversion, a version control system.
=====================================

$LastChangedDate: 2003-07-17 10:45:25 -0500 (Thu, 17 Jul 2003) $

Contents:

I. A FEW POINTERS
II. DOCUMENTATION
III. PARTICIPATING IN THE SUBVERSION COMMUNITY
&hellip;
</screen>

</refsect1>
</refentry>

<refentry id="svn.ref.svnlook.c.changed">

<indexterm>
<primary>svnlook</primary>
<secondary>subcommands</secondary>
<tertiary>changed</tertiary>
</indexterm>

<refnamediv>
<refname>svnlook changed</refname>
<refpurpose>Print the paths that were changed.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svnlook changed REPOS_PATH</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Print the paths that were changed in a particular
revision or transaction, as well as <quote>svn
update-style</quote> status letters in the first two
columns:</para>

<variablelist>

<varlistentry>
<term><literal>'A '</literal></term>
<listitem>
<para>Item added to repository</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>'D '</literal></term>
<listitem>
<para>Item deleted from repository</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>'U '</literal></term>
<listitem>
<para>File contents changed</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>'_U'</literal></term>
<listitem>
<para>Properties of item changed; note the leading underscore</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>'UU'</literal></term>
<listitem>
<para>File contents and properties changed</para>
</listitem>
</varlistentry>

</variablelist>

<para>Files and directories can be distinguished, as
directory paths are displayed with a
trailing <quote><literal>/</literal></quote>
character.</para>

</refsect1>

<refsect1>
<title>Options</title>

<screen>
--copy-info
--revision (-r) REV
--transaction (-t) TXN
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>This shows a list of all the changed files and
directories in revision 39 of a test repository. Note
that the first changed item is a directory, as evidenced
by the trailing <literal>/</literal>:</para>

<screen>
$ svnlook changed -r 39 /var/svn/repos
A trunk/vendors/deli/
A trunk/vendors/deli/chips.txt
A trunk/vendors/deli/sandwich.txt
A trunk/vendors/deli/pickle.txt
U trunk/vendors/baker/bagel.txt
_U trunk/vendors/baker/croissant.txt
UU trunk/vendors/baker/pretzel.txt
D trunk/vendors/baker/baguette.txt
</screen>

<para>Here's an example that shows a revision in which a
file was renamed:</para>

<screen>
$ svnlook changed -r 64 /var/svn/repos
A trunk/vendors/baker/toast.txt
D trunk/vendors/baker/bread.txt
</screen>

<para>Unfortunately, nothing in the preceding output reveals
the connection between the deleted and added files. Use
the <option>--copy-info</option> option to make this
relationship more apparent:</para>

<screen>
$ svnlook changed -r 64 --copy-info /var/svn/repos
A + trunk/vendors/baker/toast.txt
(from trunk/vendors/baker/bread.txt:r63)
D trunk/vendors/baker/bread.txt
</screen>

</refsect1>
</refentry>

<refentry id="svn.ref.svnlook.c.date">

<indexterm>
<primary>svnlook</primary>
<secondary>subcommands</secondary>
<tertiary>date</tertiary>
</indexterm>

<refnamediv>
<refname>svnlook date</refname>
<refpurpose>Print the datestamp.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svnlook date REPOS_PATH</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Print the datestamp of a revision or transaction in
a repository.</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--revision (-r) REV
--transaction (-t) TXN
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>This shows the date of revision 40 of a test
repository:</para>

<screen>
$ svnlook date -r 40 /var/svn/repos/
2003-02-22 17:44:49 -0600 (Sat, 22 Feb 2003)
</screen>

</refsect1>
</refentry>

<refentry id="svn.ref.svnlook.c.diff">

<indexterm>
<primary>svnlook</primary>
<secondary>subcommands</secondary>
<tertiary>diff</tertiary>
</indexterm>

<refnamediv>
<refname>svnlook diff</refname>
<refpurpose>Print differences of changed files and properties.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svnlook diff REPOS_PATH</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Print GNU-style differences of changed files and
properties in a repository.</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--diff-copy-from
--no-diff-added
--no-diff-deleted
--revision (-r) REV
--transaction (-t) TXN
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>This shows a newly added (empty) file, a deleted
file, and a copied file:</para>

<screen>
$ svnlook diff -r 40 /var/svn/repos/
Copied: egg.txt (from rev 39, trunk/vendors/deli/pickle.txt)

Added: trunk/vendors/deli/soda.txt
==============================================================================

Modified: trunk/vendors/deli/sandwich.txt
==============================================================================
--- trunk/vendors/deli/sandwich.txt (original)
+++ trunk/vendors/deli/sandwich.txt 2003-02-22 17:45:04.000000000 -0600
@@ -0,0 +1 @@
+Don't forget the mayo!

Modified: trunk/vendors/deli/logo.jpg
==============================================================================
(Binary files differ)

Deleted: trunk/vendors/deli/chips.txt
==============================================================================

Deleted: trunk/vendors/deli/pickle.txt
==============================================================================
</screen>

<para>If a file has a nontextual
<literal>svn:mime-type</literal> property, the
differences are not explicitly shown.</para>
</refsect1>
</refentry>

<refentry id="svn.ref.svnlook.c.dirs-changed">

<indexterm>
<primary>svnlook</primary>
<secondary>subcommands</secondary>
<tertiary>dirs-changed</tertiary>
</indexterm>

<refnamediv>
<refname>svnlook dirs-changed</refname>
<refpurpose>Print the directories that were themselves changed.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svnlook dirs-changed REPOS_PATH</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Print the directories that were themselves changed
(property edits) or whose file children were
changed.</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--revision (-r) REV
--transaction (-t) TXN
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>This shows the directories that changed in
revision 40 in our sample repository:</para>

<screen>
$ svnlook dirs-changed -r 40 /var/svn/repos
trunk/vendors/deli/
</screen>

</refsect1>
</refentry>

<refentry id="svn.ref.svnlook.c.help">

<indexterm>
<primary>svnlook</primary>
<secondary>subcommands</secondary>
<tertiary>help</tertiary>
</indexterm>

<refnamediv>
<refname>svnlook help</refname> <refpurpose>Help!</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>Also svnlook -h and svnlook -?.</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Displays the help message
for <command>svnlook</command>. This command, like its
brother, <command>svn help</command>, is also your friend,
even though you never call it anymore and forgot to invite
it to your last party.</para>
</refsect1>

<refsect1>
<title>Options</title>
<para>None</para>
</refsect1>

<refsect1>
<title>Alternate names</title>
<para><command>?</command>, <command>h</command></para>
</refsect1>

</refentry>

<refentry id="svn.ref.svnlook.c.history">

<indexterm>
<primary>svnlook</primary>
<secondary>subcommands</secondary>
<tertiary>history</tertiary>
</indexterm>

<refnamediv>
<refname>svnlook history</refname>
<refpurpose>Print information about the history of a path in
the repository (or the root directory if no path is
supplied).</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svnlook history REPOS_PATH [PATH_IN_REPOS]</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Print information about the history of a path in
the repository (or the root directory if no path is
supplied).</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--limit (-l) ARG
--revision (-r) REV
--show-ids
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>This shows the history output for the path
<filename>/branches/bookstore</filename> as of revision 13 in our
sample repository:</para>

<screen>
$ svnlook history -r 13 /var/svn/repos /branches/bookstore --show-ids
REVISION PATH &lt;ID&gt;
-------- ---------
13 /branches/bookstore &lt;1.1.r13/390&gt;
12 /branches/bookstore &lt;1.1.r12/413&gt;
11 /branches/bookstore &lt;1.1.r11/0&gt;
9 /trunk &lt;1.0.r9/551&gt;
8 /trunk &lt;1.0.r8/131357096&gt;
7 /trunk &lt;1.0.r7/294&gt;
6 /trunk &lt;1.0.r6/353&gt;
5 /trunk &lt;1.0.r5/349&gt;
4 /trunk &lt;1.0.r4/332&gt;
3 /trunk &lt;1.0.r3/335&gt;
2 /trunk &lt;1.0.r2/295&gt;
1 /trunk &lt;1.0.r1/532&gt;
</screen>

</refsect1>
</refentry>

<refentry id="svn.ref.svnlook.c.info">

<indexterm>
<primary>svnlook</primary>
<secondary>subcommands</secondary>
<tertiary>info</tertiary>
</indexterm>

<refnamediv>
<refname>svnlook info</refname>
<refpurpose>Print the author, datestamp, log message size,
and log message.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svnlook info REPOS_PATH</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Print the author, datestamp, log message size (in bytes),
and log message, followed by a newline character.</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--revision (-r) REV
--transaction (-t) TXN
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>This shows the info output for revision 40 in our
sample repository:</para>

<screen>
$ svnlook info -r 40 /var/svn/repos
sally
2003-02-22 17:44:49 -0600 (Sat, 22 Feb 2003)
16
Rearrange lunch.
</screen>

</refsect1>
</refentry>


<refentry id="svn.ref.svnlook.c.lock">

<indexterm>
<primary>svnlook</primary>
<secondary>subcommands</secondary>
<tertiary>lock</tertiary>
</indexterm>

<refnamediv>
<refname>svnlook lock</refname>
<refpurpose>If a lock exists on a path in the repository,
describe it.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svnlook lock REPOS_PATH PATH_IN_REPOS</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Print all information available for the lock at
<replaceable>PATH_IN_REPOS</replaceable>. If
<replaceable>PATH_IN_REPOS</replaceable> is not locked,
print nothing.</para>
</refsect1>

<refsect1>
<title>Options</title>

<para>None</para>
</refsect1>

<refsect1>
<title>Examples</title>

<para>This describes the lock on the file
<filename>tree.jpg</filename>:</para>

<screen>
$ svnlook lock /var/svn/repos tree.jpg
UUID Token: opaquelocktoken:ab00ddf0-6afb-0310-9cd0-dda813329753
Owner: harry
Created: 2005-07-08 17:27:36 -0500 (Fri, 08 Jul 2005)
Expires:
Comment (1 line):
Rework the uppermost branches on the bald cypress in the foreground.
</screen>

</refsect1>
</refentry>


<refentry id="svn.ref.svnlook.c.log">

<indexterm>
<primary>svnlook</primary>
<secondary>subcommands</secondary>
<tertiary>log</tertiary>
</indexterm>

<refnamediv>
<refname>svnlook log</refname>
<refpurpose>Print the log message, followed by a newline
character.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svnlook log REPOS_PATH</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Print the log message.</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--revision (-r) REV
--transaction (-t) TXN
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>This shows the log output for revision 40 in our sample
repository:</para>

<screen>
$ svnlook log /var/svn/repos/
Rearrange lunch.
</screen>

</refsect1>
</refentry>

<refentry id="svn.ref.svnlook.c.propget">

<indexterm>
<primary>svnlook</primary>
<secondary>subcommands</secondary>
<tertiary>propget</tertiary>
</indexterm>

<refnamediv>
<refname>svnlook propget</refname>
<refpurpose>Print the raw value of a property on a path in
the repository.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svnlook propget REPOS_PATH PROPNAME [PATH_IN_REPOS]</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>List the value of a property on a path in the
repository.</para>

</refsect1>

<refsect1>
<title>Alternate names</title>
<para><command>pg</command>, <command>pget</command></para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--revision (-r) REV
--revprop
--transaction (-t) TXN
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>This shows the value of the <quote>seasonings</quote> property
on the file <filename>/trunk/sandwich</filename> in the
<literal>HEAD</literal> revision:</para>

<screen>
$ svnlook pg /var/svn/repos seasonings /trunk/sandwich
mustard
</screen>

</refsect1>
</refentry>

<refentry id="svn.ref.svnlook.c.proplist">

<indexterm>
<primary>svnlook</primary>
<secondary>subcommands</secondary>
<tertiary>proplist</tertiary>
</indexterm>

<refnamediv>
<refname>svnlook proplist</refname>
<refpurpose>Print the names and values of versioned file and
directory properties.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svnlook proplist REPOS_PATH [PATH_IN_REPOS]</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>List the properties of a path in the repository. With
<option>--verbose</option>, show the property values too.</para>

</refsect1>

<refsect1>
<title>Alternate names</title>
<para><command>pl</command>, <command>plist</command></para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--revision (-r) REV
--revprop
--transaction (-t) TXN
--verbose (-v)
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>This shows the names of properties set on the file
<filename>/trunk/README</filename> in the
<literal>HEAD</literal> revision:</para>

<screen>
$ svnlook proplist /var/svn/repos /trunk/README
original-author
svn:mime-type
</screen>

<para>This is the same command as in the preceding example,
but this time showing the property values as well:</para>

<screen>
$ svnlook --verbose proplist /var/svn/repos /trunk/README
original-author : harry
svn:mime-type : text/plain
</screen>

</refsect1>
</refentry>

<refentry id="svn.ref.svnlook.c.tree">
<indexterm>
<primary>svnlook</primary>
<secondary>subcommands</secondary>
<tertiary>tree</tertiary>
</indexterm>

<refnamediv>
<refname>svnlook tree</refname>
<refpurpose>Print the tree.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svnlook tree REPOS_PATH [PATH_IN_REPOS]</programlisting>
</refsect1>
<refsect1>
<title>Description</title>
<para>Print the tree, starting at
<replaceable>PATH_IN_REPOS</replaceable> (if supplied; at
the root of the tree otherwise), optionally showing node
revision IDs.</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--full-paths
--non-recursive (-N)
--revision (-r) REV
--show-ids
--transaction (-t) TXN
</screen>
</refsect1>

<refsect1>
<title>Example</title>

<para>This shows the tree output (with nodeIDs) for revision
13 in our sample repository:</para>

<screen>
$ svnlook tree -r 13 /var/svn/repos --show-ids
/ &lt;0.0.r13/811&gt;
trunk/ &lt;1.0.r9/551&gt;
button.c &lt;2.0.r9/238&gt;
Makefile &lt;3.0.r7/41&gt;
integer.c &lt;4.0.r6/98&gt;
branches/ &lt;5.0.r13/593&gt;
bookstore/ &lt;1.1.r13/390&gt;
button.c &lt;2.1.r12/85&gt;
Makefile &lt;3.0.r7/41&gt;
integer.c &lt;4.1.r13/109&gt;
</screen>

</refsect1>
</refentry>

<refentry id="svn.ref.svnlook.c.uuid">

<indexterm>
<primary>svnlook</primary>
<secondary>subcommands</secondary>
<tertiary>uuid</tertiary>
</indexterm>

<refnamediv>
<refname>svnlook uuid</refname>
<refpurpose>Print the repository's
<literal>UUID</literal>.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svnlook uuid REPOS_PATH</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Print the <literal>UUID</literal> for the repository.
The <literal>UUID</literal> is the repository's
<emphasis>u</emphasis>niversal <emphasis>u</emphasis>nique
<emphasis>id</emphasis>entifier. The Subversion client
uses this identifier to differentiate between one
repository and another.</para>
</refsect1>

<refsect1>
<title>Options</title>
<para>None</para>
</refsect1>

<refsect1>
<title>Examples</title>

<screen>
$ svnlook uuid /var/svn/repos
e7fe1b91-8cd5-0310-98dd-2f12e793c5e8
</screen>

</refsect1>
</refentry>

<refentry id="svn.ref.svnlook.c.youngest">

<indexterm>
<primary>svnlook</primary>
<secondary>subcommands</secondary>
<tertiary>youngest</tertiary>
</indexterm>

<refnamediv>
<refname>svnlook youngest</refname>
<refpurpose>Print the youngest revision number.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svnlook youngest REPOS_PATH</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Print the youngest revision number of a repository.</para>
</refsect1>

<refsect1>
<title>Options</title>
<para>None</para>
</refsect1>

<refsect1>
<title>Examples</title>

<para>This shows the youngest revision of our sample
repository:</para>

<screen>
$ svnlook youngest /var/svn/repos/
42
</screen>

</refsect1>
</refentry>

</sect2>
</sect1>

<!-- ================================================================= -->
<!-- ================================================================= -->
<!-- ================================================================= -->
<sect1 id="svn.ref.svnsync">

<title>svnsync</title>

<para><command>svnsync</command> is the Subversion remote
repository mirroring tool. Put simply, it allows you to replay
the revisions of one repository into another one.</para>

<para>In any mirroring scenario, there are two repositories: the
source repository, and the mirror (or <quote>sink</quote>)
repository. The source repository is the repository from which
<command>svnsync</command> pulls revisions. The mirror
repository is the destination for the revisions pulled from the
source repository. Each of the repositories may be local or
remote&mdash;they are only ever addressed by their URLs.</para>

<para>The <command>svnsync</command> process requires only read
access to the source repository; it never attempts to modify it.
But obviously, <command>svnsync</command> requires both read and
write access to the mirror repository.</para>

<warning>
<para><command>svnsync</command> is very sensitive to changes
made in the mirror repository that weren't made as part of a
mirroring operation. To prevent this from happening, it's
best if the <command>svnsync</command> process is the only
process permitted to modify the mirror repository.</para>
</warning>

<!-- =============================================================== -->
<sect2 id="svn.ref.svnsync.sw">
<title>svnsync Options</title>

<para>Options in <command>svnsync</command> are global, just
as they are in <command>svn</command> and
<command>svnadmin</command>:</para>

<variablelist>

<varlistentry>
<term><option>--config-dir</option>
<replaceable>DIR</replaceable></term>
<listitem>
<para>Instructs Subversion to read configuration
information from the specified directory instead of the
default location (<filename>.subversion</filename> in
the user's home directory).</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--no-auth-cache</option></term>
<listitem>
<para>Prevents caching of authentication information
(e.g., username and password) in the Subversion
runtime configuration directories.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--non-interactive</option></term>
<listitem>
<para>In the case of an authentication failure or
insufficient credentials, prevents prompting for
credentials (e.g., username or password). This is useful
if you're running Subversion inside an automated
script and it's more appropriate to have Subversion fail
than to prompt for more information.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--quiet</option> (<option>-q</option>)</term>
<listitem>
<para>Requests that the client print only essential
information while performing an operation.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--source-password</option>
<replaceable>PASSWD</replaceable></term>
<listitem>
<para>Specifies the password for the Subversion server
from which you are syncing. If not provided, or if
incorrect, Subversion will prompt you for this
information as needed.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--source-username</option>
<replaceable>NAME</replaceable></term>
<listitem>
<para>Specifies the username for the Subversion server
from which you are syncing. If not provided, or if
incorrect, Subversion will prompt you for this
information as needed.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--sync-password</option>
<replaceable>PASSWD</replaceable></term>
<listitem>
<para>Specifies the password for the Subversion server to
which you are syncing. If not provided, or if
incorrect, Subversion will prompt you for this
information as needed.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--sync-username</option>
<replaceable>NAME</replaceable></term>
<listitem>
<para>Specifies the username for the Subversion server to
which you are syncing. If not provided, or if
incorrect, Subversion will prompt you for this
information as needed.</para>
</listitem>
</varlistentry>

</variablelist>

</sect2>

<!-- =============================================================== -->
<sect2 id="svn.ref.svnsync.c">
<title>svnsync Subcommands</title>

<para>Here are the various subcommands
for the <command>svnsync</command> program.</para>

<refentry id="svn.ref.svnsync.c.copy-revprops">

<indexterm>
<primary>svnsync</primary>
<secondary>subcommands</secondary>
<tertiary>copy-revprops</tertiary>
</indexterm>

<refnamediv>
<refname>svnsync copy-revprops</refname>
<refpurpose>Copy all revision properties for a particular
revision (or range of revisions) from the source
repository to the mirror repository.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svnsync copy-revprops DEST_URL [REV[:REV2]</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Because Subversion revision properties can be changed
at any time, it's possible that the properties for some
revision might be changed after that revision has already
been synchronized to another repository. Because the
<command>svnsync synchronize</command> command operates
only on the range of revisions that have not yet been
synchronized, it won't notice a revision property change
outside that range. Left as is, this causes a deviation
in the values of that revision's properties between the
source and mirror repositories. <command>svnsync
copy-revprops</command> is the answer to this problem.
Use it to resynchronize the revision properties for a
particular revision or range of revisions.</para>
</refsect1>

<refsect1>
<title>Alternate name</title>
<para>None</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--config-dir DIR
--no-auth-cache
--non-interactive
--quiet (-q)
--source-password ARG
--source-username ARG
--sync-password ARG
--sync-username ARG
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>Resynchronize revision properties for a single revision:</para>

<screen>
$ svnsync copy-revprops file:///var/svn/repos-mirror 6
Copied properties for revision 6.
$
</screen>

</refsect1>
</refentry>

<refentry id="svn.ref.svnsync.c.help">

<indexterm>
<primary>svnsync</primary>
<secondary>subcommands</secondary>
<tertiary>help</tertiary>
</indexterm>

<refnamediv>
<refname>svnsync help</refname> <refpurpose>Help!</refpurpose>
</refnamediv>
<refsect1>

<title>Synopsis</title>
<programlisting>svnsync help</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>This subcommand is useful when you're trapped in a
foreign prison with neither a Net connection nor a copy of
this book, but you do have a local Wi-Fi network running
and you'd like to sync a copy of your repository over to
the backup server that Ira The Knife is running over in
cell block D.</para>

</refsect1>

<refsect1>
<title>Alternate name</title>
<para>None</para>
</refsect1>

<refsect1>
<title>Options</title>
<para>None</para>
</refsect1>

</refentry>

<refentry id="svn.ref.svnsync.c.init">

<indexterm>
<primary>svnsync</primary>
<secondary>subcommands</secondary>
<tertiary>initialize</tertiary>
</indexterm>

<refnamediv>
<refname>svnsync initialize</refname>
<refpurpose>Initialize a mirror repository for
synchronization from the source repository.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svnsync initialize MIRROR_URL SOURCE_URL</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para><command>svnsync initialize</command> verifies that a
repository meets the requirements of a new mirror
repository&mdash;that it has no previous existing version
history and that it allows revision property
modifications&mdash;and records the initial administrative
information that associates the mirror repository with
the source repository. This is the first
<command>svnsync</command> operation you run on a would-be
mirror repository.</para>
</refsect1>

<refsect1>
<title>Alternate name</title>
<para><command>init</command></para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--config-dir DIR
--no-auth-cache
--non-interactive
--quiet (-q)
--source-password ARG
--source-username ARG
--sync-password ARG
--sync-username ARG
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>Fail to initialize a mirror repository due to
inability to modify revision properties:</para>

<screen>
$ svnsync initialize file:///var/svn/repos-mirror http://svn.example.com/repos
svnsync: Repository has not been enabled to accept revision propchanges;
ask the administrator to create a pre-revprop-change hook
$
</screen>

<para>Initialize a repository as a mirror, having already
created a <literal>pre-revprop-change</literal> hook that
permits all revision property changes:</para>

<screen>
$ svnsync initialize file:///var/svn/repos-mirror http://svn.example.com/repos
Copied properties for revision 0.
$
</screen>

</refsect1>
</refentry>

<refentry id="svn.ref.svnsync.c.sync">

<indexterm>
<primary>svnsync</primary>
<secondary>subcommands</secondary>
<tertiary>synchronize</tertiary>
</indexterm>

<refnamediv>
<refname>svnsync synchronize</refname>
<refpurpose>Transfer all pending revisions from the source
repository to the mirror repository.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svnsync synchronize DEST_URL</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>The <command>svnsync synchronize</command> command
does all the heavy lifting of a repository mirroring
operation. After consulting with the mirror repository to
see which revisions have already been copied into it, it
then begins to copy any not-yet-mirrored revisions from
the source repository.</para>

<para><command>svnsync synchronize</command> can be
gracefully canceled and restarted.</para>

<para>As of Subversion 1.5, you can limit <command>svnsync</command> to a
subdirectory of the source repository by specifying the
subdirectory as part of
the <replaceable>SOURCE_URL</replaceable>.</para>

</refsect1>

<refsect1>
<title>Alternate name</title>
<para><command>sync</command></para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--config-dir DIR
--no-auth-cache
--non-interactive
--quiet (-q)
--source-password ARG
--source-username ARG
--sync-password ARG
--sync-username ARG
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>Copy unsynchronized revisions from the source
repository to the mirror repository:</para>

<screen>
$ svnsync synchronize file:///var/svn/repos-mirror
Committed revision 1.
Copied properties for revision 1.
Committed revision 2.
Copied properties for revision 2.
Committed revision 3.
Copied properties for revision 3.
&hellip;
Committed revision 45.
Copied properties for revision 45.
Committed revision 46.
Copied properties for revision 46.
Committed revision 47.
Copied properties for revision 47.
$
</screen>

</refsect1>

</refentry>
</sect2>

</sect1>

<!-- ================================================================= -->
<!-- ================================================================= -->
<!-- ================================================================= -->
<sect1 id="svn.ref.svnserve">

<title>svnserve</title>

<para><command>svnserve</command> allows access to Subversion
repositories using Subversion's custom network protocol.</para>

<para>You can run <command>svnserve</command> as a standalone
server process (for clients that are using the
<literal>svn://</literal> access method); you can have a daemon
such as <command>inetd</command> or <command>xinetd</command>
launch it for you on demand (also for
<literal>svn://</literal>), or you can have
<command>sshd</command> launch it on demand for the
<literal>svn+ssh://</literal> access method.</para>

<para>Regardless of the access method, once the client has
selected a repository by transmitting its URL,
<command>svnserve</command> reads a file named
<filename>conf/svnserve.conf</filename> in the repository
directory to determine repository-specific settings such as
what authentication database to use and what authorization
policies to apply. See <xref
linkend="svn.serverconfig.svnserve"/> for details of the
<filename>svnserve.conf</filename> file.</para>

<!-- =============================================================== -->
<sect2 id="svn.ref.svnserve.sw">
<title>svnserve Options</title>

<para>Unlike the previous commands we've
described, <command>svnserve</command> has no
subcommands&mdash;it is controlled exclusively by
options.</para>

<variablelist>

<varlistentry>
<term><option>--daemon</option> (<option>-d</option>)</term>
<listitem>
<para>Causes <command>svnserve</command> to run in daemon
mode. <command>svnserve</command> backgrounds itself
and accepts and serves TCP/IP connections on
the <literal>svn</literal> port (3690, by
default).</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--foreground</option></term>
<listitem>
<para>When used together with <option>-d</option>,
causes <command>svnserve</command> to stay in the
foreground. This is mainly useful for debugging.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--inetd</option> (<option>-i</option>)</term>
<listitem>
<para>Causes <command>svnserve</command> to use the
<filename>stdin</filename> and <filename>stdout</filename> file descriptors, as is appropriate for a
daemon running out of <command>inetd</command>.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--help</option> (<option>-h</option>)</term>
<listitem>
<para>Displays a usage summary and exits.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--listen-host</option>=<replaceable>HOST</replaceable></term>
<listitem>
<para>Causes <command>svnserve</command> to listen on the
interface specified by <replaceable>HOST</replaceable>,
which may be either a hostname or an IP address.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--listen-once</option> (<option>-X</option>)</term>
<listitem>
<para>Causes <command>svnserve</command> to accept one
connection on the <literal>svn</literal> port, serve it,
and exit. This option is mainly useful for
debugging.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--listen-port</option>=<replaceable>PORT</replaceable></term>
<listitem>
<para>Causes <command>svnserve</command> to listen on
<replaceable>PORT</replaceable> when run in daemon mode.
(FreeBSD daemons listen only on tcp6 by default&mdash;this
option tells them to also listen on tcp4.)</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--pid-file <replaceable>FILENAME</replaceable></option></term>
<listitem>
<para>Causes <command>svnserve</command> to write its
process ID to <replaceable>FILENAME</replaceable>, which
must be writable by the user under
which <command>svnserve</command> is running.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--root</option>=<replaceable>ROOT</replaceable>
(<option>-r</option>=<replaceable>ROOT</replaceable>)</term>
<listitem>
<para>Sets the virtual root for repositories served by
<command>svnserve</command>. The pathname in URLs
provided by the client will be interpreted relative to
this root and will not be allowed to escape this
root.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--threads</option> (<option>-T</option>)</term>
<listitem>
<para>When running in daemon mode, causes
<command>svnserve</command> to spawn a thread instead of
a process for each connection (e.g., for when running on
Windows). The <command>svnserve</command> process still
backgrounds itself at startup time.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--tunnel</option> (<option>-t</option>)</term>
<listitem>
<para>Causes <command>svnserve</command> to run in tunnel
mode, which is just like the <command>inetd</command>
mode of operation (both modes serve one connection over
<filename>stdin</filename>/<filename>stdout</filename>, and then exit), except that the connection
is considered to be preauthenticated with the username
of the current UID. This flag is automatically passed
for you by the client when running over a tunnel agent
such as <command>ssh</command>. That means there's
rarely any need for <emphasis>you</emphasis> to pass
this option to <command>svnserve</command>. So, if you
find yourself
typing <literal>svnserve --tunnel</literal> on the
command line and wondering what to do next, see
<xref linkend="svn.serverconfig.svnserve.sshauth"/>.
</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--tunnel-user NAME</option></term>
<listitem>
<para>Used in conjunction with the <option>--tunnel</option>
option, tells <command>svnserve</command> to assume that
<replaceable>NAME</replaceable> is the authenticated
user, rather than the UID of the <command>svnserve</command>
process. This is useful for users wishing to share a single
system account over SSH, but to maintain separate commit
identities.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--version</option></term>
<listitem>
<para>Displays version information and a list of repository
backend modules available, and then exits.</para>
</listitem>
</varlistentry>

</variablelist>

</sect2>

</sect1>

<!-- ================================================================= -->
<!-- ================================================================= -->
<!-- ================================================================= -->
<sect1 id="svn.ref.svndumpfilter">
<title>svndumpfilter</title>

<para><command>svndumpfilter</command> is a command-line utility
for removing history from a Subversion dump file by either
excluding or including paths beginning with one or more named
prefixes. For details, see
<xref linkend="svn.reposadmin.maint.tk.svndumpfilter"/>.</para>

<!-- =============================================================== -->
<sect2 id="svn.ref.svndumpfilter.options">
<title>svndumpfilter Options</title>

<para>Options in <command>svndumpfilter</command> are global, just
as they are in <command>svn</command> and
<command>svnadmin</command>:</para>

<variablelist>

<varlistentry>
<term><option>--drop-empty-revs</option></term>
<listitem>
<para>If filtering causes any revision to be empty (i.e.,
causes no change to the repository), removes these
revisions from the final dump file.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--renumber-revs</option></term>
<listitem>
<para>Renumbers revisions that remain after
filtering.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--skip-missing-merge-sources</option></term>
<listitem>
<para>Skips merge sources that have been removed as part of
the filtering. Without this
option, <command>svndumpfilter</command> will exit with
an error if the merge source for a retained path is
removed by filtering.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--preserve-revprops</option></term>
<listitem>
<para>If all nodes in a revision are removed by filtering
and <option>--drop-empty-revs</option> is not passed,
the default behavior of <command>svndumpfilter</command>
is to remove all revision properties except for the date
and the log message (which will merely indicate that the
revision is empty). Passing this option will preserve
existing revision properties (which may or may not make
sense since the related content is no longer present in
the dump file).</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--quiet</option></term>
<listitem>
<para>Does not display filtering statistics.</para>
</listitem>
</varlistentry>

</variablelist>

</sect2>

<!-- =============================================================== -->
<sect2 id="svn.ref.svndumpfilter.c">
<title>svndumpfilter Subcommands</title>

<para>Here are the various subcommands
for the <command>svndumpfilter</command> program.</para>

<refentry id="svn.ref.svndumpfilter.commands.c.exclude">

<indexterm>
<primary>svndumpfilter</primary>
<secondary>subcommands</secondary>
<tertiary>exclude</tertiary>
</indexterm>

<refnamediv>
<refname>svndumpfilter exclude</refname>
<refpurpose>Filter out nodes with given prefixes from the dump stream.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svndumpfilter exclude PATH_PREFIX...</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>This can be used to exclude nodes that begin with one or
more <replaceable>PATH_PREFIX</replaceable>es from a
filtered dump file.</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--drop-empty-revs
--preserve-revprops
--quiet
--renumber-revs
--skip-missing-merge-sources
</screen>
</refsect1>

<refsect1>
<title>Examples</title>

<para>If we have a dump file from a repository with a number of
different picnic-related directories in it, but we want to keep
everything <emphasis>except</emphasis>
the <filename>sandwiches</filename> part of the repository,
we'll exclude only that path:</para>

<screen>
$ svndumpfilter exclude sandwiches &lt; dumpfile &gt; filtered-dumpfile
Excluding prefixes:
'/sandwiches'

Revision 0 committed as 0.
Revision 1 committed as 1.
Revision 2 committed as 2.
Revision 3 committed as 3.
Revision 4 committed as 4.

Dropped 1 node(s):
'/sandwiches'
</screen>

</refsect1>
</refentry>

<refentry id="svn.ref.svndumpfilter.commands.c.include">

<indexterm>
<primary>svndumpfilter</primary>
<secondary>subcommands</secondary>
<tertiary>include</tertiary>
</indexterm>

<refnamediv>
<refname>svndumpfilter include</refname>
<refpurpose>Filter out nodes without given prefixes from
dump stream.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svndumpfilter include PATH_PREFIX...</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Can be used to include nodes that begin with one or
more <replaceable>PATH_PREFIX</replaceable>es in a
filtered dump file (thus excluding all other paths).</para>
</refsect1>

<refsect1>
<title>Options</title>

<screen>
--drop-empty-revs
--preserve-revprops
--quiet
--renumber-revs
--skip-missing-merge-sources
</screen>
</refsect1>

<refsect1>
<title>Example</title>

<para>If we have a dump file from a repository with a number of
different picnic-related directories in it, but want to
keep only the <filename>sandwiches</filename> part of the
repository, we'll include only that path:</para>

<screen>
$ svndumpfilter include sandwiches &lt; dumpfile &gt; filtered-dumpfile
Including prefixes:
'/sandwiches'

Revision 0 committed as 0.
Revision 1 committed as 1.
Revision 2 committed as 2.
Revision 3 committed as 3.
Revision 4 committed as 4.

Dropped 3 node(s):
'/drinks'
'/snacks'
'/supplies'
</screen>

</refsect1>
</refentry>

<refentry id="svn.ref.svndumpfilter.commands.c.help">

<indexterm>
<primary>svndumpfilter</primary>
<secondary>subcommands</secondary>
<tertiary>help</tertiary>
</indexterm>

<refnamediv>
<refname>svndumpfilter help</refname>
<refpurpose>Help!.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<programlisting>svndumpfilter help [SUBCOMMAND...]</programlisting>
</refsect1>
<refsect1>
<title>Description</title>

<para>Displays the help message
for <command>svndumpfilter</command>. Unlike other help
commands documented in this chapter, there is no witty
commentary for this help command. The authors of this
book deeply regret the omission.</para>
</refsect1>

<refsect1>
<title>Options</title>
<para>None</para>
</refsect1>

</refentry>

</sect2>
</sect1>

<!-- ================================================================= -->
<!-- ================================================================= -->
<!-- ================================================================= -->
<sect1 id="svn.ref.svnversion">

<title>svnversion</title>

<refentry id="svn.ref.svnversion.re">

<indexterm>
<primary>svnversion</primary>
</indexterm>

<refnamediv>
<refname>svnversion</refname>
<refpurpose>Summarize the local revision(s) of a working
copy.</refpurpose>
</refnamediv>

<refsect1 id="svn.ref.svnversion.re.syn">
<title>Synopsis</title>
<programlisting>svnversion [OPTIONS] [WC_PATH [TRAIL_URL]]</programlisting>
</refsect1>

<refsect1 id="svn.ref.svnversion.re.desc">
<title>Description</title>

<para><command>svnversion</command> is a program for
summarizing the revision mixture of a working copy. The
resultant revision number, or revision range, is written to
standard output.</para>

<para>It's common to use this output in your build process
when defining the version number of your program.</para>

<para><replaceable>TRAIL_URL</replaceable>, if present, is the
trailing portion of the URL used to determine whether
<replaceable>WC_PATH</replaceable> itself is switched
(detection of switches within
<replaceable>WC_PATH</replaceable> does not rely on
<replaceable>TRAIL_URL</replaceable>).</para>

<para>When <replaceable>WC_PATH</replaceable> is not defined,
the current directory will be used as the working copy path.
<replaceable>TRAIL_URL</replaceable> cannot be defined if
<replaceable>WC_PATH</replaceable> is not explicitly
given.</para>

</refsect1>

<refsect1 id="svn.ref.svnversion.re.sw">
<title>Options</title>

<para>Like <command>svnserve</command>,
<command>svnversion</command> has no subcommands&mdash;only
options:</para>

<variablelist>

<varlistentry>
<term><option>--no-newline</option> (<option>-n</option>)</term>
<listitem>
<para>Omits the usual trailing newline from the output.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--committed</option> (<option>-c</option>)</term>
<listitem>
<para>Uses the last-changed revisions rather than the
current (i.e., highest locally available) revisions.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--help</option> (<option>-h</option>)</term>
<listitem>
<para>Prints a help summary.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><option>--version</option></term>
<listitem>
<para>Prints the version of <command>svnversion</command>
and exit with no error.</para>
</listitem>
</varlistentry>

</variablelist>
</refsect1>

<refsect1 id="svn.ref.svnversion.re.examples">
<title>Examples</title>

<para>If the working copy is all at the same revision (e.g.,
immediately after an update), then that revision is
printed out:</para>

<screen>
$ svnversion
4168
</screen>

<para>You can add <replaceable>TRAIL_URL</replaceable> to make
sure the working copy is not switched from what you
expect. Note that the <replaceable>WC_PATH</replaceable>
is required in this command:</para>

<screen>
$ svnversion . /var/svn/trunk
4168
</screen>

<para>For a mixed-revision working copy, the range of
revisions present is printed:</para>

<screen>
$ svnversion
4123:4168
</screen>

<para>If the working copy contains modifications, a trailing
"M" is added:</para>

<screen>
$ svnversion
4168M
</screen>

<para>If the working copy is switched, a trailing "S" is
added:</para>

<screen>
$ svnversion
4168S
</screen>

<para>Thus, here is a mixed-revision, switched working copy
containing some local modifications:</para>

<screen>
$ svnversion
4212:4168MS
</screen>

<para>If invoked on a directory that is not a working copy,
<command>svnversion</command> assumes it is an exported
working copy and prints "exported":</para>

<screen>
$ svnversion
exported
</screen>

</refsect1>

</refentry>
</sect1>

<!-- ================================================================= -->
<!-- ================================================================= -->
<!-- ================================================================= -->
<sect1 id="svn.ref.mod_dav_svn">

<title>mod_dav_svn</title>

<refentry id="svn.ref.mod_dav_svn.conf">
<refnamediv>

<refname>mod_dav_svn Configuration Directives</refname>
<refpurpose>Apache configuration
directives for serving Subversion repositories through the
Apache HTTP Server.</refpurpose>

</refnamediv>

<refsect1 id="svn.ref.mod_dav_svn.conf.desc">
<title>Description</title>

<para>This section briefly describes each Subversion
Apache configuration directive. For an in-depth
description of configuring Apache with Subversion, see <xref
linkend="svn.serverconfig.httpd"/>.)</para>

</refsect1>

<refsect1 id="svn.ref.mod_dav_svn.conf.directives">
<title>Directives</title>

<para>These are the <filename>httpd.conf</filename> directives
that apply to <command>mod_dav_svn</command>:</para>

<variablelist>

<varlistentry>
<term><literal>DAV svn</literal></term>
<listitem>

<para>Must be included in any
<literal>Directory</literal> or
<literal>Location</literal> block for a Subversion
repository. It tells <command>httpd</command> to use the Subversion
backend for <literal>mod_dav</literal> to handle all
requests.</para>

</listitem>
</varlistentry>

<varlistentry>
<term><literal>SVNAllowBulkUpdates On|Off</literal></term>
<listitem>

<para>Toggles support for all-inclusive
responses to update-style <literal>REPORT</literal>
requests. Subversion clients use
<literal>REPORT</literal> requests to get information
about directory tree checkouts and updates from
<command>mod_dav_svn</command>. They can ask the
server to send that information in one of two ways:
with the entirety of the tree's information in one
massive response, or with a
<firstterm>skelta</firstterm> (a skeletal
representation of a tree delta) which contains just
enough information for the client to know what
<emphasis>additional</emphasis> data to request from
the server. When this directive is included with a
value of <literal>Off</literal>,
<command>mod_dav_svn</command> will only ever respond
to these <literal>REPORT</literal> requests with
skelta responses, regardless of the type of responses
requested by the client.</para>

<para>Most folks won't need to use this directive at
all. It primarily exists for administrators who
wish&mdash;for security or auditing reasons&mdash;to
force Subversion clients to fetch individually all the
files and directories needed for updates and
checkouts, thus leaving an audit trail of
<literal>GET</literal> and <literal>PROPFIND</literal>
requests in Apache's logs. The default value of this
directive is <literal>On</literal>.</para>

</listitem>
</varlistentry>
<varlistentry>
<term><literal>SVNAutoversioning On|Off</literal></term>
<listitem>

<para>When its value is
<literal>On</literal>, allows write requests from
WebDAV clients to result in automatic commits. A
generic log message is auto-generated and attached to
each revision. If you enable autoversioning, you'll
likely want to set <literal>ModMimeUsePathInfo
On</literal> so that <literal>mod_mime</literal> can
set <literal>svn:mime-type</literal> to the correct
MIME type automatically (as best as
<literal>mod_mime</literal> is able to, of course).
For more information, see <xref
linkend="svn.webdav"/>. The default value of this
directive is <literal>Off</literal>.</para>

</listitem>
</varlistentry>

<varlistentry>
<term><literal>SVNPath
<replaceable>directory-path</replaceable></literal></term>
<listitem>

<para>Specifies the location in the
filesystem for a Subversion repository's files. In a
configuration block for a Subversion repository,
either this directive or
<literal>SVNParentPath</literal> must be present, but
not both.</para>

</listitem>
</varlistentry>

<varlistentry>
<term><literal>SVNSpecialURI
<replaceable>component</replaceable></literal></term>
<listitem>

<para>Specifies the URI component (namespace) for
special Subversion resources. The default is
<literal>!svn</literal>, and most
administrators will never use this directive. Set
this only if there is a pressing need to have a file
named <filename>!svn</filename> in your repository.
If you change this on a server already in use, it will
break all of the outstanding working copies, and your
users will hunt you down with pitchforks and flaming
torches.</para>

</listitem>
</varlistentry>

<varlistentry>
<term><literal>SVNReposName
<replaceable>name</replaceable></literal></term>
<listitem>

<para>Specifies the name of a Subversion repository for
use in <literal>HTTP GET</literal> responses. This
value will be prepended to the title of all directory
listings (which are served when you navigate to a
Subversion repository with a web browser). This
directive is optional.</para>

</listitem>
</varlistentry>

<varlistentry>
<term><literal>SVNIndexXSLT
<replaceable>directory-path</replaceable></literal></term>
<listitem>

<para>Specifies the URI of an XSL transformation for
directory indexes. This directive is optional.</para>

</listitem>
</varlistentry>

<varlistentry>
<term><literal>SVNParentPath
<replaceable>directory-path</replaceable></literal></term>
<listitem>

<para>Specifies the location in the filesystem of a
parent directory whose child directories are
Subversion repositories. In a configuration block for
a Subversion repository, either this directive or
<literal>SVNPath</literal> must be present, but not
both.</para>

</listitem>
</varlistentry>

<varlistentry>
<term><literal>SVNPathAuthz On|Off|short_circuit</literal></term>
<listitem>

<para>Controls path-based authorization by enabling
subrequests (<literal>On</literal>), disabling
subrequests (<literal>Off</literal>; see <xref
linkend="svn.serverconfig.httpd.authz.pathauthzoff"/>),
or querying <command>mod_authz_svn</command> directly
(<literal>short_circuit</literal>). The default
value of this directive is <literal>On</literal>.</para>

</listitem>
</varlistentry>

<varlistentry>
<term><literal>SVNListParentPath On|Off</literal></term>
<listitem>

<para>When set to <literal>On</literal>, allows
a <literal>GET</literal>
of <literal>SVNParentPath</literal>, which results in
a listing of all repositories under that path. The
default setting is
<literal>Off</literal>.</para>

</listitem>
</varlistentry>

<varlistentry>
<term><literal>SVNMasterURI
<replaceable>url</replaceable></literal></term>
<listitem>

<para>Specifies a URI to the master Subversion
repository (used for a write-through proxy).</para>

</listitem>
</varlistentry>

<varlistentry>
<term><literal>SVNActivitiesDB
<replaceable>directory-path</replaceable></literal></term>
<listitem>

<para>Specifies the location in the filesystem where the
activities database should be stored. By default,
<command>mod_dav_svn</command> creates and uses a directory in the
repository
called <filename>dav/activities.d</filename>. The
path specified with this option must be an absolute
path.</para>

<para>If specified for
an <literal>SVNParentPath</literal> area, <command>mod_dav_svn</command>
appends the basename of the repository to the path
specified here. For example:</para>

<screen>
&lt;Location /svn&gt;
DAV svn

# any "/svn/foo" URL will map to a repository in
# /net/svn.nfs/repositories/foo
SVNParentPath "/net/svn.nfs/repositories"

# any "/svn/foo" URL will map to an activities db in
# /var/db/svn/activities/foo
SVNActivitiesDB "/var/db/svn/activities"
&lt;/Location&gt;
</screen>

</listitem>
</varlistentry>

</variablelist>
</refsect1>

<refsect1 id="svn.ref.mod_dav_svn.conf.logging">
<title>High-level logging</title>

<para>This is a list of Subversion action log messages
produced by Apache's high-level logging mechanism, followed
by an example of the log message. See <xref
linkend="svn.serverconfig.httpd.extra.logging"/> for details
on logging.</para>

<variablelist>

<varlistentry>
<term>Checkout or export</term>
<listitem>
<para><literal>checkout-or-export /path r62
depth=infinity</literal></para>
</listitem>
</varlistentry>

<varlistentry>
<term>Commit</term>
<listitem>
<para><literal>commit harry r100</literal></para>
</listitem>
</varlistentry>

<varlistentry>
<term>Diffs</term>
<listitem>
<para><literal>diff /path r15:20 depth=infinity ignore-ancestry</literal></para>
<para><literal>diff /path1@15 /path2@20 depth=infinity ignore-ancestry</literal></para>
</listitem>
</varlistentry>

<varlistentry>
<term>Fetch a directory</term>
<listitem>
<para><literal>get-dir /trunk r17 text</literal></para>
</listitem>
</varlistentry>

<varlistentry>
<term>Fetch a file</term>
<listitem>
<para><literal>get-file /path r20 props</literal></para>
</listitem>
</varlistentry>

<varlistentry>
<term>Fetch a file revision</term>
<listitem>
<para><literal>get-file-revs /path r12:15 include-merged-revisions</literal></para>
</listitem>
</varlistentry>

<varlistentry>
<term>Fetch merge information</term>
<listitem>
<para><literal>get-mergeinfo (/path1 /path2)</literal></para>
</listitem>
</varlistentry>

<varlistentry>
<term>Lock</term>
<listitem>
<para><literal>lock /path steal</literal></para>
</listitem>
</varlistentry>

<varlistentry>
<term>Log</term>
<listitem>
<para><literal>log (/path1,/path2,/path3) r20:90
discover-changed-paths revprops=()</literal></para>
</listitem>
</varlistentry>

<varlistentry>
<term>Replay revisions (svnsync)</term>
<listitem>
<para><literal>replay /path r19</literal></para>
</listitem>
</varlistentry>

<varlistentry>
<term>Revision property change</term>
<listitem>
<para><literal>change-rev-prop r50
propertyname</literal></para>
</listitem>
</varlistentry>

<varlistentry>
<term>Revision property list</term>
<listitem>
<para><literal>rev-proplist r34</literal></para>
</listitem>
</varlistentry>

<varlistentry>
<term>Status</term>
<listitem>
<para><literal>status /path r62
depth=infinity</literal></para>
</listitem>
</varlistentry>

<varlistentry>
<term>Switch</term>
<listitem>
<para><literal>switch /pathA /pathB@50 depth=infinity</literal></para>
</listitem>
</varlistentry>

<varlistentry>
<term>Unlock</term>
<listitem>
<para><literal>unlock /path break</literal></para>
</listitem>
</varlistentry>

<varlistentry>
<term>Update</term>
<listitem>
<para><literal>update /path r17 send-copyfrom-args</literal></para>
</listitem>
</varlistentry>

</variablelist>

</refsect1>

</refentry>
</sect1>

<!-- ================================================================= -->
<!-- ================================================================= -->
<!-- ================================================================= -->
<sect1 id="svn.ref.mod_authz_svn">

<title>mod_authz_svn</title>

<refentry id="svn.ref.mod_authz_svn.conf">
<refnamediv>

<refname>mod_authz_svn Configuration Directives</refname>
<refpurpose>Apache configuration directives for configuring
path-based authorization for Subversion repositories served
through the Apache HTTP Server.</refpurpose>

</refnamediv>

<refsect1 id="svn.ref.mod_authz_svn.conf.desc">
<title>Description</title>

<para>This section briefly describes each Apache configuration
directive offered by <command>mod_authz_svn</command>. For
an in-depth description of using path-based authorization in
Subversion, see <xref linkend="svn.serverconfig.pathbasedauthz"/>.)</para>

</refsect1>

<refsect1 id="svn.ref.mod_authz_svn.conf.directives">
<title>Directives</title>

<para>These are the <filename>httpd.conf</filename> directives
that apply to <command>mod_authz_svn</command>:</para>

<variablelist>

<varlistentry>
<term><literal>AuthzSVNAccessFile
<replaceable>file-path</replaceable></literal></term>
<listitem>

<para>Consult <replaceable>file-path</replaceable> for
access rules describing the permissions for paths in
Subversion repository.</para>

</listitem>
</varlistentry>

<varlistentry>
<term><literal>AuthzSVNAnonymous On|Off</literal></term>
<listitem>

<para>Set to <literal>Off</literal> to disable two
special-case behaviours of this module: interaction
with the <literal>Satisfy Any</literal> directive and
enforcement of the authorization policy even when no
<literal>Require</literal> directives are present.
The default value of this directive is
<literal>On</literal>.</para>

</listitem>
</varlistentry>

<varlistentry>
<term><literal>AuthzSVNAuthoritative On|Off</literal></term>
<listitem>

<para>Set to <literal>Off</literal> to allow access
control to be passed along to lower modules. The
default value of this directive is
<literal>On</literal>.</para>

</listitem>
</varlistentry>

<varlistentry>
<term><literal>AuthzSVNNoAuthWhenAnonymousAllowed On|Off</literal></term>
<listitem>

<para>Set to <literal>On</literal> to suppress
authentication and authorization for requests which
anonymous users are allowed to perform. The default
value of this directive is
<literal>On</literal>.</para>

</listitem>
</varlistentry>

</variablelist>
</refsect1>

</refentry>
</sect1>

<!-- ================================================================= -->
<!-- ================================================================= -->
<!-- ================================================================= -->
<sect1 id="svn.ref.properties">

<title>Subversion Properties</title>

<para>Subversion allows users to invent arbitrarily named
versioned properties on files and directories, as well as
unversioned properties on revisions. The only restriction is on
properties whose names begin with <literal>svn:</literal> (those
are reserved for Subversion's own use). While these properties
may be set by users to control Subversion's behavior, users may
not invent new <literal>svn:</literal> properties.</para>

<sect2 id="svn.ref.properties.versioned-props">
<title>Versioned Properties</title>

<para>These are the versioned properties that Subversion reserves
for its own use:</para>

<variablelist>

<varlistentry>
<term><literal>svn:executable</literal></term>
<listitem>

<para>If present on a file, the client will make the
file executable in Unix-hosted working copies. See
<xref
linkend="svn.advanced.props.special.executable"/>.</para>

</listitem>
</varlistentry>

<varlistentry>
<term><literal>svn:mime-type</literal></term>
<listitem>

<para>If present on a file, the value indicates the
file's MIME type. This allows the client to decide
whether line-based contextual merging is safe to
perform during updates, and can also affect how the
file behaves when fetched via a web browser. See
<xref
linkend="svn.advanced.props.special.mime-type"/>. </para>

</listitem>
</varlistentry>

<varlistentry>
<term><literal>svn:ignore</literal></term>
<listitem>

<para>If present on a directory, the value is a list of
<emphasis>unversioned</emphasis> file patterns to be ignored
by <command>svn status</command> and other
subcommands. See
<xref
linkend="svn.advanced.props.special.ignore"/>.</para>

</listitem>
</varlistentry>

<varlistentry>
<term><literal>svn:keywords</literal></term>
<listitem>

<para>If present on a file, the value tells the client
how to expand particular keywords within the file.
See
<xref
linkend="svn.advanced.props.special.keywords"/>.</para>

</listitem>
</varlistentry>

<varlistentry>
<term><literal>svn:eol-style</literal></term>
<listitem>

<para>If present on a file, the value tells the client how
to manipulate the file's line-endings in the working
copy and in exported trees. See <xref
linkend="svn.advanced.props.special.eol-style"/> and
<xref linkend="svn.ref.svn.c.export" /> earlier in this chapter.</para>

</listitem>
</varlistentry>

<varlistentry>
<term><literal>svn:externals</literal></term>
<listitem>

<para>If present on a directory, the value is a multiline
list of other paths and URLs the client should check
out. See
<xref linkend="svn.advanced.externals"/>.</para>

</listitem>
</varlistentry>

<varlistentry>
<term><literal>svn:special</literal></term>
<listitem>

<para>If present on a file, indicates that the file is not
an ordinary file, but a symbolic link or other special
object.
<footnote>
<para>As of this writing, symbolic links are indeed
the only <quote>special</quote> objects. But there
might be more in future releases of
Subversion.</para>
</footnote>
</para>

</listitem>
</varlistentry>

<varlistentry>
<term><literal>svn:needs-lock</literal></term>
<listitem>

<para>If present on a file, tells the client to make the
file read-only in the working copy, as a reminder that
the file should be locked before editing begins. See
<xref
linkend="svn.advanced.locking.lock-communication"/>.</para>

</listitem>
</varlistentry>

<varlistentry>
<term><literal>svn:mergeinfo</literal></term>
<listitem>

<para>Used by Subversion to track merge data. See
<xref linkend="svn.branchmerge.basicmerging.mergeinfo"/>
for details, but you should never edit this property
unless you <emphasis>really</emphasis> know what you're
doing.</para>

</listitem>
</varlistentry>

</variablelist>
</sect2>

<sect2 id="svn.ref.properties.unversioned-props">
<title>Unversioned Properties</title>

<para>These are the unversioned properties tht Subversion reserves
for its own use:</para>

<variablelist>

<varlistentry>
<term><literal>svn:author</literal></term>
<listitem>

<para>If present, contains the authenticated username of
the person who created the revision. (If not present,
the revision was committed anonymously.)</para>

</listitem>
</varlistentry>

<varlistentry>
<term><literal>svn:date</literal></term>
<listitem>

<para>Contains the UTC time the revision was created, in
ISO 8601 format. The value comes from the
<emphasis>server</emphasis> machine's clock, not the
client's.</para>

</listitem>
</varlistentry>

<varlistentry>
<term><literal>svn:log</literal></term>
<listitem>

<para>Contains the log message describing the
revision.</para>

</listitem>
</varlistentry>

<varlistentry>
<term><literal>svn:autoversioned</literal></term>
<listitem>

<para>If present, the revision was created via the
autoversioning feature. See
<xref linkend="svn.webdav.autoversioning"/>.</para>

</listitem>
</varlistentry>

</variablelist>
</sect2>

</sect1>

<!-- ================================================================= -->
<!-- ================================================================= -->
<!-- ================================================================= -->
<sect1 id="svn.ref.reposhooks">

<title>Repository Hooks</title>

<para>These are the repository hooks that Subversion provides:</para>

<!-- =============================================================== -->
<refentry id="svn.ref.reposhooks.start-commit">

<indexterm>
<primary>repository</primary>
<secondary>hooks</secondary>
<tertiary>start-commit</tertiary>
</indexterm>

<refnamediv>
<refname>start-commit</refname>
<refpurpose>Notification of the beginning of a commit.</refpurpose>
</refnamediv>

<refsect1>
<title>Description</title>

<para>The start-commit hook is run before the commit
transaction is even created. It is typically used to
decide whether the user has commit privileges at all.</para>

<para>If the start-commit hook program returns a nonzero exit
value, the commit is stopped before the commit transaction
is even created, and anything printed to <filename>stderr</filename> is
marshalled back to the client.</para>

</refsect1>

<refsect1>
<title>Input Parameter(s)</title>

<para>The command-line arguments passed to the hook program,
in order, are:</para>

<orderedlist>
<listitem>
<para>Repository path</para>
</listitem>
<listitem>
<para>Authenticated username attempting the commit</para>
</listitem>
<listitem>
<para>Colon-separated list of
capabilities that a client passes to the server,
including <literal>depth</literal>,
<literal>mergeinfo</literal>, and
<literal>log-revprops</literal> (new in Subversion 1.5).</para>
</listitem>
</orderedlist>
</refsect1>

<refsect1>
<title>Common uses</title>

<para>Access control (e.g., temporarily lock out commits for
some reason).</para>

<para>A means to allow access only from clients that have
certain capabilities.</para>
</refsect1>

</refentry>

<!-- =============================================================== -->
<refentry id="svn.ref.reposhooks.pre-commit">

<indexterm>
<primary>repository</primary>
<secondary>hooks</secondary>
<tertiary>pre-commit</tertiary>
</indexterm>

<refnamediv>
<refname>pre-commit</refname>
<refpurpose>Notification just prior to commit completion.</refpurpose>
</refnamediv>

<refsect1>
<title>Description</title>

<para>The <literal>pre-commit</literal> hook is run just
before a commit transaction is promoted to a new revision.
Typically, this hook is used to protect against commits that
are disallowed due to content or location (e.g., your
site might require that all commits to a certain branch
include a ticket number from the bug tracker, or that the
incoming log message is nonempty).</para>

<para>If the <literal>pre-commit</literal> hook program
returns a nonzero exit value, the commit is aborted, the
commit transaction is removed, and anything printed to
<filename>stderr</filename> is marshalled back to the client.</para>

</refsect1>

<refsect1>
<title>Input parameter(s)</title>

<para>The command-line arguments passed to the hook program,
in order, are:</para>

<orderedlist>
<listitem>
<para>Repository path</para>
</listitem>
<listitem>
<para>Commit transaction name</para>
</listitem>
</orderedlist>
</refsect1>

<refsect1>
<title>Common uses</title>
<para>Change validation and control</para>
</refsect1>

</refentry>

<!-- =============================================================== -->
<refentry id="svn.ref.reposhooks.post-commit">

<indexterm>
<primary>repository</primary>
<secondary>hooks</secondary>
<tertiary>post-commit</tertiary>
</indexterm>

<refnamediv>
<refname>post-commit</refname>
<refpurpose>Notification of a successful commit.</refpurpose>
</refnamediv>

<refsect1>
<title>Description</title>

<para>The <literal>post-commit</literal> hook is run after the
transaction is committed and a new revision is created. Most
people use this hook to send out descriptive emails about
the commit or to notify some other tool (such as an issue
tracker) that a commit has happened. Some configurations
also use this hook to trigger backup processes.</para>

<para>If the <literal>post-commit</literal> hook returns a
nonzero exit status, the commit <emphasis>will
not</emphasis> be aborted since it has already
completed. However, anything that the hook printed
to <filename>stderr</filename> will be marshalled back to the
client, making it easier to diagnose hook failures.</para>

</refsect1>

<refsect1>
<title>Input parameter(s)</title>

<para>The command-line arguments passed to the hook program,
in order, are:</para>

<orderedlist>
<listitem>
<para>Repository path</para>
</listitem>
<listitem>
<para>Revision number created by the commit</para>
</listitem>
</orderedlist>
</refsect1>

<refsect1>
<title>Common uses</title>
<para>Commit notification; tool integration</para>
</refsect1>

</refentry>

<!-- =============================================================== -->
<refentry id="svn.ref.reposhooks.pre-revprop-change">

<indexterm>
<primary>repository</primary>
<secondary>hooks</secondary>
<tertiary>pre-revprop-change</tertiary>
</indexterm>

<refnamediv>
<refname>pre-revprop-change</refname>
<refpurpose>Notification of a revision property change
attempt.</refpurpose>
</refnamediv>

<refsect1>
<title>Description</title>

<para>The <literal>pre-revprop-change</literal> hook is run
immediately prior to the modification of a revision property
when performed outside the scope of a normal commit. Unlike
the other hooks, the default state of this one is to deny
the proposed action. The hook must actually exist and
return a zero exit value before a revision property
modification can happen.</para>

<para>If the <literal>pre-revprop-change</literal> hook
doesn't exist, isn't executable, or returns a nonzero exit
value, no change to the property will be made, and anything
printed to <filename>stderr</filename> is marshalled back to the client.</para>

</refsect1>

<refsect1>
<title>Input parameter(s)</title>

<para>The command-line arguments passed to the hook program,
in order, are:</para>

<orderedlist>
<listitem>
<para>Repository path</para>
</listitem>
<listitem>
<para>Revision whose property is about to be modified</para>
</listitem>
<listitem>
<para>Authenticated username attempting the property change</para>
</listitem>
<listitem>
<para>Name of the property changed</para>
</listitem>
<listitem>
<para>Change description: <literal>A</literal> (added),
<literal>D</literal> (deleted), or <literal>M</literal>
(modified)</para>
</listitem>
</orderedlist>

<para>Additionally, Subversion passes the intended new value
of the property to the hook program via standard
input.</para>

</refsect1>

<refsect1>
<title>Common uses</title>
<para>Access control; change validation and control</para>
</refsect1>

</refentry>

<!-- =============================================================== -->
<refentry id="svn.ref.reposhooks.post-revprop-change">

<indexterm>
<primary>repository</primary>
<secondary>hooks</secondary>
<tertiary>post-revprop-change</tertiary>
</indexterm>

<refnamediv>
<refname>post-revprop-change</refname>
<refpurpose>Notification of a successful revision property
change.</refpurpose>
</refnamediv>

<refsect1>
<title>Description</title>

<para>The <literal>post-revprop-change</literal> hook is run
immediately after the modification of a revision property
when performed outside the scope of a normal commit. As you can
derive from the description of its counterpart, the
<literal>pre-revprop-change</literal> hook, this hook will
not run at all unless
the <literal>pre-revprop-change</literal> hook is
implemented. It is typically used to send email
notification of the property change.</para>

<para>If the <literal>post-revprop-change</literal> hook returns a
nonzero exit status, the change <emphasis>will
not</emphasis> be aborted since it has already
completed. However, anything that the hook printed
to <filename>stderr</filename> will be marshalled back to the
client, making it easier to diagnose hook failures.</para>

</refsect1>

<refsect1>
<title>Input parameter(s)</title>

<para>The command-line arguments passed to the hook program,
in order, are:</para>

<orderedlist>
<listitem>
<para>Repository path</para>
</listitem>
<listitem>
<para>Revision whose property was modified</para>
</listitem>
<listitem>
<para>Authenticated username of the person making the change</para>
</listitem>
<listitem>
<para>Name of the property changed</para>
</listitem>
<listitem>
<para>Change description: <literal>A</literal> (added),
<literal>D</literal> (deleted), or <literal>M</literal>
(modified)</para>
</listitem>
</orderedlist>

<para>Additionally, Subversion passes to the hook program, via
standard input, the previous value of the property.</para>

</refsect1>

<refsect1>
<title>Common uses</title>
<para>Property change notification</para>
</refsect1>

</refentry>

<!-- =============================================================== -->
<refentry id="svn.ref.reposhooks.pre-lock">

<indexterm>
<primary>repository</primary>
<secondary>hooks</secondary>
<tertiary>pre-lock</tertiary>
</indexterm>

<refnamediv>
<refname>pre-lock</refname>
<refpurpose>Notification of a path lock attempt.</refpurpose>
</refnamediv>

<refsect1>
<title>Description</title>

<para>The <literal>pre-lock</literal> hook runs whenever
someone attempts to lock a path. It can be used to prevent
locks altogether or to create a more complex policy
specifying exactly which users are allowed to lock
particular paths. If the hook notices a preexisting lock,
it can also decide whether a user is allowed
to <quote>steal</quote> the existing lock.</para>

<para>If the <literal>pre-lock</literal> hook program returns
a nonzero exit value, the lock action is aborted and
anything printed to <filename>stderr</filename> is marshalled back to the
client.</para>

</refsect1>

<refsect1>
<title>Input parameter(s)</title>

<para>The command-line arguments passed to the hook program,
in order, are:</para>

<orderedlist>
<listitem>
<para>Repository path</para>
</listitem>
<listitem>
<para>Versioned path that is to be locked</para>
</listitem>
<listitem>
<para>Authenticated username of the person attempting the
lock</para>
</listitem>
</orderedlist>
</refsect1>

<refsect1>
<title>Common uses</title>
<para>Access control</para>
</refsect1>

</refentry>

<!-- =============================================================== -->
<refentry id="svn.ref.reposhooks.post-lock">

<indexterm>
<primary>repository</primary>
<secondary>hooks</secondary>
<tertiary>post-lock</tertiary>
</indexterm>

<refnamediv>
<refname>post-lock</refname>
<refpurpose>Notification of a successful path lock.</refpurpose>
</refnamediv>

<refsect1>
<title>Description</title>

<para>The <literal>post-lock</literal> hook runs after one or
more paths have been locked. It is typically used to send
email notification of the lock event.</para>

<para>If the <literal>post-lock</literal> hook returns a
nonzero exit status, the lock <emphasis>will
not</emphasis> be aborted since it has already
completed. However, anything that the hook printed
to <filename>stderr</filename> will be marshalled back to the
client, making it easier to diagnose hook failures.</para>

</refsect1>

<refsect1>
<title>Input parameter(s)</title>

<para>The command-line arguments passed to the hook program,
in order, are:</para>

<orderedlist>
<listitem>
<para>Repository path</para>
</listitem>
<listitem>
<para>Authenticated username of the person who locked the
paths</para>
</listitem>
</orderedlist>

<para>Additionally, the list of paths locked is passed to the
hook program via standard input, one path per line.</para>

</refsect1>

<refsect1>
<title>Common uses</title>
<para>Lock notification</para>
</refsect1>

</refentry>

<!-- =============================================================== -->
<refentry id="svn.ref.reposhooks.pre-unlock">

<indexterm>
<primary>repository</primary>
<secondary>hooks</secondary>
<tertiary>pre-unlock</tertiary>
</indexterm>

<refnamediv>
<refname>pre-unlock</refname>
<refpurpose>Notification of a path unlock attempt.</refpurpose>
</refnamediv>

<refsect1>
<title>Description</title>

<para>The <literal>pre-unlock</literal> hook runs whenever
someone attempts to remove a lock on a file. It can be used
to create policies that specify which users are allowed to
unlock particular paths. It's particularly important for
determining policies about lock breakage. If user A locks a
file, is user B allowed to break the lock? What if the lock
is more than a week old? These sorts of things can be
decided and enforced by the hook.</para>

<para>If the <literal>pre-unlock</literal> hook program
returns a nonzero exit value, the unlock action is aborted
and anything printed to <filename>stderr</filename> is marshalled back to the
client.</para>

</refsect1>

<refsect1>
<title>Input parameter(s)</title>

<para>The command-line arguments passed to the hook program,
in order, are:</para>

<orderedlist>
<listitem>
<para>Repository path</para>
</listitem>
<listitem>
<para>Versioned path which is to be locked</para>
</listitem>
<listitem>
<para>Authenticated username of the person attempting the
lock</para>
</listitem>
</orderedlist>
</refsect1>

<refsect1>
<title>Common uses</title>
<para>Access control</para>
</refsect1>

</refentry>

<!-- =============================================================== -->
<refentry id="svn.ref.reposhooks.post-unlock">

<indexterm>
<primary>repository</primary>
<secondary>hooks</secondary>
<tertiary>post-unlock</tertiary>
</indexterm>

<refnamediv>
<refname>post-unlock</refname>
<refpurpose>Notification of a successful path unlock.</refpurpose>
</refnamediv>

<refsect1>
<title>Description</title>

<para>The <literal>post-unlock</literal> hook runs after one
or more paths have been unlocked. It is typically used to
send email notification of the unlock event.</para>

<para>If the <literal>post-unlock</literal> hook returns a
nonzero exit status, the unlock <emphasis>will
not</emphasis> be aborted since it has already
completed. However, anything that the hook printed
to <filename>stderr</filename> will be marshalled back to the
client, making it easier to diagnose hook failures.</para>

</refsect1>

<refsect1>
<title>Input parameter(s)</title>

<para>The command-line arguments passed to the hook program,
in order, are:</para>

<orderedlist>
<listitem>
<para>Repository path</para>
</listitem>
<listitem>
<para>Authenticated username of the person who unlocked the
paths</para>
</listitem>
</orderedlist>

<para>Additionally, the list of paths unlocked is passed to the
hook program via standard input, one path per line.</para>

</refsect1>

<refsect1>
<title>Common uses</title>
<para>Unlock notification</para>
</refsect1>

</refentry>
</sect1>

</chapter>

<!--
local variables:
sgml-parent-document: ("book.xml" "chapter")
end:
-->

Change log

r3306 by cmpilato on Sep 15, 2008   Diff
Tag 1.5 version of the English book (also
known "Version Control With
Subversion, second edition", or "ISBN 10:
0-596-51033-0", or "ISBN 13:
9780596510336", or "Pilato's Bane", or
...)
Go to: 

Older revisions

r3292 by cmpilato on Sep 3, 2008   Diff
* src/en/book/ch09-reference.xml,
* src/en/book/ch03-advanced-
topics.xml,
* src/en/book/appb-svn-for-cvs-
users.xml,
...
r3288 by cmpilato on Sep 3, 2008   Diff
More minor typo tweaks from Øyvind A.
Holm <sunny@sunbase.org>, plus a
reworking of a couple of paragraphs
for readability and to avoid an
awkward use of an mid-sentence screen
...
r3265 by cmpilato on Aug 11, 2008   Diff
* src/en/book/ch09-reference.xml
  By way of followup to r3264, use a
capitalization and sentence
  structure pattern consistent with
other bits of the mod_X_svn
...
All revisions of this file

File info

Size: 319600 bytes, 9872 lines

File properties

svn:mime-type
text/xml
svn:eol-style
native
Powered by Google Project Hosting