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