Show More
@@ -989,6 +989,12 b' def loadinternalmerge(ui, extname, regis' | |||||
989 | internals['internal:' + name] = func |
|
989 | internals['internal:' + name] = func | |
990 | internalsdoc[fullname] = func |
|
990 | internalsdoc[fullname] = func | |
991 |
|
991 | |||
|
992 | capabilities = sorted([k for k, v in func.capabilities.items() if v]) | |||
|
993 | if capabilities: | |||
|
994 | capdesc = _("(actual capabilities: %s)") % ', '.join(capabilities) | |||
|
995 | func.__doc__ = (func.__doc__ + | |||
|
996 | pycompat.sysstr("\n\n %s" % capdesc)) | |||
|
997 | ||||
992 | # load built-in merge tools explicitly to setup internalsdoc |
|
998 | # load built-in merge tools explicitly to setup internalsdoc | |
993 | loadinternalmerge(None, None, internaltool) |
|
999 | loadinternalmerge(None, None, internaltool) | |
994 |
|
1000 |
@@ -36,8 +36,9 b' merge tools are:' | |||||
36 |
|
36 | |||
37 | .. internaltoolsmarker |
|
37 | .. internaltoolsmarker | |
38 |
|
38 | |||
39 |
Internal tools are always available and do not require a GUI but will |
|
39 | Internal tools are always available and do not require a GUI but will | |
40 | not handle symlinks or binary files. |
|
40 | by default not handle symlinks or binary files. See next section for | |
|
41 | detail about "actual capabilities" described above. | |||
41 |
|
42 | |||
42 | Choosing a merge tool |
|
43 | Choosing a merge tool | |
43 | ===================== |
|
44 | ===================== |
@@ -1829,18 +1829,26 b' Test dynamic list of merge tools only sh' | |||||
1829 | This implies premerge. Therefore, files aren't dumped, if premerge runs |
|
1829 | This implies premerge. Therefore, files aren't dumped, if premerge runs | |
1830 | successfully. Use :forcedump to forcibly write files out. |
|
1830 | successfully. Use :forcedump to forcibly write files out. | |
1831 |
|
1831 | |||
|
1832 | (actual capabilities: binary, symlink) | |||
|
1833 | ||||
1832 | ":fail" |
|
1834 | ":fail" | |
1833 | Rather than attempting to merge files that were modified on both |
|
1835 | Rather than attempting to merge files that were modified on both | |
1834 | branches, it marks them as unresolved. The resolve command must be used |
|
1836 | branches, it marks them as unresolved. The resolve command must be used | |
1835 | to resolve these conflicts. |
|
1837 | to resolve these conflicts. | |
1836 |
|
1838 | |||
|
1839 | (actual capabilities: binary, symlink) | |||
|
1840 | ||||
1837 | ":forcedump" |
|
1841 | ":forcedump" | |
1838 | Creates three versions of the files as same as :dump, but omits |
|
1842 | Creates three versions of the files as same as :dump, but omits | |
1839 | premerge. |
|
1843 | premerge. | |
1840 |
|
1844 | |||
|
1845 | (actual capabilities: binary, symlink) | |||
|
1846 | ||||
1841 | ":local" |
|
1847 | ":local" | |
1842 | Uses the local 'p1()' version of files as the merged version. |
|
1848 | Uses the local 'p1()' version of files as the merged version. | |
1843 |
|
1849 | |||
|
1850 | (actual capabilities: binary, symlink) | |||
|
1851 | ||||
1844 | ":merge" |
|
1852 | ":merge" | |
1845 | Uses the internal non-interactive simple merge algorithm for merging |
|
1853 | Uses the internal non-interactive simple merge algorithm for merging | |
1846 | files. It will fail if there are any conflicts and leave markers in the |
|
1854 | files. It will fail if there are any conflicts and leave markers in the | |
@@ -1864,10 +1872,14 b' Test dynamic list of merge tools only sh' | |||||
1864 | ":other" |
|
1872 | ":other" | |
1865 | Uses the other 'p2()' version of files as the merged version. |
|
1873 | Uses the other 'p2()' version of files as the merged version. | |
1866 |
|
1874 | |||
|
1875 | (actual capabilities: binary, symlink) | |||
|
1876 | ||||
1867 | ":prompt" |
|
1877 | ":prompt" | |
1868 | Asks the user which of the local 'p1()' or the other 'p2()' version to |
|
1878 | Asks the user which of the local 'p1()' or the other 'p2()' version to | |
1869 | keep as the merged version. |
|
1879 | keep as the merged version. | |
1870 |
|
1880 | |||
|
1881 | (actual capabilities: binary, symlink) | |||
|
1882 | ||||
1871 | ":tagmerge" |
|
1883 | ":tagmerge" | |
1872 | Uses the internal tag merge algorithm (experimental). |
|
1884 | Uses the internal tag merge algorithm (experimental). | |
1873 |
|
1885 | |||
@@ -1877,7 +1889,8 b' Test dynamic list of merge tools only sh' | |||||
1877 | markers are inserted. |
|
1889 | markers are inserted. | |
1878 |
|
1890 | |||
1879 | Internal tools are always available and do not require a GUI but will by |
|
1891 | Internal tools are always available and do not require a GUI but will by | |
1880 | default not handle symlinks or binary files. |
|
1892 | default not handle symlinks or binary files. See next section for detail | |
|
1893 | about "actual capabilities" described above. | |||
1881 |
|
1894 | |||
1882 | Choosing a merge tool |
|
1895 | Choosing a merge tool | |
1883 | ===================== |
|
1896 | ===================== |
General Comments 0
You need to be logged in to leave comments.
Login now