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
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!--Converted with LaTeX2HTML 2002-2-1 (1.71)
original version by: Nikos Drakos, CBLU, University of Leeds
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>Darcs commands</TITLE>
<META NAME="description" CONTENT="Darcs commands">
<META NAME="keywords" CONTENT="darcs">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META NAME="Generator" CONTENT="LaTeX2HTML v2002-2-1">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
<LINK REL="STYLESHEET" HREF="darcs.css">
<LINK REL="next" HREF="node8.html">
<LINK REL="previous" HREF="node6.html">
<LINK REL="up" HREF="darcs.html">
<LINK REL="next" HREF="node8.html">
</HEAD>
<BODY >
<DIV CLASS="navigation"><!--Navigation Panel-->
<A NAME="tex2html440"
HREF="node8.html">
<IMG WIDTH="22" HEIGHT="22" title="Next" ALIGN="BOTTOM" BORDER="0" ALT="next"
SRC="./next.png"></A>
<A NAME="tex2html436"
HREF="darcs.html">
<IMG WIDTH="22" HEIGHT="22" title="Up" ALIGN="BOTTOM" BORDER="0" ALT="up"
SRC="./up.png"></A>
<A NAME="tex2html430"
HREF="node6.html">
<IMG WIDTH="22" HEIGHT="22" title="Previous" ALIGN="BOTTOM" BORDER="0" ALT="previous"
SRC="./prev.png"></A>
<A NAME="tex2html438"
HREF="node1.html">
<IMG WIDTH="22" HEIGHT="22" title="Contents" ALIGN="BOTTOM" BORDER="0" ALT="contents"
SRC="./contents.png"></A>
<BR>
<B> Next:</B> <A NAME="tex2html441"
HREF="node8.html">Theory of patches</A>
<B> Up:</B> <A NAME="tex2html437"
HREF="darcs.html">Darcs 2.0.2 (unknown) Darcs</A>
<B> Previous:</B> <A NAME="tex2html431"
HREF="node6.html">Best practices</A>
<B> <A NAME="tex2html439"
HREF="node1.html">Contents</A></B>
<BR>
<BR></DIV>
<!--End of Navigation Panel-->
<!--Table of Child-Links-->
<A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A>
<UL CLASS="ChildLinks">
<LI><UL>
<LI><UL>
<LI><UL>
<LI><A NAME="tex2html442"
HREF="node7.html#SECTION00700010000000000000">Command overview</A>
</UL>
</UL>
</UL>
<BR>
<LI><A NAME="tex2html443"
HREF="node7.html#SECTION00710000000000000000">Common options to darcs commands</A>
<UL>
<LI><A NAME="tex2html444"
HREF="node7.html#SECTION00710010000000000000">Selecting patches</A>
<LI><A NAME="tex2html445"
HREF="node7.html#SECTION00710020000000000000">Match</A>
<LI><A NAME="tex2html446"
HREF="node7.html#SECTION00710030000000000000">Resolution of conflicts</A>
</UL>
<BR>
<LI><A NAME="tex2html447"
HREF="node7.html#SECTION00720000000000000000">Options apart from darcs commands</A>
<LI><A NAME="tex2html448"
HREF="node7.html#SECTION00730000000000000000">Getting help</A>
<UL>
<LI><A NAME="tex2html449"
HREF="node7.html#SECTION00731000000000000000">darcs help</A>
</UL>
<BR>
<LI><A NAME="tex2html450"
HREF="node7.html#SECTION00740000000000000000">Creating repositories</A>
<UL>
<LI><A NAME="tex2html451"
HREF="node7.html#SECTION00741000000000000000">darcs initialize</A>
<LI><A NAME="tex2html452"
HREF="node7.html#SECTION00742000000000000000">darcs get</A>
<LI><A NAME="tex2html453"
HREF="node7.html#SECTION00743000000000000000">darcs put</A>
</UL>
<BR>
<LI><A NAME="tex2html454"
HREF="node7.html#SECTION00750000000000000000">Modifying the contents of a repository</A>
<UL>
<LI><A NAME="tex2html455"
HREF="node7.html#SECTION00751000000000000000">darcs add</A>
<LI><A NAME="tex2html456"
HREF="node7.html#SECTION00752000000000000000">darcs remove</A>
<LI><A NAME="tex2html457"
HREF="node7.html#SECTION00753000000000000000">darcs mv</A>
<LI><A NAME="tex2html458"
HREF="node7.html#SECTION00754000000000000000">darcs replace</A>
</UL>
<BR>
<LI><A NAME="tex2html459"
HREF="node7.html#SECTION00760000000000000000">Working with changes</A>
<UL>
<LI><A NAME="tex2html460"
HREF="node7.html#SECTION00761000000000000000">darcs record</A>
<LI><A NAME="tex2html461"
HREF="node7.html#SECTION00762000000000000000">darcs pull</A>
<LI><A NAME="tex2html462"
HREF="node7.html#SECTION00763000000000000000">darcs push</A>
<LI><A NAME="tex2html463"
HREF="node7.html#SECTION00764000000000000000">darcs send</A>
<LI><A NAME="tex2html464"
HREF="node7.html#SECTION00765000000000000000">darcs apply</A>
</UL>
<BR>
<LI><A NAME="tex2html465"
HREF="node7.html#SECTION00770000000000000000">Seeing what you've done</A>
<UL>
<LI><A NAME="tex2html466"
HREF="node7.html#SECTION00771000000000000000">darcs whatsnew</A>
<LI><A NAME="tex2html467"
HREF="node7.html#SECTION00772000000000000000">darcs changes</A>
<LI><A NAME="tex2html468"
HREF="node7.html#SECTION00773000000000000000">darcs show</A>
<UL>
<LI><A NAME="tex2html469"
HREF="node7.html#SECTION00773100000000000000">darcs show authors</A>
<LI><A NAME="tex2html470"
HREF="node7.html#SECTION00773200000000000000">darcs show contents</A>
<LI><A NAME="tex2html471"
HREF="node7.html#SECTION00773300000000000000">darcs show files</A>
<LI><A NAME="tex2html472"
HREF="node7.html#SECTION00773400000000000000">darcs show tags</A>
<LI><A NAME="tex2html473"
HREF="node7.html#SECTION00773500000000000000">darcs show repo</A>
</UL>
</UL>
<BR>
<LI><A NAME="tex2html474"
HREF="node7.html#SECTION00780000000000000000">More advanced commands</A>
<UL>
<LI><A NAME="tex2html475"
HREF="node7.html#SECTION00781000000000000000">darcs tag</A>
<LI><A NAME="tex2html476"
HREF="node7.html#SECTION00782000000000000000">darcs setpref</A>
<LI><A NAME="tex2html477"
HREF="node7.html#SECTION00783000000000000000">darcs check</A>
<LI><A NAME="tex2html478"
HREF="node7.html#SECTION00784000000000000000">darcs optimize</A>
</UL>
<BR>
<LI><A NAME="tex2html479"
HREF="node7.html#SECTION00790000000000000000">Undoing, redoing and running in circles</A>
<UL>
<LI><A NAME="tex2html480"
HREF="node7.html#SECTION00791000000000000000">darcs amend-record</A>
<LI><A NAME="tex2html481"
HREF="node7.html#SECTION00792000000000000000">darcs rollback</A>
<LI><A NAME="tex2html482"
HREF="node7.html#SECTION00793000000000000000">darcs unrecord</A>
<LI><A NAME="tex2html483"
HREF="node7.html#SECTION00794000000000000000">darcs obliterate</A>
<LI><A NAME="tex2html484"
HREF="node7.html#SECTION00795000000000000000">darcs revert</A>
<LI><A NAME="tex2html485"
HREF="node7.html#SECTION00796000000000000000">darcs unrevert</A>
</UL>
<BR>
<LI><A NAME="tex2html486"
HREF="node7.html#SECTION007100000000000000000">Advanced examination of the repository</A>
<UL>
<LI><A NAME="tex2html487"
HREF="node7.html#SECTION007101000000000000000">darcs diff</A>
<LI><A NAME="tex2html488"
HREF="node7.html#SECTION007102000000000000000">darcs annotate</A>
<LI><A NAME="tex2html489"
HREF="node7.html#SECTION007103000000000000000">darcs show</A>
<UL>
<LI><A NAME="tex2html490"
HREF="node7.html#SECTION007103100000000000000">darcs show authors</A>
<LI><A NAME="tex2html491"
HREF="node7.html#SECTION007103200000000000000">darcs show contents</A>
<LI><A NAME="tex2html492"
HREF="node7.html#SECTION007103300000000000000">darcs show files</A>
<LI><A NAME="tex2html493"
HREF="node7.html#SECTION007103400000000000000">darcs show tags</A>
<LI><A NAME="tex2html494"
HREF="node7.html#SECTION007103500000000000000">darcs show repo</A>
</UL>
</UL>
<BR>
<LI><A NAME="tex2html495"
HREF="node7.html#SECTION007110000000000000000">Rarely needed and obscure commands</A>
<UL>
<LI><A NAME="tex2html496"
HREF="node7.html#SECTION007111000000000000000">darcs convert</A>
<LI><A NAME="tex2html497"
HREF="node7.html#SECTION007112000000000000000">darcs mark-conflicts</A>
<LI><A NAME="tex2html498"
HREF="node7.html#SECTION007113000000000000000">darcs dist</A>
<LI><A NAME="tex2html499"
HREF="node7.html#SECTION007114000000000000000">darcs trackdown</A>
<UL>
<LI><A NAME="tex2html500"
HREF="node7.html#SECTION007114100000000000000">Example usage</A>
</UL>
<LI><A NAME="tex2html501"
HREF="node7.html#SECTION007115000000000000000">darcs repair</A>
</UL></UL>
<!--End of Table of Child-Links-->
<HR>
<H1><A NAME="SECTION00700000000000000000">
Darcs commands</A>
</H1>
<P>
The general format of a darcs command is
<PRE>
% darcs COMMAND OPTIONS ARGUMENTS ...
</PRE>
Here <code>COMMAND</code> is a command such as <code>add</code> or <code>record</code>, which of
course may have one or more arguments. Options have the form
<code>--option</code> or <code>-o</code>, while arguments vary from command to
command. There are many options which are common to a number of different
commands, which will be summarized here.
<P>
If you wish, you may use any unambiguous beginning of a command name as a
shortcut: for <code>darcs record</code>, you could type <code>darcs recor</code> or
<code>darcs rec</code>, but not <code>darcs re</code> since that could be confused with
<code>darcs replace</code>, <code>darcs revert</code> and <code>darcs remove</code>.
<P>
In some cases, <code>COMMAND</code> actually consists of two words, a
super-command and a subcommand. For example, the ``display the
manifest'' command has the form <code>darcs query manifest</code>.
<P>
<H4><A NAME="SECTION00700010000000000000">
Command overview</A>
</H4>
<P>
Not all commands modify the ``patches'' of your repository (that
is, the named patches which other users can pull); some commands only
affect the copy of the source tree you're working on (your ``working
directory''), and some affect both. This table summarizes what you should
expect from each one and will hopefully serve as guide when you're having
doubts about which command to use.
<P>
<DIV ALIGN="CENTER">
<TABLE CELLPADDING=3 BORDER="1">
<TR><TD ALIGN="CENTER">affects</TD>
<TD ALIGN="CENTER">patches</TD>
<TD ALIGN="CENTER">working directory</TD>
</TR>
<TR><TD ALIGN="CENTER">record</TD>
<TD ALIGN="CENTER">yes</TD>
<TD ALIGN="CENTER">no</TD>
</TR>
<TR><TD ALIGN="CENTER">unrecord</TD>
<TD ALIGN="CENTER">yes</TD>
<TD ALIGN="CENTER">no</TD>
</TR>
<TR><TD ALIGN="CENTER">rollback</TD>
<TD ALIGN="CENTER">yes</TD>
<TD ALIGN="CENTER">yes</TD>
</TR>
<TR><TD ALIGN="CENTER">revert</TD>
<TD ALIGN="CENTER">no</TD>
<TD ALIGN="CENTER">yes</TD>
</TR>
<TR><TD ALIGN="CENTER">unrevert</TD>
<TD ALIGN="CENTER">no</TD>
<TD ALIGN="CENTER">yes</TD>
</TR>
<TR><TD ALIGN="CENTER">pull</TD>
<TD ALIGN="CENTER">yes</TD>
<TD ALIGN="CENTER">yes</TD>
</TR>
<TR><TD ALIGN="CENTER">obliterate</TD>
<TD ALIGN="CENTER">yes</TD>
<TD ALIGN="CENTER">yes</TD>
</TR>
<TR><TD ALIGN="CENTER">apply</TD>
<TD ALIGN="CENTER">yes</TD>
<TD ALIGN="CENTER">yes</TD>
</TR>
<TR><TD ALIGN="CENTER">push<A NAME="tex2html16"
HREF="footnode.html#foot528"><SUP><SPAN CLASS="arabic">6</SPAN>.<SPAN CLASS="arabic">1</SPAN></SUP></A></TD>
<TD ALIGN="CENTER">no</TD>
<TD ALIGN="CENTER">no</TD>
</TR>
<TR><TD ALIGN="CENTER">send<A NAME="tex2html17"
HREF="footnode.html#foot529"><SUP><SPAN CLASS="arabic">6</SPAN>.<SPAN CLASS="arabic">2</SPAN></SUP></A></TD>
<TD ALIGN="CENTER">no</TD>
<TD ALIGN="CENTER">no</TD>
</TR>
<TR><TD ALIGN="CENTER">put<A NAME="tex2html18"
HREF="footnode.html#foot530"><SUP><SPAN CLASS="arabic">6</SPAN>.<SPAN CLASS="arabic">3</SPAN></SUP></A></TD>
<TD ALIGN="CENTER">no</TD>
<TD ALIGN="CENTER">no</TD>
</TR>
</TABLE>
</DIV>
<P>
<H1><A NAME="SECTION00710000000000000000">
Common options to darcs commands</A>
</H1>
<P>
<div class="cmd-opt-hdr">
--help
</div>
Every <code>COMMAND</code> accepts <code>--help</code> as an argument, which tells it to
provide a bit of help. Among other things, this help always provides an
accurate listing of the options available with that command, and is
guaranteed never to be out of sync with the version of darcs you actually
have installed (unlike this manual, which could be for an entirely
different version of darcs).
<PRE>
% darcs COMMAND --help
</PRE>
<P>
<div class="cmd-opt-hdr">
--disable
</div>
Every <TT>COMMAND</TT> accepts the <code>--disable</code> option, which can be used in
<code>_darcs/prefs/defaults</code> to disable some commands in the repository. This
can be helpful if you want to protect the repository from accidental use of
advanced commands like obliterate, unpull, unrecord or amend-record.
<P>
<div class="cmd-opt-hdr">
--verbose, --quiet, --normal-verbosity
</div>
Most commands also accept the <code>--verbose</code> option, which tells darcs to
provide additional output. The amount of verbosity varies from command to
command. Commands that accept <code>--verbose\verb</code> also accept <code>--quiet\verb</code>,
which surpresses non-error output, and <code>--normal-verbosity\verb</code> which can be
used to restore the default verbosity if <code>--verbose</code> or <code>--quiet</code> is in
the defaults file.
<P>
<div class="cmd-opt-hdr">
--debug
</div>
Many commands also accept the <code>--debug</code> option, which causes darcs to generate
additional output that may be useful for debugging its behavior, but which otherwise
would not be interesting.
<P>
<div class="cmd-opt-hdr">
--repodir
</div>
Another common option is the <code>--repodir</code> option, which allows you to
specify the directory of the repository in which to perform the command.
This option is used with commands, such as whatsnew, that ordinarily would
be performed within a repository directory, and allows you to use those
commands without actually being in the repository directory when calling the
command. This is useful when running darcs in a pipe, as might be the case
when running <code>apply</code> from a mailer.
<P>
<div class="cmd-opt-hdr">
--remote-repo
</div>
<P>
Some commands, such as <code>pull</code> require a remote repository to be specified,
either from the command line or as a default. The <code>--remote-repo</code>
provides an alternative way to supply this remote repository path. This flag
can be seen as temporarily ``replacing'' the default repository. Setting it
causes the command to ignore the default repository (it also does not affect,
i.e. overwrite the default repository). On the other hand, if any other
repositories are supplied as command line arguments, this flag will be ignored
(and the default repository may be overwritten).
<P>
<H4><A NAME="SECTION00710010000000000000"></A><A NAME="selecting"></A>
<BR>
Selecting patches
</H4>
<P>
Many commands operate on a patch or patches that have already been recorded.
There are a number of options that specify which patches are selected for
these operations: <code>--patch</code>, <code>--match</code>, <code>--tag</code>, and variants
on these, which for <code>--patch</code> are <code>--patches</code>,
<code>--from-patch</code>, and <code>--to-patch</code>. The <code>--patch</code> and
<code>--tag</code> forms simply take (POSIX extended, aka <code>egrep</code>) regular
expressions and match them against tag and patch names. <code>--match</code>,
described below, allows more powerful patterns.
<P>
The plural forms of these options select all matching patches. The singular
forms select the last matching patch. The range (from and to) forms select
patches after or up to (both inclusive) the last matching patch.
<P>
These options use the current order of patches in the repository. darcs may
reorder patches, so this is not necessarily the order of creation or the
order in which patches were applied. However, as long as you are just
recording patches in your own repository, they will remain in order.
<P>
When a patch or a group of patches is selected, all patches they depend on
get silently selected too. For example: <code>darcs pull --patches bugfix</code>
means ``pull all the patches with `bugfix' in their name, along with any
patches they require.'' If you really only want patches with `bugfix' in
their name, you should use the <code>--no-deps</code> option, which makes darcs
exclude any matched patches from the selection which have dependencies that
are themselves not explicitly matched by the selection.
<P>
For <code>unrecord</code>, <code>unpull</code> and <code>obliterate</code>, patches that
depend on the selected patches are silently included, or if
<code>--no-deps</code> is used selected patches with dependencies on not selected
patches are excluded from the selection.
<P>
<H4><A NAME="SECTION00710020000000000000">
Match</A>
</H4>
<P>
Currently <code>--match</code> accepts five primitive match types, although
there are plans to expand it to match more patterns. Also, note that the
syntax is still preliminary and subject to change.
<P>
The first match type accepts a literal string which is checked against
the patch name. The syntax is
<PRE>
darcs annotate --summary --match 'exact foo+bar'
</PRE>
This is useful for situations where a patch name contains characters that
could be considered special for regular expressions.
<P>
In this and the other match types, the argument must be enclosed in double
quotes if it contains spaces. You can escape a quote in the argument with a
backslash; backslash escapes itself, but it is treated literally if followed
by a character other than a double quote or backslash, so it is typically not
necessary to escape a backslash. No such escaping is necessary unless the
argument is enclosed in double quotes.
<P>
The second match type accepts a regular expression which is checked against
the patch name. The syntax is
<PRE>
darcs annotate --summary --match 'name foo'
</PRE>
Note that to match regexp metacharacters, such as <code>(</code>, literally, they
must be escaped with backslash along with any embedded double quotes. To
match a literal backslash it must be written quadrupled in general, but often
it need not be escaped, since backslash is only special in regexps when
followed by a metacharacter. In the following example pairs, the first
literal is matched by the second sequence in the match name:
``<code>"</code>'':``<code>\"</code>'', ``<code>\</code>'':``<code>\\\\</code>'',
``<code>\x</code>'':``<code>\x</code>'', ``<code>(</code>'':``<code>\(</code>''.
<P>
The third match type matches the darcs hash for each patch:
<PRE>
darcs annotate --summary --match \
'hash 20040403105958-53a90-c719567e92c3b0ab9eddd5290b705712b8b918ef'
</PRE>
Note you need to provide the full hash string as above.
This is intended to be used, for example, by programs allowing you to view
darcs repositories (e.g. CGI scripts like viewCVS).
<P>
The fourth match type accepts a regular expression which is checked against
the patch author. The syntax is
<PRE>
darcs annotate --summary --match 'author foo'
</PRE>
<P>
There is also support for matching by date. This is done using commands such as
<PRE>
darcs annotate --summary --match 'date "last week"'
darcs annotate --summary --match 'date yesterday'
darcs annotate --summary --match 'date "today 14:00"'
darcs annotate --summary --match 'date "tea time yesterday"'
darcs annotate --summary --match 'date "3 days before last year at 17:00"'
darcs changes --from-match 'date "Sat Jun 30 11:31:30 EDT 2004"'
</PRE>
<P>
Notes: when matching on the ISO format, a partial date is treated as a range.
English dates can either refer to a specific day (``6 months ago',``day before
yesterday''), or to an interval
from some past date (``last month'') to the present. Putting this all
together, if today is ``2004-07-24'' then the following matches should work:
<P>
<TABLE CELLPADDING=3 BORDER="1">
<TR><TH ALIGN="LEFT"><SPAN CLASS="textbf">date</SPAN></TH>
<TH ALIGN="LEFT"><SPAN CLASS="textbf">patches selected</SPAN></TH>
</TR>
<TR><TD ALIGN="LEFT">2004</TD>
<TD ALIGN="LEFT">from 2004-01-01 up to and including 2004-12-31</TD>
</TR>
<TR><TD ALIGN="LEFT">2004-01</TD>
<TD ALIGN="LEFT">from 2004-01-01 up to and including 2004-01-31</TD>
</TR>
<TR><TD ALIGN="LEFT">2004-01-01</TD>
<TD ALIGN="LEFT">during 2004-01-01</TD>
</TR>
<TR><TD ALIGN="LEFT">today</TD>
<TD ALIGN="LEFT">during 2004-07-24 (starting midnight in your timezone)</TD>
</TR>
<TR><TD ALIGN="LEFT">yesterday</TD>
<TD ALIGN="LEFT">during 2004-07-23</TD>
</TR>
<TR><TD ALIGN="LEFT">6 months ago</TD>
<TD ALIGN="LEFT">during 2004-01-23</TD>
</TR>
<TR><TD ALIGN="LEFT">last 6 months</TD>
<TD ALIGN="LEFT">since 2004-01-23</TD>
</TR>
<TR><TD ALIGN="LEFT">last month</TD>
<TD ALIGN="LEFT">since 2004-06-23 (not 2004-06-01!)</TD>
</TR>
<TR><TD ALIGN="LEFT">last week</TD>
<TD ALIGN="LEFT">since 2004-07-16</TD>
</TR>
</TABLE>
<P>
For more precise control, you may specify an interval, either
in a small subset of English or
of <A NAME="tex2html19"
HREF="http://www.w3.org/TR/NOTE-datetime">the ISO 8601 format</A>.
If you use the ISO format, note that durations, when
specified alone, are interpreted as being relative to the current date and time.
<PRE>
darcs annotate --summary --match 'date "between 2004-03-12 and last week"'
darcs annotate --summary --match 'date "after 2005"'
darcs annotate --summary --match 'date "in the last 3 weeks"'
darcs annotate --summary --match 'date "P3M/2006-03-17"'
darcs annotate --summary --match 'date "2004-01-02/2006-03-17"'
darcs annotate --summary --match 'date "P2M6D"'
</PRE>
<P>
You may also prefer to combine date matching with a more specific pattern.
<PRE>
darcs annotate --summary --match 'date "last week" && name foo'
</PRE>
<P>
The <code>--match</code> pattern can include the logical operators <code>&&</code>,
<code>||</code> and <code>not</code>, as well as grouping of patterns with parentheses.
For example
<PRE>
darcs annotate --summary --match 'name record && not name overrode'
</PRE>
<P>
<div class="cmd-opt-hdr">
--ignore-times
</div>
Darcs optimizes its operations by keeping track of the modification times
of your files. This dramatically speeds up commands such as
<code>whatsnew</code> and <code>record</code> which would otherwise require reading
every file in the repository and comparing it with a reference version. However,
there are times when this can cause problems, such as when running a series
of darcs commands from a script, in which case often a file will be
modified twice in the same second, which can lead to the second
modification going unnoticed. The solution to such predicaments is the
<code>--ignore-times</code> option, which instructs darcs not to trust the file
modification times, but instead to check each file's contents explicitly.
<P>
<div class="cmd-opt-hdr">
--author
</div>
<A NAME="env:DARCS_EMAIL"></A>Several commands need to be able to identify you. Conventionally, you
provide an email address for this purpose, which can include comments,
e.g. <code>David Roundy <droundy@abridgegame.org></code>. The easiest way to do
this is
to define an environment variable <code>EMAIL</code> or <code>DARCS_EMAIL</code> (with
the latter overriding the former). You can also override this using the
<code>--author</code> flag to any command. Alternatively, you could set your
email address on a per-repository basis using the ``defaults'' mechanism
for ``ALL'' commands, as described in Appendix <A HREF="node9.html#repository_format"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]"
SRC="./crossref.png"></A>.
Or, you could specify the author on a per-repository basis using the
<code>_darcs/prefs/author</code> file as described in section <A HREF="node5.html#author_prefs"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]"
SRC="./crossref.png"></A>.
<P>
Also, a global author file can be created in your home directory with the name
<code>.darcs/author</code>. This file overrides the
contents of the environment variables, but a repository-specific author
file overrides the global author file.
<P>
<div class="cmd-opt-hdr">
--dont-compress, --compress
</div>
By default, darcs commands that write patches to disk will compress the
patch files. If you don't want this, you can choose the
<code>--dont-compress</code> option, which causes darcs not to compress the patch
file.
<P>
<div class="cmd-opt-hdr">
--dry-run
</div>
The <code>--dry-run</code> option will cause darcs not to actually take the specified
action, but only print what would have happened. Not all commands accept
<code>--dry-run</code>, but those that do should accept the <code>--summary</code> option.
<P>
<div class="cmd-opt-hdr">
--summary, --no-summary
</div>
The <code>--summary</code> option shows a summary of the patches that would have been
pulled/pushed/whatever. The format is similar to the output format of
<code>cvs update</code> and looks like this:
<P>
<PRE>
A ./added_but_not_recorded.c
A! ./added_but_not_recorded_conflicts.c
a ./would_be_added_if_look_for_adds_option_was_used.h
M ./modified.t -1 +1
M! ./modified_conflicts.t -1 +1
R ./removed_but_not_recorded.c
R! ./removed_but_not_recorded_conflicts.c
</PRE>
<P>
You can probably guess what the flags mean from the clever file names.
<DL>
<DT></DT>
<DD><TT>A</TT> is for files that have been added but not recorded yet.
</DD>
<DT></DT>
<DD><TT>a</TT> is for files found using the <code>--look-for-adds</code> option available for
<code>whatsnew</code> and <code>record</code>. They have not been added yet, but would be
added automatically if <code>--look-for-adds</code> were used with the next
<code>record</code> command.
<P>
</DD>
<DT></DT>
<DD><TT>M</TT> is for files that have been modified in the working directory but not
recorded yet. The number of added and subtracted lines is also shown.
<P>
</DD>
<DT></DT>
<DD><TT>R</TT> is for files that have been removed, but the removal is not
recorded yet.
</DD>
</DL>
An exclamation mark appears next to any option that has a conflict.
<P>
<H4><A NAME="SECTION00710030000000000000"></A><A NAME="resolution"></A>
<BR>
Resolution of conflicts
</H4>
<P>
To resolve conflicts using an external tool, you need to specify a command
to use, e.g.
<PRE>
--external-merge 'opendiff %1 %2 -ancestor %a -merge %o'
</PRE>
The <code>%1</code> and <code>%2</code> are replaced with the two versions to be
merged, <code>%a</code> is replaced with the common ancestor of the two versions.
Most importantly, <code>%o</code> is replaced with the name of the output file
that darcs will require to be created holding the merged version. The
above example works with the FileMerge.app tool that comes with Apple's
developer tools. To use xxdiff, you would use
<PRE>
--external-merge 'xxdiff -m -O -M %o %1 %a %2'
</PRE>
To use <code>kdiff3</code>, you can use
<PRE>
--external-merge 'kdiff3 --output %o %a %1 %2'
</PRE>
To use <code>tortoiseMerge</code>, you can use
<PRE>
--external-merge 'tortoiseMerge /base:"%a" /mine:"%1" /theirs:"%2" /merged:"%o"'
</PRE>
(<code>tortoiseMerge</code> is a nice merge tool that comes with TortoiseSVN and works well
on Windows.)
<P>
Note that the command is split into space-separated words and the first one is
<code>exec</code>ed with the rest as arguments--it is not a shell command. In particular,
on Windows this means that the first command path should not contain spaces and
you should make sure the command is in your <code>PATH</code>.
<P>
The substitution of the <code>%</code> escapes is done everywhere. If you need to prevent
substitution you can use a double percentage sign, i.e. <code>%%a</code> is substituted with
<code>%a</code>. Here is an example script to use the Emacs' Ediff package for merging.
<PRE>
#! /bin/sh
# External merge command for darcs, using Emacs Ediff, via server if possible.
# It needs args %1 %2 %a %o, i.e. the external merge command is, say,
# `emerge3 %1 %2 %a %o'.
test $# -eq 4 || exit 1
form="(ediff-merge-files-with-ancestor"
while test $# -gt 0; do
count=$count.
if [ $count = .... ]; then
form=$form\ nil # Lisp STARTUP-HOOKS arg
fi
case $1 in # Worry about quoting -- escape " and \
*[\"\\]* ) form=$form\ \"$(echo $1 | sed -e's/["\\]/\\\0/g')\" ;;
*) form=$form\ \"$1\" ;;
esac
shift
done
form=$form')'
( emacsclient --eval "$form" || # Emacs 22 server
gnudoit "$form" || # XEmacs/Emacs 21 server
emacs --eval "$form" || # Relatively slow to start up
xemacs -eval "$form" # Horribly slow to start up
) 2>/dev/null
</PRE>
It would be invoked like:
<PRE>
--external-merge 'emerge3 %1 %2 %a %o'
</PRE>
<P>
If you figure out how to use darcs with another merge tool, please let me
know what flags you used so I can mention it here.
<P>
Note that if you do use an external merge tool, most likely you will want
to add to your defaults file
(<code>_darcs/prefs/defaults</code> or <code>~/.darcs/prefs</code>, see <A HREF="node5.html#defaults"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]"
SRC="./crossref.png"></A>)
a line such as
<PRE>
ALL external-merge kdiff3 --output %o %a %1 %2
</PRE>
or
<PRE>
ALL external-merge tortoiseMerge /base:"%a" /mine:"%1" /theirs:"%2" /merged:"%o"
</PRE>
<P>
Note that the defaults file does not want quotes around the command.
<P>
<div class="cmd-opt-hdr">
--posthook=COMMAND, --no-posthook
</div>
To provide a command that should be run whenever a darcs command completes
successfully, use <code>--posthook</code> to specify the command. This is useful
for people who want to have a command run whenever a patch is applied. Using
<code>--no-posthook</code> will disable running the command.
<div class="cmd-opt-hdr">
--prompt-posthook, --run-posthook
</div>
These options control prompting before running the posthook. Use
<code>--prompt-posthook</code> to force prompting before running the
posthook command. For security reasons, this is the default. When
defining a posthook for apply, you will need to use
<code>--run-posthook</code> or else you will get an error, because the
subprocess which runs the apply command cannot prompt the user.
<P>
Some darcs commands export to the posthook command information about the
changes being made. In particular, three environment variables are defined.
<code>DARCS_PATCHES</code> contains a human-readable summary of the patches being
acted upon. The format is the same as "darcs changes". <code>DARCS_PATCHES_XML</code>
Contains the same details, in the same XML format as "darcs changes". Finally,
<code>DARCS_FILES</code> contains a list of the files affected, one file per line.
If your repository has filenames including newlines, you'll just have to
cope. Note, however, that <SPAN CLASS="textit">none</SPAN> of these environment variables are
defined when running under windows. Note also that we refuse to pass
environment variables greater in size than 10k, in order to avoid triggering
<code>E2BIG</code> errors.
<P>
<div class="cmd-opt-hdr">
--prehook=COMMAND, --no-prehook
</div>
To provide a command that should be run before a darcs command is executed,
use <code>--prehook</code> to specify the command. An example use is
for people who want to have a command run whenever a patch is to be recorded, such as
translating line endings before recording patches. Using
<code>--no-prehook</code> will disable running the command.
<div class="cmd-opt-hdr">
--prompt-prehook, --run-prehook
</div>
These options control prompting before running the prehook. Use
<code>--prompt-prehook</code> to force prompting before running the
prehook command. For security reasons, this is the default.
<P>
<div class="cmd-opt-hdr">
--ssh-cm, --no-ssh-cm
</div>
<P>
For commands which invoke ssh, darcs will normally multiplex ssh
sessions over a single connection as long as your version of ssh has
the ControlMaster feature from OpenSSH versions 3.9 and above. This
option will avoid darcs trying to use this feature even if your ssh
supports it.
<div class="cmd-opt-hdr">
--umask
</div>
By default, Darcs will use your current umask. The option
<code>--umask</code> will cause Darcs to switch to a different umask before
writing to the repository.
<P>
<div class="cmd-opt-hdr">
--dont-restrict-paths, --restrict-paths
</div>
By default darcs is only allowed to manage and modify files and directories
contained inside the current repository and not being part of any darcs
repository's meta data (including the current one). This is mainly for
security, to protect you from spoofed patches modifying arbitrary files
with sensitive data--say, in your home directory--or tempering with any
repository's meta data to switch off this safety guard.
<P>
But sometimes you may want to manage a group of ``sub'' repositories'
preference files with a global repository, or use darcs in some other
advanced way. The best way is probably to put
<code>ALL dont-restrict-paths</code> in <code>_darcs/prefs/defaults</code>. This turns
off all sanity checking for file paths in patches.
<P>
Path checking can be temporarily turned on with <code>--restrict-paths</code> on
the command line, when pulling or applying unknown patches.
<P>
<H1><A NAME="SECTION00720000000000000000">
Options apart from darcs commands</A>
</H1>
<div class="cmd-opt-hdr">
--help, --overview
</div>
Calling darcs with just <code>--help</code> as an argument gives a brief
summary of what commands are available.
The <code>--overview</code> option gives a more technical summary of
what the commands actually <SPAN CLASS="textit">do</SPAN>.
<div class="cmd-opt-hdr">
--version, --exact-version
</div>
Calling darcs with the flag <code>--version</code> tells you the version of
darcs you are using. Calling darcs with the flag <code>--exact-version</code>
gives the precise version of darcs, even if that version doesn't correspond
to a released version number. This is helpful with bug reports, especially
when running with a ``latest'' version of darcs.
<div class="cmd-opt-hdr">
--commands
</div>
Similarly calling darcs with only <code>--commands</code> gives a simple list
of available commands. This latter arrangement is primarily intended for
the use of command-line autocompletion facilities, as are available in
bash.
<P>
<H1><A NAME="SECTION00730000000000000000">
Getting help</A>
</H1>
<P>
<H2><A NAME="SECTION00731000000000000000"></A>
<A NAME="help"></A>
<BR>
darcs help
</H2>
<P>
You could also call <code>help</code> as a command. This is equivalent to calling
darcs -help.
the <code>--help</code> to that command. For example, <code>darcs help query manifest</code>
is equivalent to <code>darcs query manifest --help</code>.
<P>
<code>Usage: darcs help [OPTION]... [<DARCS_COMMAND> [DARCS_SUBCOMMAND]] </code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--match</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
shows a summary of how to use patch matching rules</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Display help for darcs or a single command.
help displays usage information for darcs in general or for a single
command (for example, darcs help query manifest).
<P>
<H1><A NAME="SECTION00740000000000000000">
Creating repositories</A>
</H1>
<P>
<H2><A NAME="SECTION00741000000000000000"></A><A NAME="initialize"></A>
<BR>
darcs initialize
</H2>
<P>
<code>Usage: darcs initialize [OPTION]... </code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--plain-pristine-tree</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
use a plain pristine tree [DEFAULT]</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-pristine-tree</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
use no pristine tree</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--hashed</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
Some new features. Compatible with older repos</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--darcs-2</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
All features. Related repos must use same format [EXPERIMENTAL]</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--old-fashioned-inventory</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
Minimal features. What older repos use. [DEFAULT]</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repodir DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository directory in which to run</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Initialize a new source tree as a darcs repository.
<P>
Call <code>initialize</code> once for each project you work on. Run it from the top
level directory of the project, with the project files already there.
<code>initialize</code> will set up all the directories and files darcs needs in order to
start keeping track of revisions for your project.
<P>
<code>initialize</code> creates a single directory named <code>_darcs</code>, with contents
for internal use. The one subdictory of interest to users is
<code>_darcs/prefs</code>, which will include an empty file <code>_darcs/prefs/motd</code>
(see Section <A HREF="node5.html#motd"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]"
SRC="./crossref.png"></A>), as well as files named <code>boring</code> and
<code>binaries</code>, which contain useful defaults as described in Sections
<A HREF="node5.html#boring"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]"
SRC="./crossref.png"></A> <SPAN CLASS="textit">et seq.</SPAN>
<P>
<div class="cmd-opt-hdr">
--old-fashioned-inventory
--hashed
--darcs-2
</div>
<P>
These options describe possible repository formats to use.
<P>
<code>old-fashioned-inventory</code> is the default. While it has minimal features, it is the best tested and the limitations
it does have are well known.
<P>
<code>hashed</code> Offers several features while still being compatible with old-fashioned repositories. The specific features are:
<P>
<UL>
<LI>The hashed format allows for greater atomicity of operations. This makes for greater safety and simultaneously greater efficiency. These benefits, however, have not been fully realized in this release. For instance, with a hashed repository, there is no need for darcs push to require a repository lock, so you could record patches while waiting for a push to finish (for instance, if it's waiting on the test suite).
<P>
</LI>
<LI>The <code>_darcs/pristine</code> directory no longer holds the pristine
cache. This disallows certain hackish short-cuts, but also dramatically
reduces the danger of third-party programs (e.g. DreamWeaver) recursing
into the pristine cache and corrupting darcs repositories.
<P>
</LI>
<LI>Darcs get can optionally operate in a much faster ``lazy''
fashion, meaning that patches are downloaded only when they are
needed. This gives us much of the benefits of -partial repositories,
without most of their disadvantages. This approach, however, does have
several new dangers. First, some operations may unexpectedly require the
download of large numbers of patches, which could be slow (but you could
always interrupt with <code>^C</code>). Secondly, if the source repository disappears,
or you lose network connectivity, some operations may fail.
<P>
</LI>
<LI>Darcs now supports caching of patches and file contents to reduce bandwidth and save disk space. It greatly speeds up a number of operations, and is essentially transparent. The only reason we don't enable it by default is because it creates a large directory in /.darcs/cache without the user's explicit consent.
<P>
</LI>
</UL>
<P>
<code>darcs-2</code> Enables all available features, and requiring that all repos for a project use the same format. In addition to the features of the <code>hashed</code> format described above, the <code>darcs-2</code> format also enables the following:
<P>
<UL>
<LI>It should no longer be possible to confuse darcs or freeze it indefinitely by merging conflicting changes.
<P>
</LI>
<LI>Identical primitive changes no longer conflict. This is a long-requested feature, and has far-reaching implications.
<P>
</LI>
</UL>
<P>
<div class="cmd-opt-hdr">
--no-pristine-tree
</div>
In order to save disk space, you can use <code>initialize</code> with the
<code>--no-pristine-tree</code> flag to create a repository with no pristine
tree. Please see Section <A HREF="node4.html#disk-usage"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]"
SRC="./crossref.png"></A> for more information.
<P>
<H2><A NAME="SECTION00742000000000000000">
darcs get</A>
</H2>
<P>
<code>Usage: darcs get [OPTION]... <REPOSITORY> [<DIRECTORY>]</code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repo-name DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
path of output directory</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--partial</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
get partial repository using checkpoint (old-fashioned format only)</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--lazy</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
get patch files only as needed</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--ephemeral</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't save patch files in the repository</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--complete</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
get a complete copy of the repository</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--to-match PATTERN</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select changes up to a patch matching PATTERN</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--to-patch REGEXP</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select changes up to a patch matching REGEXP</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-t</code></TD>
<TD ALIGN="LEFT"><code>--tag REGEXP</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select tag matching REGEXP</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--context FILENAME</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
version specified by the context in FILENAME</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--set-default</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
set default repository [DEFAULT]</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-set-default</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't set default repository</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--set-scripts-executable</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
make scripts executable</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--dont-set-scripts-executable</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't make scripts executable</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--nolinks</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
do not link repository or pristine to sibling</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--plain-pristine-tree</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
use a plain pristine tree [DEFAULT]</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-pristine-tree</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
use no pristine tree</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--hashed</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
Convert darcs-1 format to hashed format</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--old-fashioned-inventory</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
Convert from hashed to darcs-1 format</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repodir DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository directory in which to run</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Advanced options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-ssh-cm</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't use SSH ControlMaster feature [DEFAULT]</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--ssh-cm</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
use SSH ControlMaster feature</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
If the remote repository and the current directory are in the same filesystem and
that filesystem supports hard links, get will create hard links for the
patch files, which means that the additional storage space needed will be
minimal. This is <SPAN CLASS="textit">very</SPAN> good for your disk usage (and for the speed
of running get), so if you want multiple copies of a repository, I strongly
recommend first running <code>darcs get</code> to get yourself one copy, and then
running <code>darcs get</code> on that copy to make any more you like. The only
catch is that the first time you run <code>darcs push</code> or <code>darcs pull</code>
from any of these second copies, by default they will access your first
copy--which may not be what you want.
<P>
You may specify the name of the repository created by providing a second
argument to get, which is a directory name.
<P>
<div class="cmd-opt-hdr">
--context, --tag, --to-patch, --to-match
</div>
If you want to get a specific version of a repository, you have a few
options. You can either use the <code>--tag</code>, <code>--to-patch</code> or
<code>--to-match</code> options, or you can use the <code>--context=FILENAME</code>
option, which specifies a file containing a context generated with
<code>darcs changes --context</code>. This allows you (for example) to include in
your compiled program an option to output the precise version of the
repository from which it was generated, and then perhaps ask users to
include this information in bug reports.
<P>
Note that when specifying <code>--to-patch</code> or <code>--to-match</code>, you may
get a version of your code that has never before been seen, if the patches
have gotten themselves reordered. If you ever want to be able to precisely
reproduce a given version, you need either to tag it or create a context
file.
<P>
<H2><A NAME="SECTION00743000000000000000">
darcs put</A>
</H2>
<code>Usage: darcs put [OPTION]... <NEW REPOSITORY></code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--to-match PATTERN</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select changes up to a patch matching PATTERN</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--to-patch REGEXP</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select changes up to a patch matching REGEXP</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-t</code></TD>
<TD ALIGN="LEFT"><code>--tag REGEXP</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select tag matching REGEXP</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--context FILENAME</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
version specified by the context in FILENAME</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--set-scripts-executable</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
make scripts executable</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--dont-set-scripts-executable</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't make scripts executable</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--hashed</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
Convert darcs-1 format to hashed format</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--old-fashioned-inventory</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
Convert from hashed to darcs-1 format</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--set-default</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
set default repository [DEFAULT]</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-set-default</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't set default repository</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repodir DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository directory in which to run</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Advanced options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--apply-as USERNAME</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
apply patch as another user using sudo</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--apply-as-myself</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't use sudo to apply as another user [DEFAULT]</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-ssh-cm</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't use SSH ControlMaster feature [DEFAULT]</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--ssh-cm</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
use SSH ControlMaster feature</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Put is the opposite of get. Put copies the content of the current
repository and puts it in a newly created repository.
<P>
<SPAN CLASS="textit">WARNING:</SPAN> Put is far less optimized than get, especially for local
repositories. We recommend avoiding use of put except for small
repositories.
<P>
Put is used when you already have a repository and want to make a copy
of it. A typical use-case is when you want to branch your project.
<P>
Put works by first initializing a repository. If the new repository is
not on the local file system then darcs will login to the remote host
and run <code>darcs init</code> there. After the new repository is created
all selected patches will be pushed just as with the command
<code>push</code>.
<P>
<div class="cmd-opt-hdr">
--apply-as
</div>
<P>
If you give the <code>--apply-as</code> flag, darcs will use sudo to apply the
changes as a different user. This can be useful if you want to set up a
system where several users can modify the same repository, but you don't
want to allow them full write access. This isn't secure against skilled
malicious attackers, but at least can protect your repository from clumsy,
inept or lazy users.
<P>
<div class="cmd-opt-hdr">
--context, --tag, --to-patch, --to-match
</div>
If you want to put a specific version of a repository, you have a few
options. You can either use the <code>--tag</code>, <code>--to-patch</code> or
<code>--to-match</code> options, or you can use the <code>--context=FILENAME</code>
option, which specifies a file containing a context generated with
<code>darcs changes --context</code>. This allows you (for example) to include in
your compiled program an option to output the precise version of the
repository from which it was generated, and then perhaps ask users to
include this information in bug reports.
<P>
Note that when specifying <code>--to-patch</code> or <code>--to-match</code>, you may
get a version of your code that has never before been seen, if the patches
have gotten themselves reordered. If you ever want to be able to precisely
reproduce a given version, you need either to tag it or create a context
file.
<P>
<H1><A NAME="SECTION00750000000000000000">
Modifying the contents of a repository</A>
</H1>
<P>
<H2><A NAME="SECTION00751000000000000000">
darcs add</A>
</H2>
<P>
<code>Usage: darcs add [OPTION]... <FILE or DIRECTORY> ...</code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--boring</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't skip boring files</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--case-ok</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't refuse to add files differing only in case</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-r</code></TD>
<TD ALIGN="LEFT"><code>--recursive</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
add contents of subdirectories</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--not-recursive</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't add contents of subdirectories</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--date-trick</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
add files with date appended to avoid conflict [EXPERIMENTAL] </TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-date-trick</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't use experimental date appending trick [DEFAULT]</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repodir DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository directory in which to run</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--dry-run</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't actually take the action</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Advanced options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--umask UMASK</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify umask to use when writing</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Add needs to be called whenever you add a new file or directory to your
project. Of course, it also needs to be called when you first create the
project, to let darcs know which files should be kept track of.
<P>
Darcs will refuse to add a file or directory that differs from an existing
one only in case. This is because the HFS+ file system used on MacOS
treats such files as being one and the same.
<P>
You can not add symbolic links to darcs.
If you try to do that, darcs will refuse and print an error message.
Perhaps you want to make symbolic links <SPAN CLASS="textit">to</SPAN> the files in darcs instead?
<P>
<div class="cmd-opt-hdr">
--boring
</div>
<P>
By default darcs will ignore all files that match any of the boring patterns.
If you want to add such a file anyway you must use the <code>--boring</code> option.
<P>
<div class="cmd-opt-hdr">
--date-trick
</div>
<P>
The <code>--date-trick</code> option allows you to enable an experimental trick
to make add conflicts, in which two users each add a file or directory with
the same name, less problematic. While this trick is completely safe, it
is not clear to what extent it is beneficial.
<P>
<H2><A NAME="SECTION00752000000000000000">
darcs remove</A>
</H2>
<P>
<code>Usage: darcs remove [OPTION]... <FILE or DIRECTORY> ...</code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repodir DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository directory in which to run</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Advanced options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--umask UMASK</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify umask to use when writing</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Remove should be called when you want to remove a file from your project,
but don't actually want to delete the file. Otherwise just delete the
file or directory, and darcs will notice that it has been removed.
Be aware that the file WILL be deleted from any other copy of the
repository to which you later apply the patch.
<P>
<H2><A NAME="SECTION00753000000000000000">
darcs mv</A>
</H2>
<P>
<code>Usage: darcs mv [OPTION]... [FILE or DIRECTORY]...</code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--case-ok</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't refuse to add files differing only in case</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repodir DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository directory in which to run</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Advanced options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--umask UMASK</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify umask to use when writing</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Darcs mv needs to be called whenever you want to move files or
directories. Unlike remove, mv actually performs the move itself in your
working copy.
This is why ``mv'' isn't called ``move'', since it is
really almost equivalent to the unix command ``mv''.
<P>
<div class="cmd-opt-hdr">
--case-ok
</div>
<P>
Darcs mv will by default refuse to rename a file if there already exists a
file having the same name apart from case. This is because doing so could
create a repository that could not be used on file systems that are case
insensitive (such as Apple's HFS+). You can override this by with the flag
<code>--case-ok</code>.
<P>
<H2><A NAME="SECTION00754000000000000000">
darcs replace</A>
</H2>
<P>
<code>Usage: darcs replace [OPTION]... <OLD> <NEW> <FILE> ...</code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--token-chars "[CHARS]"</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
define token to contain these characters</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-f</code></TD>
<TD ALIGN="LEFT"><code>--force</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
proceed with replace even if 'new' token already exists</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-force</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't force the replace if it looks scary</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repodir DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository directory in which to run</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Advanced options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--ignore-times</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't trust the file modification times</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--umask UMASK</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify umask to use when writing</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Replace allows you to change a specified token wherever it
occurs in the specified files. The replace is encoded in a
special patch and will merge as expected with other patches.
Tokens here are defined by a regexp specifying the characters
which are allowed. By default a token corresponds to a C identifier.
<P>
The default regexp is <code>[A-Za-z_0-9]</code>), and if one of your tokens
contains a `<code>-</code>' or `<code>.</code>', you will then (by default) get the ``filename''
regexp, which is <code>[A-Za-z_0-9\-\.]</code>.
<P>
<div class="cmd-opt-hdr">
--token-chars
</div>
<P>
If you prefer to choose a different set of characters to define your token
(perhaps because you are programming in some other language), you may do so
with the <code>--token-chars</code> option. You may prefer to define tokens in terms
of delimiting characters instead of allowed characters using a flag such as
<code>--token-chars '[^ \n\t]'</code>, which would define a token as being
white-space delimited.
<P>
If you do choose a non-default token definition, I recommend using
<code>_darcs/prefs/defaults</code> to always specify the same
<code>--token-chars</code>, since your replace patches will be better behaved (in
terms of commutation and merges) if they have tokens defined in the same
way.
<P>
When using darcs replace, the ``new'' token may not already appear in the
file--if that is the case, the replace change would not be invertible.
This limitation holds only on the already-recorded version of the file.
<P>
There is a potentially confusing difference, however, when a replace is
used to make another replace possible:
<PRE>
% darcs replace newtoken aaack ./foo.c
% darcs replace oldtoken newtoken ./foo.c
% darcs record
</PRE>
will be valid, even if <code>newtoken</code> and <code>oldtoken</code> are both present
in the recorded version of foo.c, while the sequence
<PRE>
% [manually edit foo.c replacing newtoken with aaack]
% darcs replace oldtoken newtoken ./foo.c
</PRE>
will fail because ``newtoken'' still exists in the recorded version of
<code>foo.c</code>. The reason for the difference is that when recording, a
``replace'' patch always is recorded <SPAN CLASS="textit">before</SPAN> any manual changes,
which is usually what you want, since often you will introduce new
occurrences of the ``newtoken'' in your manual changes. In contrast,
multiple ``replace'' changes are recorded in the order in which
they were made.
<P>
<H1><A NAME="SECTION00760000000000000000">
Working with changes</A>
</H1>
<P>
<H2><A NAME="SECTION00761000000000000000"></A>
<A NAME="record"></A>
<BR>
darcs record
</H2>
<P>
<code>Usage: darcs record [OPTION]... [FILE or DIRECTORY]...</code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"><code>-m</code></TD>
<TD ALIGN="LEFT"><code>--patch-name PATCHNAME</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
name of patch</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-A</code></TD>
<TD ALIGN="LEFT"><code>--author EMAIL</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify author id</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-test</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't run the test script</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--test</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
run the test script</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--leave-test-directory</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't remove the test directory</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--remove-test-directory</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
remove the test directory</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-a</code></TD>
<TD ALIGN="LEFT"><code>--all</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
answer yes to all patches</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--pipe</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
expect to receive input from a pipe</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-i</code></TD>
<TD ALIGN="LEFT"><code>--interactive</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
prompt user interactively</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--ask-deps</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
ask for extra dependencies</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-ask-deps</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't ask for extra dependencies</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--edit-long-comment</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
edit the long comment by default</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--skip-long-comment</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't give a long comment</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--prompt-long-comment</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
prompt for whether to edit the long comment</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-l</code></TD>
<TD ALIGN="LEFT"><code>--look-for-adds</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
look for (non-boring) files that could be added</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--dont-look-for-adds</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't look for any files that could be added [DEFAULT]</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repodir DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository directory in which to run</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Advanced options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--logfile FILE</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
give patch name and comment in file</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--delete-logfile</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
delete the logfile when done</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--compress</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
create compressed patches</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--dont-compress</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't create compressed patches</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--ignore-times</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't trust the file modification times</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--umask UMASK</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify umask to use when writing</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--set-scripts-executable</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
make scripts executable</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--dont-set-scripts-executable</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't make scripts executable</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
If you provide one or more files or directories as additional arguments
to record, you will only be prompted to changes in those files or
directories.
Each patch is given a name, which typically would consist of a brief
description of the changes. This name is later used to describe the patch.
The name must fit on one line (i.e. cannot have any embedded newlines). If
you have more to say, stick it in the log.
<P>
The patch is also flagged with the author of the change, taken by default
from the <code>DARCS_EMAIL</code> environment variable, and if that doesn't
exist, from the <code>EMAIL</code> environment variable. The date on which the
patch was recorded is also included. Currently there is no provision for
keeping track of when a patch enters a given repository.
<A NAME="DARCS_EDITOR"></A>Finally, each changeset should have a full log (which may be empty). This
log is for detailed notes which are too lengthy to fit in the name. If you
answer that you do want to create a comment file, darcs will open an editor
so that you can enter the comment in. The choice of editor proceeds as
follows. If one of the <code>$DARCS_EDITOR</code>, <code>$VISUAL</code> or
<code>$EDITOR</code> environment variables is defined, its value is used (with
precedence proceeding in the order listed). If not, ``vi'', ``emacs'',
``emacs -nw'' and ``nano'' are tried in that order.
<P>
<div class="cmd-opt-hdr">
--logfile
</div>
<P>
If you wish, you may specify the patch name and log using the
<code>--logfile</code> flag. If you do so, the first line of the specified file
will be taken to be the patch name, and the remainder will be the ``long
comment''. This feature can be especially handy if you have a test that
fails several times on the record (thus aborting the record), so you don't
have to type in the long comment multiple times. The file's contents will
override the <code>--patch-name</code> option.
<P>
<div class="cmd-opt-hdr">
--ask-deps
</div>
<P>
Each patch may depend on any number of previous patches. If you choose to
make your patch depend on a previous patch, that patch is required to be
applied before your patch can be applied to a repository. This can be used, for
example, if a piece of code requires a function to be defined, which was
defined in an earlier patch.
<P>
If you want to manually define any dependencies for your patch, you can use
the <code>--ask-deps</code> flag, and darcs will ask you for the patch's
dependencies.
<P>
It is possible to record a patch which has no actual changes but which
has specific dependencies. This type of patch can be thought of as a
``partial tag''. The <code>darcs tag</code> command will record a patch
with no actual changes but which depends on the entire current
inventory of the repository. The <code>darcs record --ask-deps</code> with
no selected changes will record a patch that depends on only those
patches selected via the <code>--ask-deps</code> operation, resulting in a
patch which describes a set of patches; the presence of this primary
patch in a repository implies the presence of (at least) the
depended-upon patches.
<P>
<div class="cmd-opt-hdr">
--no-test, --test
</div>
<P>
If you configure darcs to run a test suite, darcs will run this test on the
recorded repository to make sure it is valid. Darcs first creates a pristine
copy of the source tree (in a temporary directory), then it runs the test,
using its return value to decide if the record is valid. If it is not valid,
the record will be aborted. This is a handy way to avoid making stupid
mistakes like forgetting to `darcs add' a new file. It also can be
tediously slow, so there is an option (<code>--no-test</code>) to skip the test.
<P>
<div class="cmd-opt-hdr">
--set-scripts-executable
</div>
<P>
If you pass <code>--set-scripts-executable</code> to <code>darcs record</code>, darcs will set scripts
executable in the test directory before running the test.
<P>
<div class="cmd-opt-hdr">
--pipe
</div>
<P>
If you run record with the <code>--pipe</code> option, you will be prompted for
the patch date, the author, the patch name, and the long comment.
The long comment will
extend until the end of file of stdin is reached (ctrl-D on Unixy systems,
ctrl-Z on systems running a Microsoft OS).
This interface is intended for scripting darcs, in particular for writing
repository conversion scripts. The prompts are intended mostly as a useful
guide (since scripts won't need them), to help you understand the format in
which to provide the input.
<P>
<div class="cmd-opt-hdr">
--interactive
</div>
<P>
By default, <code>record</code> works interactively. Probably the only thing you need
to know about using this is that you can press <code>?</code> at the prompt to be
shown a list of the rest of the options and what they do. The rest should be
clear from there. Here's a
``screenshot'' to demonstrate:
<P>
<PRE>
hunk ./hello.pl +2
+#!/usr/bin/perl
+print "Hello World!\n";
Shall I record this patch? (2/2) [ynWsfqadjk], or ? for help: ?
How to use record...
y: record this patch
n: don't record it
w: wait and decide later, defaulting to no
s: don't record the rest of the changes to this file
f: record the rest of the changes to this file
d: record selected patches
a: record all the remaining patches
q: cancel record
j: skip to next patch
k: back up to previous patch
h or ?: show this help
<Space>: accept the current default (which is capitalized)
</PRE>
What you can't see in that ``screenshot'' is that <code>darcs</code> will also try to use
color in your terminal to make the output even easier to read.
<P>
<H2><A NAME="SECTION00762000000000000000">
darcs pull</A>
</H2>
<P>
<code>Usage: darcs pull [OPTION]... [REPOSITORY]...</code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--matches PATTERN</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select patches matching PATTERN</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-p</code></TD>
<TD ALIGN="LEFT"><code>--patches REGEXP</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select patches matching REGEXP</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-t</code></TD>
<TD ALIGN="LEFT"><code>--tags REGEXP</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select tags matching REGEXP</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-a</code></TD>
<TD ALIGN="LEFT"><code>--all</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
answer yes to all patches</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-i</code></TD>
<TD ALIGN="LEFT"><code>--interactive</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
prompt user interactively</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--mark-conflicts</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
mark conflicts [DEFAULT]</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--allow-conflicts</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
allow conflicts, but don't mark them</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--dont-allow-conflicts</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
fail on patches that create conflicts</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--external-merge COMMAND</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
use external tool to merge conflicts</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--test</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
run the test script</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-test</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't run the test script</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--dry-run</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't actually take the action</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--xml-output</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
generate XML formatted output</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-s</code></TD>
<TD ALIGN="LEFT"><code>--summary</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
summarize changes</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-summary</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't summarize changes</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-deps</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't automatically fulfill dependencies</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--set-default</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
set default repository [DEFAULT]</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-set-default</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't set default repository</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repodir DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository directory in which to run</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Advanced options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--intersection</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
take intersection of all repositories</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--union</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
take union of all repositories [DEFAULT]</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--complement</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
take complement of repositories (in order listed)</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--compress</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
create compressed patches</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--dont-compress</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't create compressed patches</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--nolinks</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
do not link repository or pristine to sibling</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--ignore-times</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't trust the file modification times</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--remote-repo URL</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the remote repository URL to work with</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-ssh-cm</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't use SSH ControlMaster feature [DEFAULT]</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--ssh-cm</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
use SSH ControlMaster feature</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--set-scripts-executable</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
make scripts executable</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--dont-set-scripts-executable</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't make scripts executable</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--umask UMASK</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify umask to use when writing</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Pull is used to bring changes made in another repository into the current
repository (that is, either the one in the current directory, or the one
specified with the -repodir option). Pull allows you to bring over all or
some of the patches that are in that repository but not in this one. Pull
accepts arguments, which are URLs from which to pull, and when called
without an argument, pull will use the repository from which you have most
recently either pushed or pulled.
<P>
<div class="cmd-opt-hdr">
--intersection, --union [DEFAULT], --complement
</div>
<P>
If you provide more than one repository as an argument to pull, darcs'
behavior is determined by the presence of the <code>--complement</code>,
<code>--intersection</code>, and <code>--union</code> flags.
<P>
<UL>
<LI>The default (<code>--union</code>) behavior is to pull any patches
that are in any of the specified repositories (<!-- MATH
$R_1 \bigcup R_2
\bigcup R_3 \ldots$
-->
<SPAN CLASS="MATH"><IMG
WIDTH="120" HEIGHT="32" ALIGN="MIDDLE" BORDER="0"
SRC="img12.png"
ALT="$ R_1 \bigcup R_2
\bigcup R_3 \ldots$"></SPAN>).
<P>
</LI>
<LI>If you instead specify the <code>--intersection</code> flag, darcs
will only pull those patches which are present in all source
repositories (<!-- MATH
$R_1 \bigcap R_2 \bigcap R_3 \ldots$
-->
<SPAN CLASS="MATH"><IMG
WIDTH="121" HEIGHT="32" ALIGN="MIDDLE" BORDER="0"
SRC="img13.png"
ALT="$ R_1 \bigcap R_2 \bigcap R_3 \ldots$"></SPAN>).
<P>
</LI>
<LI>If you specify the <code>--complement</code> flag, darcs will only
pull elements in the first repository that do not exist in any of the
remaining repositories<A NAME="tex2html20"
HREF="footnode.html#foot2399"><SUP><SPAN CLASS="arabic">6</SPAN>.<SPAN CLASS="arabic">4</SPAN></SUP></A> (<!-- MATH
$R_1
\backslash (R_2 \bigcup R_3 \bigcup \ldots$
-->
<SPAN CLASS="MATH"><IMG
WIDTH="132" HEIGHT="32" ALIGN="MIDDLE" BORDER="0"
SRC="img15.png"
ALT="$ R_1
\backslash (R_2 \bigcup R_3 \bigcup \ldots$"></SPAN>)).
<P>
</LI>
</UL>
<P>
<div class="cmd-opt-hdr">
--external-merge
</div>
<P>
You can use an external interactive merge tool to resolve conflicts with the
flag <code>--external-merge</code>. For more details see
subsection <A HREF="#resolution"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]"
SRC="./crossref.png"></A>.
<P>
<div class="cmd-opt-hdr">
--matches, --patches, --tags, --no-deps
</div>
<P>
The <code>--patches</code>, <code>--matches</code>, <code>--tags</code>, and <code>--no-deps</code>
options can be used to select which patches to pull, as described in
subsection <A HREF="#selecting"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]"
SRC="./crossref.png"></A>.
<P>
<div class="cmd-opt-hdr">
--no-test, --test
</div>
<P>
If you specify the <code>--test</code> option, pull will run the test (if a test
exists) on a scratch copy of the repository contents prior to actually performing
the pull. If the test fails, the pull will be aborted.
<P>
<div class="cmd-opt-hdr">
--verbose
</div>
<P>
Adding the <code>--verbose</code> option causes another section to appear in the
output which also displays a summary of patches that you have and the remote
repository lacks. Thus, the following syntax can be used to show you all the patch
differences between two repositories:
<P>
<PRE>
darcs pull --dry-run --verbose
</PRE>
<P>
<H2><A NAME="SECTION00763000000000000000">
darcs push</A>
</H2>
<P>
<code>Usage: darcs push [OPTION]... [REPOSITORY]</code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--matches PATTERN</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select patches matching PATTERN</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-p</code></TD>
<TD ALIGN="LEFT"><code>--patches REGEXP</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select patches matching REGEXP</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-t</code></TD>
<TD ALIGN="LEFT"><code>--tags REGEXP</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select tags matching REGEXP</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-deps</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't automatically fulfill dependencies</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-a</code></TD>
<TD ALIGN="LEFT"><code>--all</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
answer yes to all patches</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-i</code></TD>
<TD ALIGN="LEFT"><code>--interactive</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
prompt user interactively</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--sign</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
sign the patch with your gpg key</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--sign-as KEYID</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
sign the patch with a given keyid</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--sign-ssl IDFILE</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
sign the patch using openssl with a given private key</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--dont-sign</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't sign the patch</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--dry-run</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't actually take the action</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--xml-output</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
generate XML formatted output</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-s</code></TD>
<TD ALIGN="LEFT"><code>--summary</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
summarize changes</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-summary</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't summarize changes</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repodir DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository directory in which to run</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--set-default</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
set default repository [DEFAULT]</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-set-default</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't set default repository</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Advanced options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--apply-as USERNAME</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
apply patch as another user using sudo</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--apply-as-myself</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't use sudo to apply as another user [DEFAULT]</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--nolinks</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
do not link repository or pristine to sibling</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--remote-repo URL</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the remote repository URL to work with</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-ssh-cm</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't use SSH ControlMaster feature [DEFAULT]</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--ssh-cm</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
use SSH ControlMaster feature</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Push is the opposite of pull. Push allows you to copy changes from the
current repository into another repository.
<P>
For obvious reasons, you can only push to repositories to which you have
write access. In addition, you can only push to repos that you access
either on the local file system or with ssh. In order to apply with ssh,
darcs must also be installed on the remote computer. The command invoked
to run ssh may be configured by the <code>DARCS_SSH</code> environment variable
(see subsection <A HREF="node5.html#env:DARCS_SSH"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]"
SRC="./crossref.png"></A>). The command invoked via ssh is always
<code>darcs</code>, i.e. the darcs executable must be in the default path on
the remote machine.
<P>
Push works by creating a patch bundle, and then running darcs apply in the
target repository using that patch bundle. This means that the default
options for <SPAN CLASS="textit">apply</SPAN> in the <SPAN CLASS="textit">target</SPAN> repository (such as, for
example, <code>--test</code>) will affect the behavior of push. This also means
that push is somewhat less efficient than pull.
<P>
When you receive an error message such as
<PRE>
bash: darcs: command not found
</PRE>
then this means that the darcs on the remote machine could
not be started. Make sure that the darcs executable is called
<code>darcs</code> and is found in the default path. The default path can
be different in interactive and in non-interactive shells. Say
<PRE>
ssh login@remote.machine darcs
</PRE>
to try whether the remote darcs can be found, or
<PRE>
ssh login@remote.machine 'echo $PATH'
</PRE>
(note the single quotes) to check the default path.
<P>
<div class="cmd-opt-hdr">
--apply-as
</div>
<P>
If you give the <code>--apply-as</code> flag, darcs will use sudo to apply the
changes as a different user. This can be useful if you want to set up a
system where several users can modify the same repository, but you don't
want to allow them full write access. This isn't secure against skilled
malicious attackers, but at least can protect your repository from clumsy,
inept or lazy users.
<P>
<div class="cmd-opt-hdr">
--matches, --patches, --tags, --no-deps
</div>
<P>
The <code>--patches</code>, <code>--matches</code>, <code>--tags</code>, and <code>--no-deps</code>
options can be used to select which patches to push, as described in
subsection <A HREF="#selecting"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]"
SRC="./crossref.png"></A>.
<P>
When there are conflicts, the behavior of push is determined by the default
flags to <code>apply</code> in the <SPAN CLASS="textit">target</SPAN> repository. Most commonly, for
pushed-to repositories, you'd like to have <code>--dont-allow-conflicts</code> as
a default option to apply (by default, it is already the default...). If
this is the case, when there are conflicts on push, darcs will fail with an
error message. You can then resolve by pulling the conflicting patch,
recording a resolution and then pushing the resolution together with the
conflicting patch.
<P>
Darcs does not have an explicit way to tell you which patch conflicted, only the
file name. You may want to pull all the patches from the remote repository just
to be sure. If you don't want to do this in your working directory,
you can create another darcs working directory for this purpose.
<P>
If you want, you could set the target repository to use <code>--allow-conflicts</code>.
In this case conflicting patches will be applied, but the conflicts will
not be marked in the working directory.
<P>
If, on the other hand, you have <code>--mark-conflicts</code> specified as a
default flag for apply in the target repository, when there is a conflict,
it will be marked in the working directory of the target repository. In
this case, you should resolve the conflict in the target repository itself.
<P>
<H2><A NAME="SECTION00764000000000000000">
darcs send</A>
</H2>
<P>
<code>Usage: darcs send [OPTION]... [REPOSITORY]</code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--matches PATTERN</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select patches matching PATTERN</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-p</code></TD>
<TD ALIGN="LEFT"><code>--patches REGEXP</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select patches matching REGEXP</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-t</code></TD>
<TD ALIGN="LEFT"><code>--tags REGEXP</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select tags matching REGEXP</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-deps</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't automatically fulfill dependencies</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-a</code></TD>
<TD ALIGN="LEFT"><code>--all</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
answer yes to all patches</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-i</code></TD>
<TD ALIGN="LEFT"><code>--interactive</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
prompt user interactively</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--from EMAIL</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify email address</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-A</code></TD>
<TD ALIGN="LEFT"><code>--author EMAIL</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify author id</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--to EMAIL</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify destination email</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--cc EMAIL</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
mail results to additional EMAIL(s). Requires -reply</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--subject SUBJECT</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify mail subject</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-o</code></TD>
<TD ALIGN="LEFT"><code>--output FILE</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify output filename</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-O</code></TD>
<TD ALIGN="LEFT"><code>--output-auto-name</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
output to automatically named file</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--sign</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
sign the patch with your gpg key</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--sign-as KEYID</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
sign the patch with a given keyid</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--sign-ssl IDFILE</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
sign the patch using openssl with a given private key</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--dont-sign</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't sign the patch</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--dry-run</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't actually take the action</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--xml-output</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
generate XML formatted output</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-s</code></TD>
<TD ALIGN="LEFT"><code>--summary</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
summarize changes</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-summary</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't summarize changes</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--edit-description</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
edit the patch bundle description</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--dont-edit-description</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't edit the patch bundle description</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--set-default</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
set default repository [DEFAULT]</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-set-default</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't set default repository</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repodir DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository directory in which to run</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--sendmail-command COMMAND</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify sendmail command</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Advanced options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--logfile FILE</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
give patch name and comment in file</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--delete-logfile</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
delete the logfile when done</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--remote-repo URL</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the remote repository URL to work with</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--context FILENAME</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
send to context stored in FILENAME</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-ssh-cm</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't use SSH ControlMaster feature [DEFAULT]</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--ssh-cm</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
use SSH ControlMaster feature</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Send is used to prepare a bundle of patches that can be applied to a target
repository. Send accepts the URL of the repository as an argument. When
called without an argument, send will use the most recent repository that
was either pushed to, pulled from or sent to. By default, the patch bundle
is sent by email, although you may save it to a file.
<P>
Do not confuse the <code>--author</code> options with the return address
that <code>darcs send</code> will set for your patch bundle.
<P>
For example, if you have two email addresses A and B:
<DL>
<DT></DT>
<DD>If you use
<code>--author A</code> but your machine is configured to send mail from
address B by default, then the return address on your message will be B.
<P>
</DD>
<DT></DT>
<DD>If you use <code>--from A</code> and your mail client supports setting the
From: address arbitrarily (some non-Unix-like mail clients, especially,
may not support this), then the return address will be A; if it does
not support this, then the return address will be B.
<P>
</DD>
<DT></DT>
<DD>If you supply neither <code>--from</code> nor <code>--author</code>, then the return
address will be B.
</DD>
</DL>
<P>
In addition, unless you specify the sendmail command with
<code>--sendmail-command</code>, darcs sends email using the default email
command on your computer. This default command is determined by the
<code>configure</code> script. Thus, on some non-Unix-like OSes,
<code>--from</code> is likely to not work at all.
<P>
<div class="cmd-opt-hdr">
--output, --to, --cc
</div>
<P>
The <code>--output</code>, <code>--output-auto-name</code>, and <code>--to</code> flags determine
what darcs does with the patch bundle after creating it. If you provide an
<code>--output</code> argument, the patch bundle is saved to that file. If you
specify <code>--output-auto-name</code>, the patch bundle is saved to a file with an
automatically generated name. If you give one or more <code>--to</code> arguments,
the bundle of patches is sent to those locations. The locations may either be email
addresses or urls that the patch should be submitted to via HTTP.
<P>
If you don't provide any of these options, darcs will look at the contents of
the <code>_darcs/prefs/email</code> file in the target repository (if it exists), and
send the patch by email to that address. In this case, you may use the
<code>--cc</code> option to specify additional recipients without overriding the
default repository email address.
<P>
If there is no email address associated with the repository, darcs will
prompt you for an email address.
<P>
<div class="cmd-opt-hdr">
--subject
</div>
<P>
Use the <code>--subject</code> flag to set the subject of the e-mail to be sent.
If you don't provide a subject on the command line, darcs will make one up
based on names of the patches in the patch bundle.
<P>
<div class="cmd-opt-hdr">
--matches, --patches, --tags, --no-deps
</div>
<P>
The <code>--patches</code>, <code>--matches</code>, <code>--tags</code>, and <code>--no-deps</code>
options can be used to select which patches to send, as described in
subsection <A HREF="#selecting"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]"
SRC="./crossref.png"></A>.
<P>
<div class="cmd-opt-hdr">
--edit-description
</div>
<P>
If you want to include a description or explanation along with the bundle
of patches, you need to specify the <code>--edit-description</code> flag, which
will cause darcs to open up an editor with which you can compose a message
to go along with your patches.
<P>
<div class="cmd-opt-hdr">
--sendmail-command
</div>
<P>
If you want to use a command different from the default one for sending email,
you need to specify a command line with the <code>--sendmail-command</code> option. The
command line can contain some format specifiers which are replaced by the actual
values. Accepted format specifiers are <code>%s</code> for subject, <code>%t</code> for to,
<code>%c</code> for cc, <code>%b</code> for the body of the mail, <code>%f</code> for from, <code>%a</code>
for the patch bundle and the same specifiers in uppercase for the URL-encoded values.
Additionally you can add <code>%<</code> to the end of the command line if the command
expects the complete email message on standard input. E.g. the command lines for evolution
and msmtp look like this:
<P>
<PRE>
evolution "mailto:%T?subject=%S&attach=%A&cc=%C&body=%B"
msmtp -t %<
</PRE>
<P>
<H2><A NAME="SECTION00765000000000000000">
darcs apply</A>
</H2>
<P>
<code>Usage: darcs apply [OPTION]... <PATCHFILE></code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--verify PUBRING</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
verify that the patch was signed by a key in PUBRING</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--verify-ssl KEYS</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
verify using openSSL with authorized keys from file KEYS</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-verify</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't verify patch signature</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-a</code></TD>
<TD ALIGN="LEFT"><code>--all</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
answer yes to all patches</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-i</code></TD>
<TD ALIGN="LEFT"><code>--interactive</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
prompt user interactively</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--dry-run</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't actually take the action</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--xml-output</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
generate XML formatted output</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--mark-conflicts</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
mark conflicts</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--allow-conflicts</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
allow conflicts, but don't mark them</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-resolve-conflicts</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
equivalent to -dont-allow-conflicts, for backwards compatibility</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--dont-allow-conflicts</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
fail on patches that create conflicts [DEFAULT]</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--external-merge COMMAND</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
use external tool to merge conflicts</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-test</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't run the test script</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--test</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
run the test script</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--leave-test-directory</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't remove the test directory</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--remove-test-directory</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
remove the test directory</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repodir DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository directory in which to run</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Advanced options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--reply FROM</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
reply to email-based patch using FROM address</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--cc EMAIL</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
mail results to additional EMAIL(s). Requires -reply</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--happy-forwarding</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
forward unsigned messages without extra header</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--sendmail-command COMMAND</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify sendmail command</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--ignore-times</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't trust the file modification times</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--compress</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
create compressed patches</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--dont-compress</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't create compressed patches</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--set-scripts-executable</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
make scripts executable</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--dont-set-scripts-executable</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't make scripts executable</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--umask UMASK</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify umask to use when writing</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Apply is used to apply a bundle of patches to this repository.
Such a bundle may be created using send.
<P>
Darcs apply accepts a single argument, which is the name of the patch file
to be applied. If you omit this argument, the patch is read from standard
input.<A NAME="tex2html21"
HREF="footnode.html#foot1342"><SUP><SPAN CLASS="arabic">6</SPAN>.<SPAN CLASS="arabic">5</SPAN></SUP></A> This
allows you to use apply with a pipe from your email program, for example.
<P>
<div class="cmd-opt-hdr">
--verify
</div>
<P>
If you specify the <code>--verify PUBRING</code> option, darcs will check that
the patch was GPG-signed by a key which is in <code>PUBRING</code> and will
refuse to apply the patch otherwise.
<P>
<div class="cmd-opt-hdr">
--cc, --reply
</div>
<P>
If you give the <code>--reply FROM</code> option to <code>darcs apply</code>, it will send the
results of the application to the sender of the patch. This only works if
the patch is in the form of email with its headers intact, so that darcs
can actually know the origin of the patch. The reply email will indicate
whether or not the patch was successfully applied. The <code>FROM</code> flag is
the email address that will be used as the ``from'' address when replying.
If the darcs apply is being done automatically, it is important that this
address not be the same as the address at which the patch was received, in
order to avoid automatic email loops.
<P>
If you want to also send the apply email to another address (for example,
to create something like a ``commits'' mailing list), you can use the
<code>--cc</code> option to specify additional recipients. Note that the
<code>--cc</code> option <SPAN CLASS="textit">requires</SPAN> the <code>--reply</code> option, which
provides the ``From'' address.
<P>
The <code>--reply</code> feature of apply is intended primarily for two uses.
When used by itself, it is handy for when you want to apply patches sent to
you by other developers so that they will know when their patch has been
applied. For example, in my <code>.muttrc</code> (the config file for my mailer)
I have:
<PRE>
macro pager A "<pipe-entry>darcs apply --verbose \
--reply droundy@abridgegame.org --repodir ~/darcs
</PRE>
which allows me to apply a patch to darcs directly from my mailer, with the
originator of that patch being sent a confirmation when the patch is
successfully applied. NOTE: In an attempt to make sure no one else
can read your email, mutt seems to set the umask
such that patches created with the above macro are not world-readable, so
use it with care.
<P>
When used in combination with the <code>--verify</code> option, the
<code>--reply</code> option allows for a nice pushable repository. When these
two options are used together, any patches that don't pass the verify will
be forwarded to the <code>FROM</code> address of the <code>--reply</code> option. This
allows you to set up a repository so that anyone who is authorized can push
to it and have it automatically applied, but if a stranger pushes to it,
the patch will be forwarded to you. Please (for your own sake!) be certain
that the <code>--reply FROM</code> address is different from the one used to send
patches to a pushable repository, since otherwise an unsigned patch will be
forwarded to the repository in an infinite loop.
<P>
If you use <code>darcs apply --verify PUBRING --reply</code> to create a
pushable repository by applying patches automatically as they are received by
email, you will also want to use the <code>--dont-allow-conflicts</code> option.
<P>
<div class="cmd-opt-hdr">
--dont-allow-conflicts
</div>
The <code>--dont-allow-conflicts</code> flag causes apply to fail when applying a
patch would cause conflicts. This flag is recommended on repositories
which will be pushed to or sent to.
<P>
<div class="cmd-opt-hdr">
--allow-conflicts
</div>
<P>
<code>--allow-conflicts</code> will allow conflicts, but will keep the local and
recorded versions in sync on the repository. This means the conflict will exist
in both locations until it is resolved.
<P>
<div class="cmd-opt-hdr">
--mark-conflicts
</div>
<P>
<code>--mark-conflicts</code> will add conflict markers to illustrate the the
conflict.
<P>
<div class="cmd-opt-hdr">
--external-merge
</div>
<P>
You can use an external interactive merge tool to resolve conflicts with the
flag <code>--external-merge</code>. For more details see
subsection <A HREF="#resolution"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]"
SRC="./crossref.png"></A>.
<P>
<div class="cmd-opt-hdr">
--all, --interactive
</div>
<P>
If you provide the <code>--interactive</code> flag, darcs will
ask you for each change in the patch bundle whether or not you wish to
apply that change. The opposite is the <code>--all</code> flag, which can be
used to override an <code>interactive</code> which might be set in your
``defaults'' file.
<P>
<div class="cmd-opt-hdr">
--sendmail-command
</div>
<P>
If you want to use a command different from the default one for sending mail,
you need to specify a command line with the <code>--sendmail-command</code> option.
The command line can contain the format specifier <code>%t</code> for to
and you can add <code>%<</code> to the end of the command line if the command
expects the complete mail on standard input. For example, the command line for
msmtp looks like this:
<P>
<PRE>
msmtp -t %<
</PRE>
<P>
<div class="cmd-opt-hdr">
--no-test, --test
</div>
<P>
If you specify the <code>--test</code> option, apply will run the test (if a test
exists) prior to applying the patch. If the test fails, the patch is not
applied. In this case, if the <code>--reply</code> option was used, the results
of the test are sent in the reply email. You can also specify the
<code>--no-test</code> option, which will override the <code>--test</code> option, and
prevent the test from being run. This is helpful when setting up a
pushable repository, to keep users from running code.
<P>
<H1><A NAME="SECTION00770000000000000000">
Seeing what you've done</A>
</H1>
<P>
<H2><A NAME="SECTION00771000000000000000"></A>
<A NAME="whatsnew"></A>
<BR>
darcs whatsnew
</H2>
<P>
<code>Usage: darcs whatsnew [OPTION]... [FILE or DIRECTORY]...</code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"><code>-s</code></TD>
<TD ALIGN="LEFT"><code>--summary</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
summarize changes</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-summary</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't summarize changes</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-u</code></TD>
<TD ALIGN="LEFT"><code>--unified</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
output patch in a darcs-specific format similar to diff -u</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-l</code></TD>
<TD ALIGN="LEFT"><code>--look-for-adds</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
look for (non-boring) files that could be added</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--dont-look-for-adds</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't look for any files that could be added [DEFAULT]</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repodir DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository directory in which to run</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Advanced options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--ignore-times</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't trust the file modification times</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--boring</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't skip boring files</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Display unrecorded changes in the working copy.
whatsnew gives you a view of what changes you've made in your working
copy that haven't yet been recorded. The changes are displayed in
darcs patch format. Note that -look-for-adds implies -summary usage.
<code>darcs whatsnew</code> will return a non-zero value if
there are no changes, which can be useful if you just want to see in a
script if anything has been modified. If you want to see some context
around your changes, you can use the <code>-u</code> option, to get output
similar to the unidiff format.
<P>
If you give one or more file or directory names as an argument to
<code>whatsnew</code>, darcs will output only changes to those files or to files in
those directories.
<P>
<H2><A NAME="SECTION00772000000000000000">
darcs changes</A>
</H2>
<P>
<code>Usage: darcs changes [OPTION]... [FILE or DIRECTORY]...</code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--to-match PATTERN</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select changes up to a patch matching PATTERN</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--to-patch REGEXP</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select changes up to a patch matching REGEXP</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--to-tag REGEXP</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select changes up to a tag matching REGEXP</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--from-match PATTERN</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select changes starting with a patch matching PATTERN</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--from-patch REGEXP</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select changes starting with a patch matching REGEXP</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--from-tag REGEXP</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select changes starting with a tag matching REGEXP</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--last NUMBER</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select the last NUMBER patches</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--matches PATTERN</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select patches matching PATTERN</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-p</code></TD>
<TD ALIGN="LEFT"><code>--patches REGEXP</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select patches matching REGEXP</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-t</code></TD>
<TD ALIGN="LEFT"><code>--tags REGEXP</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select tags matching REGEXP</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--only-to-files</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
show only changes to specified files</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--context</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
give output suitable for get -context</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--xml-output</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
generate XML formatted output</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--human-readable</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
give human-readable output</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--count</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
output count of changes</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-s</code></TD>
<TD ALIGN="LEFT"><code>--summary</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
summarize changes</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-summary</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't summarize changes</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--reverse</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
show changes in reverse order</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repo URL</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository URL</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repodir DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository directory in which to run</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-a</code></TD>
<TD ALIGN="LEFT"><code>--all</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
answer yes to all patches</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-i</code></TD>
<TD ALIGN="LEFT"><code>--interactive</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
prompt user interactively</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Advanced options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-ssh-cm</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't use SSH ControlMaster feature [DEFAULT]</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--ssh-cm</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
use SSH ControlMaster feature</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Changes gives a changelog-style summary of the repository history,
including options for altering how the patches are selected and displayed.
<P>
When given one or more files or directories as an argument, changes lists only
those patches which affect those files or the contents of those directories or,
of course, the directories themselves. This includes changes that happened to
files before they were moved or renamed.
<P>
<div class="cmd-opt-hdr">
--from-match, --from-patch, --from-tag
</div>
<P>
If changes is given a <code>--from-patch</code>, <code>--from-match</code>, or
<code>--from-tag</code> option, it outputs only those changes since that tag or
patch.
<P>
Without any options to limit the scope of the changes, history will be displayed
going back as far as possible.
<P>
<div class="cmd-opt-hdr">
--context, --human-readable, --xml-output
</div>
<P>
When given the <code>--context</code> flag, darcs changes outputs sufficient
information to allow the current state of the repository to be
recreated at a later date. This information should generally be piped to a
file, and then can be used later in conjunction with
<code>darcs get --context</code> to recreate the current version. Note that
while the <code>--context</code> flag may be used in conjunction with
<code>--xml-output</code> or <code>--human-readable</code>, in neither case will darcs
get be able to read the output. On the other hand, sufficient information
<SPAN CLASS="textit">will</SPAN> be output for a knowledgeable human to recreate the current
state of the repository.
<P>
<H2><A NAME="SECTION00773000000000000000">
darcs show</A>
</H2>
<P>
The show command provides access to several subcommands which can be
used to investigate the state of a repository.
<P>
<H3><A NAME="SECTION00773100000000000000">
darcs show authors</A>
</H3>
<P>
<code>Usage: darcs show authors [OPTION]... </code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repodir DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository directory in which to run</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
The authors command writes a list of all patch authors in the repository to
standard output.
<P>
<H3><A NAME="SECTION00773200000000000000">
darcs show contents</A>
</H3>
<P>
<code>Usage: darcs show contents [OPTION]... [FILE]...</code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--match PATTERN</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select a single patch matching PATTERN</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-p</code></TD>
<TD ALIGN="LEFT"><code>--patch REGEXP</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select a single patch matching REGEXP</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-t</code></TD>
<TD ALIGN="LEFT"><code>--tag REGEXP</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select tag matching REGEXP</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repodir DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository directory in which to run</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Show contents can be used to display an earlier version of some file(s).
If you give show contents no version arguments, it displays the recorded
version of the file(s).
<P>
<H3><A NAME="SECTION00773300000000000000"></A>
<A NAME="show-files"></A>
<BR>
darcs show files
</H3>
<P>
<code>Usage: darcs show files [OPTION]... </code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--files</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
include files in output [DEFAULT]</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-files</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't include files in output</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--directories</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
include directories in output [DEFAULT]</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-directories</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't include directories in output</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--pending</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
reflect pending patches in output [DEFAULT]</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-pending</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
only included recorded patches in output</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-0</code></TD>
<TD ALIGN="LEFT"><code>--null</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
separate file names by NUL characters</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repodir DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository directory in which to run</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
The files command lists the version-controlled files in the
working copy. The similar manifest command, lists the same
files, excluding any directories.
<P>
By default (and if the <code>--pending</code> option is specified),
the effect of pending patches on the repository is taken into account.
In other words, if you add a file using <TT>darcs add</TT>, it
immediately appears in the output of <TT>query manifest</TT>, even if it
is not yet recorded. If you specify the <code>--no-pending</code> option,
<TT>query manifest</TT> will only list recorded files (and directories).
<P>
The <code>--files</code> and <code>--directories</code> options control whether
files and directories are included in the output. The
<code>--no-files</code> and <code>--no-directories</code> options have the
reverse effect. The default is to include files, but not directories.
<P>
If you specify the <code>--null</code> option, the file names are written to
standard output in unescaped form, and separated by ASCII NUL bytes.
This format is suitable for further automatic processing (for example,
using <code>xargs -0</code>).
<P>
<H3><A NAME="SECTION00773400000000000000">
darcs show tags</A>
</H3>
<P>
<code>Usage: darcs show tags [OPTION]... </code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repodir DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository directory in which to run</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
The tags command writes a list of all tags in the repository to standard
output.
<P>
Tab characters (ASCII character 9) in tag names are changed to spaces
for better interoperability with shell tools. A warning is printed if
this happens.
<P>
<H3><A NAME="SECTION00773500000000000000">
darcs show repo</A>
</H3>
<P>
<code>Usage: darcs show repo [OPTION]... </code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repodir DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository directory in which to run</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--files</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
include files in output [DEFAULT]</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-files</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't include files in output</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--xml-output</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
generate XML formatted output</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
The <code>show repo</code> displays information about
the current repository: the location, the type, etc.
<P>
This is provided as informational output for two purposes: curious
users and scripts invoking darcs. For the latter, this information
can be parsed to facilitate the script; for example,
<code>darcs show repo | grep Root: | awk {print $2}</code>
can be used to locate the
top-level <code>_darcs</code> directory from anyplace within a darcs repository
working directory.
<P>
<div class="cmd-opt-hdr">
--files, --no-files
</div>
<P>
If the <code>--files</code> option is specified (the default), then the
<code>show repo</code> operation will read patch information from the
repository and display the number of patches in the repository. The
<code>--no-files</code> option can be used to suppress this operation (and
improve performance).
<P>
<div class="cmd-opt-hdr">
--human-readable, --xml-output
</div>
<P>
By default, the <code>show repo</code> displays output in human readable
form, but the <code>--xml-output</code> option can be used to obtain
XML-formatted to facilitate regular parsing by external tools.
<P>
<H1><A NAME="SECTION00780000000000000000">
More advanced commands</A>
</H1>
<P>
<H2><A NAME="SECTION00781000000000000000">
darcs tag</A>
</H2>
<P>
<code>Usage: darcs tag [OPTION]... [TAGNAME]</code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"><code>-m</code></TD>
<TD ALIGN="LEFT"><code>--patch-name PATCHNAME</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
name of patch</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-A</code></TD>
<TD ALIGN="LEFT"><code>--author EMAIL</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify author id</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--checkpoint</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
create a checkpoint file (see get -partial)</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--pipe</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
expect to receive input from a pipe</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-i</code></TD>
<TD ALIGN="LEFT"><code>--interactive</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
prompt user interactively</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repodir DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository directory in which to run</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Advanced options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--compress</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
create compressed patches</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--dont-compress</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't create compressed patches</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--umask UMASK</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify umask to use when writing</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Tag is used to name a version of this repository (i.e. the whole tree).
Tag differs from record in that it doesn't record any
new changes, and it always depends on all patches residing in the
repository when it is tagged. This means that one can later reproduce this
version of the repository by calling, for example:
<PRE>
% darcs get --tag "darcs 3.14" REPOLOCATION
</PRE>
<P>
Each tagged version has a version name.
The version is also flagged with the person who tagged it (taken by default
from the `DARCS_EMAIL' or `EMAIL' environment variable). The date is also
included in the version information.
<P>
A tagged version automatically depends on all patches in the repository. This
allows you to later reproduce precisely that version. The tag does this by
depending on all patches in the repository, except for those which are depended
upon by other tags already in the repository. In the common case of a sequential
series of tags, this means that the tag depends on all patches since the
last tag, plus that tag itself.
<P>
<div class="cmd-opt-hdr">
--checkpoint
</div>
The <code>--checkpoint</code> option allows the tag be used later with the
<code>--partial</code> flag to <code>get</code> or <code>check</code>.
<P>
A partial repository only contains patches from after the checkpoint. A
partial repository works just like a normal repository, but any command that
needs to look at the contents of a missing patch will complain and abort.
<P>
<div class="cmd-opt-hdr">
--pipe
</div>
<P>
If you run tag with the <code>--pipe</code> option, you will be prompted for the
tag name and date. This interface is intended for scripting darcs, in
particular for writing repository conversion scripts. The prompts are
intended mostly as useful guide (since scripts won't need them), to help
you understand the format in which to provide the input. Here's an example
of what the <code>--pipe</code> prompts looks like:
<P>
<PRE>
What is the date? Mon Nov 15 13:38:01 EST 2004
Who is the author? David Roundy
What is the version name? 3.0
Finished tagging patch 'TAG 3.0'
</PRE>
<P>
Using <code>tag</code> creates an entry in the repository history just like <code>record</code>.
It will show up with <code>darcs changes</code> appearing in the format:
<P>
<PRE>
tagged My Tag Name
</PRE>
<P>
To display all tags in the repository, use the ``<code>darcs query tags</code>''
command.
<P>
<H2><A NAME="SECTION00782000000000000000">
darcs setpref</A>
</H2>
<P>
<code>Usage: darcs setpref [OPTION]... <PREF> <VALUE></code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repodir DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository directory in which to run</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Advanced options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--umask UMASK</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify umask to use when writing</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Usage example:
<PRE>
% darcs setpref test "echo I am not really testing anything."
</PRE>
<P>
Setpref allows you to set a preference value in a way that will
propagate to other repositories.
<P>
Valid preferences are: test predist boringfile binariesfile.
If you just want to set the pref value in your
repository only, you can just edit ``<code>_darcs/prefs/prefs</code>''. Changes
you make in that file will be preserved.
<P>
The ``<code>_darcs/prefs/prefs</code>'' holds the only preferences information
that can propagate between repositories by pushes and pulls, and the only
way this happens is when the setprefs command is used. Note that although
prefs settings are included in patches, they are <SPAN CLASS="textit">not</SPAN> fully version
controlled. In particular, depending on the order in which a series of
merges is performed, you may end up with a different final prefs
configuration. In practice I don't expect this to be a problem, as the
prefs usually won't be changed very often.
<P>
The following values are valid preferences options which can be configured
using setpref:
<UL>
<LI>``test'' -- the command to run as a test script.
</LI>
<LI>``predist'' -- a command to run prior to tarring up a distribution
tarball. Typically this would consist of autoconf and/or automake.
</LI>
<LI>``boringfile'' -- the name of a file to read instead of the
``boring'' prefs file.
</LI>
<LI>``binariesfile'' -- the name of a file to read instead of the
``binaries'' prefs file.
</LI>
</UL>
<P>
<H2><A NAME="SECTION00783000000000000000">
darcs check</A>
</H2>
<P>
<code>Usage: darcs check [OPTION]... </code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--complete</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
get a complete copy of the repository</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--partial</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
get partial repository using checkpoint (old-fashioned format only)</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-test</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't run the test script</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--test</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
run the test script</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--leave-test-directory</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't remove the test directory</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--remove-test-directory</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
remove the test directory</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repodir DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository directory in which to run</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Check the repository for consistency.
Check verifies that the patches stored in the repository, when successively
applied to an empty tree, properly recreate the stored pristine tree.
<P>
<div class="cmd-opt-hdr">
--complete, --partial
</div>
<P>
If you have a checkpoint of the repository (as is the case if you got the
repository originally using <code>darcs get --partial</code>), by default
<code>darcs check</code>
will only verify the contents since the most recent checkpoint. You can
change this behavior using the <code>--complete</code> flag.
<P>
If you like, you can configure your repository to be able to run a test
suite of some sort. You can do this by using ``setpref'' to set the
``test'' value to be a command to run, e.g.
<PRE>
% darcs setpref test "sh configure && make && make test"
</PRE>
Or, if you want to define a test specific to one copy of the repository,
you could do this by editing the file <code>_darcs/prefs/prefs</code>.
<P>
<div class="cmd-opt-hdr">
--leave-test-directory, --remove-test-directory
</div>
<P>
Normally darcs deletes the directory in which the test was run afterwards.
Sometimes (especially when the test fails) you'd prefer to be able to be
able to examine the test directory after the test is run. You can do this
by specifying the <code>--leave-test-directory</code> flag. Alas, there is no
way to make darcs leave the test directory only if the test fails. The
opposite of <code>--leave-test-directory</code> is
<code>--remove-test-directory</code>, which could come in handy if you choose to
make <code>--leave-test-directory</code> the default (see
section <A HREF="node5.html#defaults"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]"
SRC="./crossref.png"></A>).
<P>
<div class="cmd-opt-hdr">
--no-test
</div>
<P>
If you just want to check the consistency of your repository without
running the test, you can call darcs check with the <code>--no-test</code>
option.
<P>
<H2><A NAME="SECTION00784000000000000000">
darcs optimize</A>
</H2>
<P>
<code>Usage: darcs optimize [OPTION]... </code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--checkpoint</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
create a checkpoint file (see get -partial)</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-t</code></TD>
<TD ALIGN="LEFT"><code>--tag TAGNAME</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
name of version to checkpoint</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repodir DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository directory in which to run</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--reorder-patches</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
reorder the patches in the repository</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--sibling URL</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify a sibling directory</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--relink</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
relink random internal data to a sibling</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--relink-pristine</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
relink pristine tree (not recommended)</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Advanced options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--compress</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
create compressed patches</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--dont-compress</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't create compressed patches</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--uncompress</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
uncompress patches</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--umask UMASK</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify umask to use when writing</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Optimize can help to improve the performance of your repository in a number of cases.
<P>
Optimize always writes out a fresh copy of the inventory that minimizes
the amount of inventory that need be downloaded when people pull from the
repository.
<P>
Specifically, it breaks up the inventory on the most recent tag. This speeds
up most commands when run remotely, both because a smaller file needs to be
transfered (only the most recent inventory). It also gives a
guarantee that all the patches prior to a given tag are included in that tag,
so less commutation and history traversal is needed. This latter issue can
become very important in large repositories.
<P>
<div class="cmd-opt-hdr">
--checkpoint, --tag
</div>
<P>
If you use the <code>--checkpoint</code> option, optimize creates a checkpoint patch
for a tag. You can specify the tag with the <code>--tag</code> option, or
just let darcs choose the most recent tag. Note that optimize
<code>--checkpoint</code> will fail when used on a ``partial'' repository. Also,
the tag that is to be checkpointed must not be preceded by any patches
that are not included in that tag. If that is the case, no checkpointing
is done.
<P>
The created checkpoint is used by the <code>--partial</code> flag to
<code>get</code> and <code>check</code>. This allows for users to retrieve
a working repository with limited history with a savings of disk
space and bandwidth.
<P>
<div class="cmd-opt-hdr">
--compress, --dont-compress, --uncompress
</div>
<P>
Some compression options are available, and are independent of the
<code>--checkpoint</code> option.
<P>
By default the patches in the repository are compressed. These use less
disk space, which translates into less bandwidth if the repository is accessed
remotely.
<P>
Note that in the darcs-1.0 (also known as ``old fashioned inventory'')
repository format, patches will always have the ``.gz'' extension whether
they are compressed or not.
<P>
You may want to uncompress the patches when you've got enough disk space but
are running out of physical memory.
<P>
If you give the <code>--compress</code> option, optimize will compress all the
patches in the repository. Similarly, if you give the <code>--uncompress</code>,
optimize will decompress all the patches in the repository.
<code>--dont-compress</code> means ``don't compress, but don't uncompress
either''. It would be useful if one of the compression options was provided
as a default and you wanted to override it.
<P>
<div class="cmd-opt-hdr">
--relink
</div>
<P>
The <code>--relink</code> and <code>--relink-pristine</code> options cause Darcs
to relink files from a sibling. See Section <A HREF="node4.html#disk-usage"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]"
SRC="./crossref.png"></A>.
<P>
<div class="cmd-opt-hdr">
--reorder-patches
</div>
<P>
The <code>--reorder-patches</code> option causes Darcs to create an optimal
ordering of its internal patch inventory. This may help to produce shorter
`context' lists when sending patches, and may improve performance for some
other operations as well. You should not run <code>--reorder-patches</code> on a
repository from which someone may be simultaneously pulling or getting, as
this could lead to repository corruption.
<P>
<H1><A NAME="SECTION00790000000000000000">
Undoing, redoing and running in circles</A>
</H1>
<P>
<H2><A NAME="SECTION00791000000000000000">
darcs amend-record</A>
</H2>
<P>
<code>Usage: darcs amend-record [OPTION]... [FILE or DIRECTORY]...</code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--match PATTERN</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select a single patch matching PATTERN</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-p</code></TD>
<TD ALIGN="LEFT"><code>--patch REGEXP</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select a single patch matching REGEXP</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-test</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't run the test script</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--test</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
run the test script</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--leave-test-directory</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't remove the test directory</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--remove-test-directory</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
remove the test directory</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-a</code></TD>
<TD ALIGN="LEFT"><code>--all</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
answer yes to all patches</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-i</code></TD>
<TD ALIGN="LEFT"><code>--interactive</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
prompt user interactively</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-A</code></TD>
<TD ALIGN="LEFT"><code>--author EMAIL</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify author id</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-m</code></TD>
<TD ALIGN="LEFT"><code>--patch-name PATCHNAME</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
name of patch</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--edit-long-comment</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
edit the long comment by default</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--skip-long-comment</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't give a long comment</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--prompt-long-comment</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
prompt for whether to edit the long comment</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-l</code></TD>
<TD ALIGN="LEFT"><code>--look-for-adds</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
look for (non-boring) files that could be added</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--dont-look-for-adds</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't look for any files that could be added [DEFAULT]</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repodir DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository directory in which to run</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Advanced options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--compress</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
create compressed patches</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--dont-compress</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't create compressed patches</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--ignore-times</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't trust the file modification times</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--umask UMASK</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify umask to use when writing</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--set-scripts-executable</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
make scripts executable</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--dont-set-scripts-executable</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't make scripts executable</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Amend-record is used to replace a patch with a newer version with additional
changes.
<P>
WARNINGS: You should ONLY use amend-record on patches which only exist in a
single repository! Also, running amend-record while another user is pulling
from the same repository may cause repository corruption.
<P>
If you provide one or more files or directories as additional arguments to
amend-record, you will only be prompted to changes in those files or
directories.
<P>
The old version of the patch is lost and the new patch will include both the
old and the new changes. This is mostly the same as unrecording the old patch,
fixing the changes and recording a new patch with the same name and
description.
<P>
<code>amend-record</code> will modify the date of the recorded patch.
<P>
If you configure darcs to run a test suite, darcs will run this test on the
amended repository to make sure it is valid. Darcs first creates a pristine
copy of the source tree (in a temporary directory), then it runs the test,
using its return value to decide if the amended change is valid. If the
<code>--set-scripts-executable</code> flag is passed to amend-record, darcs will set
scripts executable in the temporary test directory before running the test.
<P>
<H2><A NAME="SECTION00792000000000000000">
darcs rollback</A>
</H2>
<P>
<code>Usage: darcs rollback [OPTION]... [FILE or DIRECTORY]...</code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--from-match PATTERN</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select changes starting with a patch matching PATTERN</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--from-patch REGEXP</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select changes starting with a patch matching REGEXP</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--from-tag REGEXP</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select changes starting with a tag matching REGEXP</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--last NUMBER</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select the last NUMBER patches</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--matches PATTERN</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select patches matching PATTERN</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-p</code></TD>
<TD ALIGN="LEFT"><code>--patches REGEXP</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select patches matching REGEXP</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-t</code></TD>
<TD ALIGN="LEFT"><code>--tags REGEXP</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select tags matching REGEXP</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-a</code></TD>
<TD ALIGN="LEFT"><code>--all</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
answer yes to all patches</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-i</code></TD>
<TD ALIGN="LEFT"><code>--interactive</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
prompt user interactively</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-A</code></TD>
<TD ALIGN="LEFT"><code>--author EMAIL</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify author id</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-m</code></TD>
<TD ALIGN="LEFT"><code>--patch-name PATCHNAME</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
name of patch</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--edit-long-comment</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
edit the long comment by default</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--skip-long-comment</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't give a long comment</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--prompt-long-comment</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
prompt for whether to edit the long comment</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-test</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't run the test script</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--test</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
run the test script</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--leave-test-directory</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't remove the test directory</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--remove-test-directory</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
remove the test directory</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repodir DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository directory in which to run</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Advanced options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--compress</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
create compressed patches</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--dont-compress</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't create compressed patches</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--umask UMASK</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify umask to use when writing</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Rollback is used to undo the effects of one or more patches without actually
deleting them. Instead, it creates a new patch reversing selected portions.
of those changes. Unlike obliterate and unrecord (which accomplish a similar
goal) rollback is perfectly safe, since it leaves in the repository a record
of its changes.
If you decide you didn't want to roll back a patch
after all, you can reverse its effect by obliterating the rolled-back patch.
<P>
Rollback can actually allow you to roll back a subset of the changes made
by the selected patch or patches. Many of the options available in
rollback behave similarly to the options for unrecord <A HREF="#unrecord"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]"
SRC="./crossref.png"></A> and
record <A HREF="#record"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]"
SRC="./crossref.png"></A>.
<P>
<H2><A NAME="SECTION00793000000000000000"></A>
<A NAME="unrecord"></A>
<BR>
darcs unrecord
</H2>
<P>
<code>Usage: darcs unrecord [OPTION]... </code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--from-match PATTERN</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select changes starting with a patch matching PATTERN</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--from-patch REGEXP</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select changes starting with a patch matching REGEXP</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--from-tag REGEXP</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select changes starting with a tag matching REGEXP</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--last NUMBER</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select the last NUMBER patches</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--matches PATTERN</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select patches matching PATTERN</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-p</code></TD>
<TD ALIGN="LEFT"><code>--patches REGEXP</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select patches matching REGEXP</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-t</code></TD>
<TD ALIGN="LEFT"><code>--tags REGEXP</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select tags matching REGEXP</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-deps</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't automatically fulfill dependencies</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-a</code></TD>
<TD ALIGN="LEFT"><code>--all</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
answer yes to all patches</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-i</code></TD>
<TD ALIGN="LEFT"><code>--interactive</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
prompt user interactively</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repodir DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository directory in which to run</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Advanced options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--compress</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
create compressed patches</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--dont-compress</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't create compressed patches</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--umask UMASK</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify umask to use when writing</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Unrecord does the opposite of record in that it makes the changes from
patches active changes again which you may record or revert later. The
working copy itself will not change.
<P>
Unrecord can be thought of as undo-record.
If a record is followed by an unrecord, everything looks like before
the record; all the previously unrecorded changes are back, and can be
recorded again in a new patch. The unrecorded patch however is actually
removed from your repository, so there is no way to record it again to get
it back.<A NAME="tex2html22"
HREF="footnode.html#foot1868"><SUP><SPAN CLASS="arabic">6</SPAN>.<SPAN CLASS="arabic">6</SPAN></SUP></A>.
<P>
If you want to remove
the changes from the working copy too (where they otherwise will show
up as unrecorded changes again), you'll also need to <code>darcs revert</code>.
To do unrecord and revert in one go, you can use <code>darcs obliterate</code>.
<P>
If you don't revert after unrecording, then the changes made by the
unrecorded patches are left in your working tree. If these patches are
actually from another repository, interaction (either pushes or pulls) with
that repository may be massively slowed down, as darcs tries to cope with
the fact that you appear to have made a large number of changes that
conflict with those present in the other repository. So if you really want
to undo the result of a <SPAN CLASS="textit">pull</SPAN> operation, use obliterate! Unrecord is
primarily intended for when you record a patch, realize it needs just one
more change, but would rather not have a separate patch for just that one
change.
<P>
<P>
<SPAN CLASS="textbf">WARNING:</SPAN> Unrecord should not be run when there is a possibility
that another user may be pulling from the same repository. Attempting to do so
may cause repository corruption.
<P>
<div class="cmd-opt-hdr">
--from-match, --from-patch, --from-tag, --last
</div>
<P>
Usually you only want to unrecord the latest changes,
and almost never would you want to unrecord changes before a tag--you
would have to have unrecorded the tag as well to do that.
Therefore, and for efficiency, darcs only prompts you for the latest patches,
after some optimal tag.
<P>
If you do want to unrecord more patches in one go,
there are the <code>--from</code> and <code>--last</code> options
to set the earliest patch selectable to unrecord.
<P>
<div class="cmd-opt-hdr">
--matches, --patches, --tags, --no-deps
</div>
<P>
The <code>--patches</code>, <code>--matches</code>, <code>--tags</code>, and <code>--no-deps</code>
options can be used to select which patches to unrecord, as described in
subsection <A HREF="#selecting"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]"
SRC="./crossref.png"></A>.
<P>
With these options you can specify
what patch or patches to be prompted for by unrecord.
This is especially useful when you want to unrecord patches with dependencies,
since all the dependent patches (but no others) will be included in the choices.
Or if you use <code>--no-deps</code> you won't be asked about patches that can't be
unrecorded due to depending patches.
<P>
Selecting patches can be slow, so darcs cuts the search at the last
optimized tag. Use the <code>--from</code> or <code>--last</code> options to search
more or fewer patches.
<P>
<H2><A NAME="SECTION00794000000000000000">
darcs obliterate</A>
</H2>
<P>
<code>Usage: darcs obliterate [OPTION]... </code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--from-match PATTERN</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select changes starting with a patch matching PATTERN</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--from-patch REGEXP</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select changes starting with a patch matching REGEXP</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--from-tag REGEXP</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select changes starting with a tag matching REGEXP</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--last NUMBER</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select the last NUMBER patches</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--matches PATTERN</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select patches matching PATTERN</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-p</code></TD>
<TD ALIGN="LEFT"><code>--patches REGEXP</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select patches matching REGEXP</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-t</code></TD>
<TD ALIGN="LEFT"><code>--tags REGEXP</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select tags matching REGEXP</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-deps</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't automatically fulfill dependencies</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-a</code></TD>
<TD ALIGN="LEFT"><code>--all</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
answer yes to all patches</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-i</code></TD>
<TD ALIGN="LEFT"><code>--interactive</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
prompt user interactively</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repodir DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository directory in which to run</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Advanced options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--compress</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
create compressed patches</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--dont-compress</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't create compressed patches</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--ignore-times</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't trust the file modification times</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--umask UMASK</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify umask to use when writing</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Obliterate completely removes recorded patches from your local repository.
The changes will be undone in your working copy and the patches will not be
shown in your changes list anymore.
Beware that you can lose precious code by obliterating!
<P>
Obliterate deletes a patch from the repository <SPAN CLASS="textit">and</SPAN> removes those
changes from the working directory. It is therefore a <SPAN CLASS="textit">very
dangerous</SPAN> command. When there are no local changes, obliterate is
equivalent to an unrecord followed by a revert, except that revert can be
unreverted. In the case of tags, obliterate removes the tag itself, not
any other patches.
<P>
Note that unpull was the old name for obliterate. Unpull is still an
hidden alias for obliterate.
<P>
<SPAN CLASS="textbf">WARNING:</SPAN> Obliterate should not be run when there is a possibility
that another user may be pulling from the same repository. Attempting to do so
may cause repository corruption.
<P>
<div class="cmd-opt-hdr">
--from-match, --from-patch, --from-tag, --last
</div>
<P>
Usually you only want to obliterate the latest changes, and almost never would
you want to obliterate changes before a tag--you would have to have obliterated
the tag as well to do that. Therefore, and for efficiency, darcs only
prompts you for the latest patches, after some optimal tag.
<P>
If you do want to obliterate more patches in one go, there are the
<code>--from</code> and <code>--last</code> options to set the earliest patch
selectable to obliterate.
<P>
<div class="cmd-opt-hdr">
--matches, --patches, --tags, --no-deps
</div>
<P>
The <code>--patches</code>, <code>--matches</code>, <code>--tags</code>, and <code>--no-deps</code>
options can be used to select which patches to obliterate, as described in
subsection <A HREF="#selecting"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]"
SRC="./crossref.png"></A>.
<P>
With these options you can specify what patch or patches to be prompted for
by obliterate. This is especially useful when you want to obliterate patches with
dependencies, since all the dependent patches (but no others) will be
included in the choices. Or if you use <code>--no-deps</code> you won't be asked
about patches that can't be obliterated due to depending patches.
<P>
Selecting patches can be slow, so darcs cuts the search at the last
optimized tag. Use the <code>--from</code> or <code>--last</code> options to search
more or fewer patches.
<P>
<H2><A NAME="SECTION00795000000000000000">
darcs revert</A>
</H2>
<P>
<code>Usage: darcs revert [OPTION]... [FILE or DIRECTORY]...</code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"><code>-a</code></TD>
<TD ALIGN="LEFT"><code>--all</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
answer yes to all patches</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-i</code></TD>
<TD ALIGN="LEFT"><code>--interactive</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
prompt user interactively</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repodir DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository directory in which to run</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Advanced options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--ignore-times</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't trust the file modification times</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--umask UMASK</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify umask to use when writing</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Revert is used to undo changes made to the working copy which have
not yet been recorded. You will be prompted for which changes you
wish to undo. The last revert can be undone safely using the unrevert
command if the working copy was not modified in the meantime.
The actions of a revert may be reversed using the
unrevert command (see subsection <A HREF="#unrevert"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]"
SRC="./crossref.png"></A>). However, if you've made
changes since the revert your mileage may vary, so please be careful.
<P>
You can give revert optional arguments indicating files or directories. If
you do so it will only prompt you to revert changes in those files or in
files in those directories.
<P>
<H2><A NAME="SECTION00796000000000000000"></A><A NAME="unrevert"></A>
<BR>
darcs unrevert
</H2>
<P>
<code>Usage: darcs unrevert [OPTION]... </code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--ignore-times</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't trust the file modification times</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-a</code></TD>
<TD ALIGN="LEFT"><code>--all</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
answer yes to all patches</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-i</code></TD>
<TD ALIGN="LEFT"><code>--interactive</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
prompt user interactively</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repodir DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository directory in which to run</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Advanced options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--umask UMASK</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify umask to use when writing</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Unrevert is used to undo the results of a revert command. It is only
guaranteed to work properly if you haven't made any changes since the
revert was performed.
<P>
The command makes a best effort to merge the unreversion with any changes
you have since made. In fact, unrevert should even work if you've recorded
changes since reverting.
<P>
<H1><A NAME="SECTION007100000000000000000">
Advanced examination of the repository</A>
</H1>
<P>
<H2><A NAME="SECTION007101000000000000000">
darcs diff</A>
</H2>
<P>
<code>Usage: darcs diff [OPTION]... [FILE or DIRECTORY]...</code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--to-match PATTERN</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select changes up to a patch matching PATTERN</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--to-patch REGEXP</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select changes up to a patch matching REGEXP</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--to-tag REGEXP</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select changes up to a tag matching REGEXP</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--from-match PATTERN</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select changes starting with a patch matching PATTERN</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--from-patch REGEXP</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select changes starting with a patch matching REGEXP</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--from-tag REGEXP</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select changes starting with a tag matching REGEXP</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--match PATTERN</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select a single patch matching PATTERN</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-p</code></TD>
<TD ALIGN="LEFT"><code>--patch REGEXP</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select a single patch matching REGEXP</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--last NUMBER</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select the last NUMBER patches</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--diff-command COMMAND</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify diff command (ignores -diff-opts)</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--diff-opts OPTIONS</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
options to pass to diff</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-u</code></TD>
<TD ALIGN="LEFT"><code>--unified</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
pass -u option to diff</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repodir DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository directory in which to run</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--store-in-memory</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
do patch application in memory rather than on disk</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Diff can be used to create a diff between two versions which are in your
repository. Specifying just -from-patch will get you a diff against
your working copy. If you give diff no version arguments, it gives
you the same information as whatsnew except that the patch is
formatted as the output of a diff command
<P>
<div class="cmd-opt-hdr">
--diff-opts
</div>
<P>
Diff calls an external ``diff'' command to do the actual work, and passes
any unrecognized flags to this diff command. Thus you can call
<PRE>
% darcs diff -t 0.9.8 -t 0.9.10 -- -u
</PRE>
to get a diff in the unified format. Actually, thanks to the wonders of
getopt you need the ``<code>--</code>'' shown above before any arguments to diff.
You can also specify additional arguments to diff using the
<code>--diff-opts</code> flag. The above command would look like this:
<PRE>
% darcs diff --diff-opts -u -t 0.9.8 -t 0.9.10
</PRE>
This may not seem like an improvement, but it really pays off when you want
to always give diff the same options. You can do this by adding
<PRE>
% diff diff-opts -udp
</PRE>
to your <code>_darcs/prefs/defaults</code> file.
<P>
If you want to view only the differences to one or more files, you can do
so with a command such as
<PRE>
% darcs diff foo.c bar.c baz/
</PRE>
<P>
<div class="cmd-opt-hdr">
--diff-command
</div>
<P>
You can use a different program to view differences by including
the flag <code>--diff-command</code>, e.g.
<PRE>
--diff-command 'opendiff %1 %2'.
</PRE>
The <code>%1</code> and <code>%2</code> are replaced with the two versions to be
merged. The above example works with the FileMerge.app tool that comes with
Apple's developer tools. To use xxdiff, you would use
<PRE>
--diff-command 'xxdiff %1 %2'
</PRE>
To use <code>kdiff3</code>, you can use
<PRE>
--diff-command 'kdiff3 %1 %2'
</PRE>
<P>
Note that the command is split into space-separated words and the first one is
<code>exec</code>ed with the rest as arguments--it is not a shell command. Also
the substitution of the <code>%</code> escapes is only done on complete words.
See <A HREF="#resolution"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]"
SRC="./crossref.png"></A> for how you might work around this fact, for example,
with Emacs' Ediff package.
<P>
Note also that the <code>--diff-opts</code> flag is ignored if you use this option.
<P>
<H2><A NAME="SECTION007102000000000000000"></A>
<A NAME="annotate"></A>
<BR>
darcs annotate
</H2>
<P>
<code>Usage: darcs annotate [OPTION]... [FILE or DIRECTORY]...</code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"><code>-s</code></TD>
<TD ALIGN="LEFT"><code>--summary</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
summarize changes</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-summary</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't summarize changes</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-u</code></TD>
<TD ALIGN="LEFT"><code>--unified</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
output patch in a darcs-specific format similar to diff -u</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--human-readable</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
give human-readable output</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--xml-output</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
generate XML formatted output</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--match PATTERN</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select a single patch matching PATTERN</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-p</code></TD>
<TD ALIGN="LEFT"><code>--patch REGEXP</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select a single patch matching REGEXP</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-t</code></TD>
<TD ALIGN="LEFT"><code>--tag REGEXP</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select tag matching REGEXP</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--creator-hash HASH</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify hash of creator patch (see docs)</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repodir DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository directory in which to run</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Display which patch last modified something.
Annotate displays which patches created or last modified a directory
file or line. It can also display the contents of a particular patch
in darcs format.
<P>
<div class="cmd-opt-hdr">
--human-readable, --summary, --unified, --xml--output
</div>
<P>
When called with just a patch name, annotate outputs the patch in darcs format,
which is the same as <code>--human-readable</code>.
<P>
<code>--xml-output</code> is the alternative to <code>--human-readable</code>.
<P>
<code>--summary</code> can be used with either the <code>--xml-output</code> or the
<code>--human-readable</code> options to alter the results. It is documented
fully in the `common options' portion of the manual.
<P>
Giving the <code>--unified</code> flag implies <code>--human-readable</code>, and causes
the output to remain in a darcs-specific format that is similar to that produced
by <code>diff --unified</code>.
<P>
If a directory name is given, annotate will output details of the last
modifying patch for each file in the directory and the directory itself. The
details look like this:
<P>
<PRE>
# Created by [bounce handling patch
# mark**20040526202216] as ./test/m7/bounce_handling.pl
bounce_handling.pl
</PRE>
<P>
If a patch name and a directory are given, these details are output for the time after
that patch was applied. If a directory and a tag name are given, the
details of the patches involved in the specified tagged version will be output.
<P>
If a file name is given, the last modifying patch details of that file will be output, along
with markup indicating patch details when each line was last (and perhaps next) modified.
<P>
<div class="cmd-opt-hdr">
--creator-hash HASH
</div>
<P>
The <code>--creator-hash</code> option should only be used in combination with a
file or directory to be annotated. In this case, the name of that file or
directory is interpreted to be its name <SPAN CLASS="textit">at the time it was created</SPAN>,
and the hash given along with <code>--creator-hash</code> indicates the patch
that created the file or directory. This allows you to (relatively) easily
examine a file even if it has been renamed multiple times.
<P>
<H2><A NAME="SECTION007103000000000000000">
darcs show</A>
</H2>
<P>
The show command provides access to several subcommands which can be
used to investigate the state of a repository.
<P>
<H3><A NAME="SECTION007103100000000000000">
darcs show authors</A>
</H3>
<P>
<code>Usage: darcs show authors [OPTION]... </code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repodir DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository directory in which to run</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
The authors command writes a list of all patch authors in the repository to
standard output.
<P>
<H3><A NAME="SECTION007103200000000000000">
darcs show contents</A>
</H3>
<P>
<code>Usage: darcs show contents [OPTION]... [FILE]...</code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--match PATTERN</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select a single patch matching PATTERN</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-p</code></TD>
<TD ALIGN="LEFT"><code>--patch REGEXP</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select a single patch matching REGEXP</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-t</code></TD>
<TD ALIGN="LEFT"><code>--tag REGEXP</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
select tag matching REGEXP</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repodir DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository directory in which to run</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Show contents can be used to display an earlier version of some file(s).
If you give show contents no version arguments, it displays the recorded
version of the file(s).
<P>
<H3><A NAME="SECTION007103300000000000000"></A>
<A NAME="show-files"></A>
<BR>
darcs show files
</H3>
<P>
<code>Usage: darcs show files [OPTION]... </code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--files</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
include files in output [DEFAULT]</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-files</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't include files in output</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--directories</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
include directories in output [DEFAULT]</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-directories</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't include directories in output</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--pending</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
reflect pending patches in output [DEFAULT]</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-pending</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
only included recorded patches in output</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"><code>-0</code></TD>
<TD ALIGN="LEFT"><code>--null</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
separate file names by NUL characters</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repodir DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository directory in which to run</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
The files command lists the version-controlled files in the
working copy. The similar manifest command, lists the same
files, excluding any directories.
<P>
By default (and if the <code>--pending</code> option is specified),
the effect of pending patches on the repository is taken into account.
In other words, if you add a file using <TT>darcs add</TT>, it
immediately appears in the output of <TT>query manifest</TT>, even if it
is not yet recorded. If you specify the <code>--no-pending</code> option,
<TT>query manifest</TT> will only list recorded files (and directories).
<P>
The <code>--files</code> and <code>--directories</code> options control whether
files and directories are included in the output. The
<code>--no-files</code> and <code>--no-directories</code> options have the
reverse effect. The default is to include files, but not directories.
<P>
If you specify the <code>--null</code> option, the file names are written to
standard output in unescaped form, and separated by ASCII NUL bytes.
This format is suitable for further automatic processing (for example,
using <code>xargs -0</code>).
<P>
<H3><A NAME="SECTION007103400000000000000">
darcs show tags</A>
</H3>
<P>
<code>Usage: darcs show tags [OPTION]... </code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repodir DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository directory in which to run</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
The tags command writes a list of all tags in the repository to standard
output.
<P>
Tab characters (ASCII character 9) in tag names are changed to spaces
for better interoperability with shell tools. A warning is printed if
this happens.
<P>
<H3><A NAME="SECTION007103500000000000000">
darcs show repo</A>
</H3>
<P>
<code>Usage: darcs show repo [OPTION]... </code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repodir DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository directory in which to run</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--files</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
include files in output [DEFAULT]</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-files</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't include files in output</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--xml-output</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
generate XML formatted output</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
The <code>show repo</code> displays information about
the current repository: the location, the type, etc.
<P>
This is provided as informational output for two purposes: curious
users and scripts invoking darcs. For the latter, this information
can be parsed to facilitate the script; for example,
<code>darcs show repo | grep Root: | awk {print $2}</code>
can be used to locate the
top-level <code>_darcs</code> directory from anyplace within a darcs repository
working directory.
<P>
<div class="cmd-opt-hdr">
--files, --no-files
</div>
<P>
If the <code>--files</code> option is specified (the default), then the
<code>show repo</code> operation will read patch information from the
repository and display the number of patches in the repository. The
<code>--no-files</code> option can be used to suppress this operation (and
improve performance).
<P>
<div class="cmd-opt-hdr">
--human-readable, --xml-output
</div>
<P>
By default, the <code>show repo</code> displays output in human readable
form, but the <code>--xml-output</code> option can be used to obtain
XML-formatted to facilitate regular parsing by external tools.
<P>
<H1><A NAME="SECTION007110000000000000000">
Rarely needed and obscure commands</A>
</H1>
<P>
<H2><A NAME="SECTION007111000000000000000">
darcs convert</A>
</H2>
<P>
<code>Usage: darcs convert [OPTION]... <REPOSITORY> [<DIRECTORY>]</code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repo-name DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
path of output directory</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--set-scripts-executable</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
make scripts executable</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--dont-set-scripts-executable</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't make scripts executable</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Advanced options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--no-ssh-cm</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't use SSH ControlMaster feature [DEFAULT]</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--ssh-cm</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
use SSH ControlMaster feature</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
You may specify the name of the repository created by providing a second
argument to convert, which is a directory name.
<P>
<H2><A NAME="SECTION007112000000000000000">
darcs mark-conflicts</A>
</H2>
<P>
<code>Usage: darcs mark-conflicts [OPTION]... </code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--ignore-times</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't trust the file modification times</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repodir DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository directory in which to run</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Advanced options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--umask UMASK</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify umask to use when writing</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Mark-conflicts is used to mark and resolve any conflicts that may exist in a
repository. Note that this trashes any unrecorded changes in the working
copy.
<P>
<H2><A NAME="SECTION007113000000000000000">
darcs dist</A>
</H2>
<P>
<code>Usage: darcs dist [OPTION]... </code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"><code>-d</code></TD>
<TD ALIGN="LEFT"><code>--dist-name DISTNAME</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
name of version</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repodir DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository directory in which to run</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Create a distribution tarball.
<P>
Dist is a handy tool for implementing a "make dist" target in your
makefile. It creates a tarball of the recorded edition of your tree.
Basically, you will typically use it in a makefile
rule such as
<PRE>
dist:
darcs dist --dist-name darcs-`./darcs --version`
</PRE>
<code>darcs dist</code> then simply creates a clean copy of the source tree,
which it then tars and gzips. If you use programs such as autoconf or
automake, you really should run them on the clean tree before tarring it up
and distributing it. You can do this using the pref value ``predist'',
which is a shell command that is run prior to tarring up the distribution:
<PRE>
% darcs setpref predist "autoconf && automake"
</PRE>
<P>
<H2><A NAME="SECTION007114000000000000000">
darcs trackdown</A>
</H2>
<P>
<code>Usage: darcs trackdown [OPTION]... [[INITIALIZATION] COMMAND]</code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repodir DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository directory in which to run</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Advanced options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--set-scripts-executable</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
make scripts executable</TD></TR>
</TABLE></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--dont-set-scripts-executable</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
don't make scripts executable</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Trackdown tries to find the most recent version in the repository which
passes a test. Given no arguments, it uses the default repository test.
Given one argument, it treats it as a test command. Given two arguments,
the first is an initialization command with is run only once, and the
second is the test command.
<P>
Trackdown is helpful for locating when something was broken. It creates
a temporary directory with the latest repository content in it and cd to it.
First, and only once, it runs the initialization command if any,
for example
<PRE>
'autoconf; ./configure >/dev/null'
</PRE>
Then it runs the test command, for example
<PRE>
'make && cd tests && sh /tmp/test.sh'
</PRE>
While the test command exits with an error return code, darcs
``unapplies'' one patch from the version controlled files to retrieve
an earlier version, and repeats the test command. If the test command
finally succeeds, the name of the hunted down patch is found in the
output before the last test run.
<P>
FIXME: It is
still rather primitive. Currently it just goes back over the history in
reverse order trying each version. I'd like for it to explore different
patch combinations, to try to find the minimum number of patches that you
would need to obliterate in order to make the test succeed.
<P>
FIXME: I also would like to add an interface by which you can tell it which
patches it should consider not including. Without such a feature, the
following command:
<PRE>
% darcs trackdown 'make && false'
</PRE>
would result in compiling every version in the repository-which is a
rather tedious prospect.
<P>
<H3><A NAME="SECTION007114100000000000000">
Example usage</A>
</H3>
If you want to find the last version of darcs that had a FIXME note in the
file Record.lhs, you could run
<PRE>
% darcs trackdown 'grep FIXME Record.lhs'
</PRE>
<P>
To find the latest version that compiles, you can run
<PRE>
% darcs trackdown 'autoconf' './configure && make'
</PRE>
<P>
Trackdown can also be used to see how other features of the code changed
with time. For example
<PRE>
% darcs trackdown 'autoconf; ./configure' \
"make darcs > /dev/null && cd ~/darcs && time darcs check && false"
</PRE>
would let you see how long `darcs check' takes to run on each previous
version of darcs that will actually compile. The ``<code>&& false</code>''
ensures that trackdown keeps going.
<P>
<H2><A NAME="SECTION007115000000000000000">
darcs repair</A>
</H2>
<P>
<code>Usage: darcs repair [OPTION]... </code>
<P>
Options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--repodir DIRECTORY</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify the repository directory in which to run</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Advanced options:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><code>--umask UMASK</code></TD>
<TD ALIGN="LEFT"><TABLE WIDTH="317">
<TR><TD>
specify umask to use when writing</TD></TR>
</TABLE></TD>
</TR>
</TABLE>
<P>
Repair attempts to fix corruption that may have entered your
repository.
<P>
Repair currently will only repair damage to the pristine tree.
Fortunately this is just the sort of corruption that is most
likely to happen.
<P>
<P>
<DIV CLASS="navigation"><HR>
<!--Navigation Panel-->
<A NAME="tex2html440"
HREF="node8.html">
<IMG WIDTH="22" HEIGHT="22" title="Next" ALIGN="BOTTOM" BORDER="0" ALT="next"
SRC="./next.png"></A>
<A NAME="tex2html436"
HREF="darcs.html">
<IMG WIDTH="22" HEIGHT="22" title="Up" ALIGN="BOTTOM" BORDER="0" ALT="up"
SRC="./up.png"></A>
<A NAME="tex2html430"
HREF="node6.html">
<IMG WIDTH="22" HEIGHT="22" title="Previous" ALIGN="BOTTOM" BORDER="0" ALT="previous"
SRC="./prev.png"></A>
<A NAME="tex2html438"
HREF="node1.html">
<IMG WIDTH="22" HEIGHT="22" title="Contents" ALIGN="BOTTOM" BORDER="0" ALT="contents"
SRC="./contents.png"></A>
<BR>
<B> Next:</B> <A NAME="tex2html441"
HREF="node8.html">Theory of patches</A>
<B> Up:</B> <A NAME="tex2html437"
HREF="darcs.html">Darcs 2.0.2 (unknown) Darcs</A>
<B> Previous:</B> <A NAME="tex2html431"
HREF="node6.html">Best practices</A>
<B> <A NAME="tex2html439"
HREF="node1.html">Contents</A></B> </DIV>
<!--End of Navigation Panel-->
<ADDRESS>
David Roundy
2008-06-23
</ADDRESS>
</BODY>
</HTML>
|