##// END OF EJS Templates
filemerge: make capability check for internal tools ignore merge-tools section...
FUJIWARA Katsunori -
r39302:82555d71 default
parent child Browse files
Show More
@@ -140,9 +140,8 b' def _picktool(repo, ui, path, binary, sy'
140 strictcheck = ui.configbool('merge', 'strict-capability-check')
140 strictcheck = ui.configbool('merge', 'strict-capability-check')
141
141
142 def hascapability(tool, capability, strict=False):
142 def hascapability(tool, capability, strict=False):
143 if strict and tool in internals:
143 if tool in internals:
144 if internals[tool].capabilities.get(capability):
144 return strict and internals[tool].capabilities.get(capability)
145 return True
146 return _toolbool(ui, tool, capability)
145 return _toolbool(ui, tool, capability)
147
146
148 def supportscd(tool):
147 def supportscd(tool):
@@ -1897,9 +1897,11 b' checked strictly.'
1897 (for ui.merge, ignored unintentionally)
1897 (for ui.merge, ignored unintentionally)
1898
1898
1899 $ hg merge 9 \
1899 $ hg merge 9 \
1900 > --config merge-tools.:other.binary=true \
1900 > --config ui.merge=:other
1901 > --config ui.merge=:other
1901 tool :other (for pattern b) can't handle binary
1902 tool :other (for pattern b) can't handle binary
1902 tool true can't handle binary
1903 tool true can't handle binary
1904 tool :other can't handle binary
1903 tool false can't handle binary
1905 tool false can't handle binary
1904 no tool found to merge b
1906 no tool found to merge b
1905 keep (l)ocal [working copy], take (o)ther [merge rev], or leave (u)nresolved for b? u
1907 keep (l)ocal [working copy], take (o)ther [merge rev], or leave (u)nresolved for b? u
@@ -1918,6 +1920,7 b' internal merge tools is checked strictly'
1918 (for merge-patterns)
1920 (for merge-patterns)
1919
1921
1920 $ hg merge 9 --config merge.strict-capability-check=true \
1922 $ hg merge 9 --config merge.strict-capability-check=true \
1923 > --config merge-tools.:merge-other.binary=true \
1921 > --config merge-patterns.b=:merge-other \
1924 > --config merge-patterns.b=:merge-other \
1922 > --config merge-patterns.re:[a-z]=:other
1925 > --config merge-patterns.re:[a-z]=:other
1923 tool :merge-other (for pattern b) can't handle binary
1926 tool :merge-other (for pattern b) can't handle binary
@@ -1987,6 +1990,7 b' capability)'
1987
1990
1988 $ hg debugpickmergetool \
1991 $ hg debugpickmergetool \
1989 > -r 6d00b3726f6e \
1992 > -r 6d00b3726f6e \
1993 > --config merge-tools.:merge-other.symlink=true \
1990 > --config merge-patterns.f=:merge-other \
1994 > --config merge-patterns.f=:merge-other \
1991 > --config merge-patterns.re:[f]=:merge-local \
1995 > --config merge-patterns.re:[f]=:merge-local \
1992 > --config merge-patterns.re:[a-z]=:other
1996 > --config merge-patterns.re:[a-z]=:other
@@ -1994,6 +1998,7 b' capability)'
1994
1998
1995 $ hg debugpickmergetool \
1999 $ hg debugpickmergetool \
1996 > -r 6d00b3726f6e \
2000 > -r 6d00b3726f6e \
2001 > --config merge-tools.:other.symlink=true \
1997 > --config ui.merge=:other
2002 > --config ui.merge=:other
1998 f = :prompt
2003 f = :prompt
1999
2004
@@ -2002,6 +2007,7 b' checked striclty)'
2002
2007
2003 $ hg debugpickmergetool --config merge.strict-capability-check=true \
2008 $ hg debugpickmergetool --config merge.strict-capability-check=true \
2004 > -r 6d00b3726f6e \
2009 > -r 6d00b3726f6e \
2010 > --config merge-tools.:merge-other.symlink=true \
2005 > --config merge-patterns.f=:merge-other \
2011 > --config merge-patterns.f=:merge-other \
2006 > --config merge-patterns.re:[f]=:merge-local \
2012 > --config merge-patterns.re:[f]=:merge-local \
2007 > --config merge-patterns.re:[a-z]=:other
2013 > --config merge-patterns.re:[a-z]=:other
@@ -2012,6 +2018,12 b' checked striclty)'
2012 > --config ui.merge=:other
2018 > --config ui.merge=:other
2013 f = :other
2019 f = :other
2014
2020
2021 $ hg debugpickmergetool --config merge.strict-capability-check=true \
2022 > -r 6d00b3726f6e \
2023 > --config merge-tools.:merge-other.symlink=true \
2024 > --config ui.merge=:merge-other
2025 f = :prompt
2026
2015 #endif
2027 #endif
2016
2028
2017 (--verbose shows some configurations)
2029 (--verbose shows some configurations)
General Comments 0
You need to be logged in to leave comments. Login now