Mercurial > hg
comparison mercurial/hg.py @ 45605: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 | 5c8230ca37f2 |
children | d68618954ade |
comparison
equal
deleted
inserted
replaced
45604:db11f8f39caf | 45605:00402df57db7 |
---|---|
1047 """Update the working directory to node. | 1047 """Update the working directory to node. |
1048 | 1048 |
1049 When overwrite is set, changes are clobbered, merged else | 1049 When overwrite is set, changes are clobbered, merged else |
1050 | 1050 |
1051 returns stats (see pydoc mercurial.merge.applyupdates)""" | 1051 returns stats (see pydoc mercurial.merge.applyupdates)""" |
1052 repo.ui.deprecwarn( | |
1053 b'prefer merge.update() or merge.clean_update() over hg.updaterepo()', | |
1054 b'5.7', | |
1055 ) | |
1052 return mergemod._update( | 1056 return mergemod._update( |
1053 repo, | 1057 repo, |
1054 node, | 1058 node, |
1055 branchmerge=False, | 1059 branchmerge=False, |
1056 force=overwrite, | 1060 force=overwrite, |