Show More
@@ -140,9 +140,8 b' def _picktool(repo, ui, path, binary, sy' | |||
|
140 | 140 | strictcheck = ui.configbool('merge', 'strict-capability-check') |
|
141 | 141 | |
|
142 | 142 | def hascapability(tool, capability, strict=False): |
|
143 |
if |
|
|
144 |
|
|
|
145 | return True | |
|
143 | if tool in internals: | |
|
144 | return strict and internals[tool].capabilities.get(capability) | |
|
146 | 145 | return _toolbool(ui, tool, capability) |
|
147 | 146 | |
|
148 | 147 | def supportscd(tool): |
@@ -1897,9 +1897,11 b' checked strictly.' | |||
|
1897 | 1897 | (for ui.merge, ignored unintentionally) |
|
1898 | 1898 | |
|
1899 | 1899 | $ hg merge 9 \ |
|
1900 | > --config merge-tools.:other.binary=true \ | |
|
1900 | 1901 | > --config ui.merge=:other |
|
1901 | 1902 | tool :other (for pattern b) can't handle binary |
|
1902 | 1903 | tool true can't handle binary |
|
1904 | tool :other can't handle binary | |
|
1903 | 1905 |
|
|
1904 | 1906 | no tool found to merge b |
|
1905 | 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 | 1920 | (for merge-patterns) |
|
1919 | 1921 | |
|
1920 | 1922 | $ hg merge 9 --config merge.strict-capability-check=true \ |
|
1923 | > --config merge-tools.:merge-other.binary=true \ | |
|
1921 | 1924 | > --config merge-patterns.b=:merge-other \ |
|
1922 | 1925 | > --config merge-patterns.re:[a-z]=:other |
|
1923 | 1926 |
|
@@ -1987,6 +1990,7 b' capability)' | |||
|
1987 | 1990 | |
|
1988 | 1991 | $ hg debugpickmergetool \ |
|
1989 | 1992 | > -r 6d00b3726f6e \ |
|
1993 | > --config merge-tools.:merge-other.symlink=true \ | |
|
1990 | 1994 | > --config merge-patterns.f=:merge-other \ |
|
1991 | 1995 | > --config merge-patterns.re:[f]=:merge-local \ |
|
1992 | 1996 | > --config merge-patterns.re:[a-z]=:other |
@@ -1994,6 +1998,7 b' capability)' | |||
|
1994 | 1998 | |
|
1995 | 1999 | $ hg debugpickmergetool \ |
|
1996 | 2000 | > -r 6d00b3726f6e \ |
|
2001 | > --config merge-tools.:other.symlink=true \ | |
|
1997 | 2002 | > --config ui.merge=:other |
|
1998 | 2003 | f = :prompt |
|
1999 | 2004 | |
@@ -2002,6 +2007,7 b' checked striclty)' | |||
|
2002 | 2007 | |
|
2003 | 2008 | $ hg debugpickmergetool --config merge.strict-capability-check=true \ |
|
2004 | 2009 | > -r 6d00b3726f6e \ |
|
2010 | > --config merge-tools.:merge-other.symlink=true \ | |
|
2005 | 2011 | > --config merge-patterns.f=:merge-other \ |
|
2006 | 2012 | > --config merge-patterns.re:[f]=:merge-local \ |
|
2007 | 2013 | > --config merge-patterns.re:[a-z]=:other |
@@ -2012,6 +2018,12 b' checked striclty)' | |||
|
2012 | 2018 | > --config ui.merge=:other |
|
2013 | 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 | 2027 |
|
|
2016 | 2028 |
|
|
2017 | 2029 | (--verbose shows some configurations) |
General Comments 0
You need to be logged in to leave comments.
Login now