mercurial/hg.py
changeset 31178 41a9edc5d00f
parent 31177 696e321b304d
child 31228 4cc3797aa59c
--- a/mercurial/hg.py	Mon Feb 13 16:03:05 2017 -0800
+++ b/mercurial/hg.py	Mon Feb 13 00:05:55 2017 -0800
@@ -743,12 +743,13 @@
      * none: don't check (merge working directory changes into destination)
      * linear: check that update is linear before merging working directory
                changes into destination
+     * noconflict: check that the update does not result in file merges
 
     This returns whether conflict is detected at updating or not.
     """
     if updatecheck is None:
         updatecheck = ui.config('experimental', 'updatecheck')
-        if updatecheck not in ('abort', 'none', 'linear'):
+        if updatecheck not in ('abort', 'none', 'linear', 'noconflict'):
             # If not configured, or invalid value configured
             updatecheck = 'linear'
     with repo.wlock():