On Mon, 27 Feb 2017 16:31:28 -0800, Martin von Zweigbergk via Mercurial-devel 
wrote:
> # HG changeset patch
> # User Martin von Zweigbergk <martinv...@google.com>
> # Date 1486973155 28800
> #      Mon Feb 13 00:05:55 2017 -0800
> # Node ID c88aa4bc36ee81b0837d2949501d6b4fcf825c38
> # Parent  ae37f4578e3af6fd4cb7c29c9ab06ad0efd726da
> update: allow setting default update check to "noconflict"

> @@ -1593,6 +1599,13 @@
>              repo, wc, p2, pas, branchmerge, force, mergeancestor,
>              followcopies, matcher=matcher, mergeforce=mergeforce)
>  
> +        if updatecheck == 'noconflict':
> +            for f, (m, args, msg) in actionbyfile.iteritems():
> +                if m not in ('g', 'k', 'r'):
> +                    msg = _("uncommitted changes")
> +                    hint = _("commit or update --merge to allow merge")
> +                    raise error.Abort(msg, hint=hint)

Also queued this, thanks. I'm not perfectly sure if this ('g', 'k', 'r') list
is exhaustive, but it would go safer side in case it lacks something.
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to