Mercurial > hg-stable
changeset 45608:00402df57db7
updaterepo: add deprecation warning
We just moved all in-tree callers off of the function, but we're
leaving it here for a bit to help extension writers.
Differential Revision: https://phab.mercurial-scm.org/D9110
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Mon, 28 Sep 2020 08:07:09 -0700 |
parents | db11f8f39caf |
children | 2a169781556e |
files | mercurial/hg.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hg.py Mon Sep 28 16:54:35 2020 +0200 +++ b/mercurial/hg.py Mon Sep 28 08:07:09 2020 -0700 @@ -1049,6 +1049,10 @@ When overwrite is set, changes are clobbered, merged else returns stats (see pydoc mercurial.merge.applyupdates)""" + repo.ui.deprecwarn( + b'prefer merge.update() or merge.clean_update() over hg.updaterepo()', + b'5.7', + ) return mergemod._update( repo, node,