Patchwork D11224: dirstate: use `add` in the deprecation message about `add`

login
register
mail settings
Submitter phabricator
Date July 28, 2021, 2:56 p.m.
Message ID <differential-rev-PHID-DREV-jsne3y24oiud4dyc4pr3-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/49538/
State Superseded
Headers show

Comments

phabricator - July 28, 2021, 2:56 p.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  The previous message was talking about `remove`.

REPOSITORY
  rHG Mercurial

BRANCH
  stable

REVISION DETAIL
  https://phab.mercurial-scm.org/D11224

AFFECTED FILES
  mercurial/dirstate.py

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py
--- a/mercurial/dirstate.py
+++ b/mercurial/dirstate.py
@@ -828,7 +828,7 @@ 
             )
         else:
             util.nouideprecwarn(
-                b"do not use `remove` outside of update/merge context."
+                b"do not use `add` outside of update/merge context."
                 b" Use `set_tracked`",
                 b'6.0',
                 stacklevel=2,