Mercurial > hg-stable
diff mercurial/help/config.txt @ 27742:6b639caa1652
merge: split up checks for unknown and ignored files that differ
In some real-world cases it is preferable to allow overwriting ignored files
while continuing to abort on unknown files. This primarily happens when we're
replacing build artifacts (which are ignored) with checked in files, but
continuing to abort on differing files that aren't ignored.
We're redefining merge.checkunknown to only control the behavior for files
that aren't ignored. That's fine because this config was only very recently
introduced and has not made its way into any Mercurial releases yet.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Tue, 12 Jan 2016 18:38:49 -0800 |
parents | d6d3cf5fda6f |
children | f0e9f38d250f |
line wrap: on
line diff
--- a/mercurial/help/config.txt Tue Jan 12 18:17:07 2016 -0800 +++ b/mercurial/help/config.txt Tue Jan 12 18:38:49 2016 -0800 @@ -990,14 +990,20 @@ This section specifies behavior during merges and updates. -``checkunknown`` - Controls behavior when an unknown file on disk has the same name as a tracked +``checkignored`` + Controls behavior when an ignored file on disk has the same name as a tracked file in the changeset being merged or updated to, and has different contents. Options are ``abort``, ``warn`` and ``ignore``. With ``abort``, abort on such files. With ``warn``, warn on such files and back them up as .orig. With ``ignore``, don't print a warning and back them up as .orig. (default: ``abort``) +``checkunknown`` + Controls behavior when an unknown file that isn't ignored has the same name + as a tracked file in the changeset being merged or updated to, and has + different contents. Similar to ``merge.checkignored``, except for files that + are not ignored. (default: ``abort``) + ``merge-patterns`` ------------------